Class AdGroup.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AdGroup.Builder>
com.google.ads.googleads.v18.resources.AdGroup.Builder
All Implemented Interfaces:
AdGroupOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AdGroup

public static final class AdGroup.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AdGroup.Builder> implements AdGroupOrBuilder
 An ad group.
 
Protobuf type google.ads.googleads.v18.resources.AdGroup
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroup.Builder>
    • clear

      public AdGroup.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroup.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroup.Builder>
    • getDefaultInstanceForType

      public AdGroup getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AdGroup build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AdGroup buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public AdGroup.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroup.Builder>
    • setField

      public AdGroup.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroup.Builder>
    • clearField

      public AdGroup.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroup.Builder>
    • clearOneof

      public AdGroup.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroup.Builder>
    • setRepeatedField

      public AdGroup.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroup.Builder>
    • addRepeatedField

      public AdGroup.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroup.Builder>
    • mergeFrom

      public AdGroup.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdGroup.Builder>
    • mergeFrom

      public AdGroup.Builder mergeFrom(AdGroup other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroup.Builder>
    • mergeFrom

      public AdGroup.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdGroup.Builder>
      Throws:
      IOException
    • getResourceName

      public String getResourceName()
       Immutable. The resource name of the ad group.
       Ad group resource names have the form:
      
       `customers/{customer_id}/adGroups/{ad_group_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface AdGroupOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Immutable. The resource name of the ad group.
       Ad group resource names have the form:
      
       `customers/{customer_id}/adGroups/{ad_group_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface AdGroupOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public AdGroup.Builder setResourceName(String value)
       Immutable. The resource name of the ad group.
       Ad group resource names have the form:
      
       `customers/{customer_id}/adGroups/{ad_group_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The resourceName to set.
      Returns:
      This builder for chaining.
    • clearResourceName

      public AdGroup.Builder clearResourceName()
       Immutable. The resource name of the ad group.
       Ad group resource names have the form:
      
       `customers/{customer_id}/adGroups/{ad_group_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public AdGroup.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Immutable. The resource name of the ad group.
       Ad group resource names have the form:
      
       `customers/{customer_id}/adGroups/{ad_group_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for resourceName to set.
      Returns:
      This builder for chaining.
    • hasId

      public boolean hasId()
       Output only. The ID of the ad group.
       
      optional int64 id = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasId in interface AdGroupOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
       Output only. The ID of the ad group.
       
      optional int64 id = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getId in interface AdGroupOrBuilder
      Returns:
      The id.
    • setId

      public AdGroup.Builder setId(long value)
       Output only. The ID of the ad group.
       
      optional int64 id = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public AdGroup.Builder clearId()
       Output only. The ID of the ad group.
       
      optional int64 id = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       The name of the ad group.
      
       This field is required and should not be empty when creating new ad
       groups.
      
       It must contain fewer than 255 UTF-8 full-width characters.
      
       It must not contain any null (code point 0x0), NL line feed
       (code point 0xA) or carriage return (code point 0xD) characters.
       
      optional string name = 35;
      Specified by:
      hasName in interface AdGroupOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       The name of the ad group.
      
       This field is required and should not be empty when creating new ad
       groups.
      
       It must contain fewer than 255 UTF-8 full-width characters.
      
       It must not contain any null (code point 0x0), NL line feed
       (code point 0xA) or carriage return (code point 0xD) characters.
       
      optional string name = 35;
      Specified by:
      getName in interface AdGroupOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the ad group.
      
       This field is required and should not be empty when creating new ad
       groups.
      
       It must contain fewer than 255 UTF-8 full-width characters.
      
       It must not contain any null (code point 0x0), NL line feed
       (code point 0xA) or carriage return (code point 0xD) characters.
       
      optional string name = 35;
      Specified by:
      getNameBytes in interface AdGroupOrBuilder
      Returns:
      The bytes for name.
    • setName

      public AdGroup.Builder setName(String value)
       The name of the ad group.
      
       This field is required and should not be empty when creating new ad
       groups.
      
       It must contain fewer than 255 UTF-8 full-width characters.
      
       It must not contain any null (code point 0x0), NL line feed
       (code point 0xA) or carriage return (code point 0xD) characters.
       
      optional string name = 35;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public AdGroup.Builder clearName()
       The name of the ad group.
      
       This field is required and should not be empty when creating new ad
       groups.
      
       It must contain fewer than 255 UTF-8 full-width characters.
      
       It must not contain any null (code point 0x0), NL line feed
       (code point 0xA) or carriage return (code point 0xD) characters.
       
      optional string name = 35;
      Returns:
      This builder for chaining.
    • setNameBytes

      public AdGroup.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the ad group.
      
       This field is required and should not be empty when creating new ad
       groups.
      
       It must contain fewer than 255 UTF-8 full-width characters.
      
       It must not contain any null (code point 0x0), NL line feed
       (code point 0xA) or carriage return (code point 0xD) characters.
       
      optional string name = 35;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getStatusValue

      public int getStatusValue()
       The status of the ad group.
       
      .google.ads.googleads.v18.enums.AdGroupStatusEnum.AdGroupStatus status = 5;
      Specified by:
      getStatusValue in interface AdGroupOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public AdGroup.Builder setStatusValue(int value)
       The status of the ad group.
       
      .google.ads.googleads.v18.enums.AdGroupStatusEnum.AdGroupStatus status = 5;
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

      public AdGroupStatusEnum.AdGroupStatus getStatus()
       The status of the ad group.
       
      .google.ads.googleads.v18.enums.AdGroupStatusEnum.AdGroupStatus status = 5;
      Specified by:
      getStatus in interface AdGroupOrBuilder
      Returns:
      The status.
    • setStatus

       The status of the ad group.
       
      .google.ads.googleads.v18.enums.AdGroupStatusEnum.AdGroupStatus status = 5;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public AdGroup.Builder clearStatus()
       The status of the ad group.
       
      .google.ads.googleads.v18.enums.AdGroupStatusEnum.AdGroupStatus status = 5;
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       Immutable. The type of the ad group.
       
      .google.ads.googleads.v18.enums.AdGroupTypeEnum.AdGroupType type = 12 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getTypeValue in interface AdGroupOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public AdGroup.Builder setTypeValue(int value)
       Immutable. The type of the ad group.
       
      .google.ads.googleads.v18.enums.AdGroupTypeEnum.AdGroupType type = 12 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public AdGroupTypeEnum.AdGroupType getType()
       Immutable. The type of the ad group.
       
      .google.ads.googleads.v18.enums.AdGroupTypeEnum.AdGroupType type = 12 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getType in interface AdGroupOrBuilder
      Returns:
      The type.
    • setType

       Immutable. The type of the ad group.
       
      .google.ads.googleads.v18.enums.AdGroupTypeEnum.AdGroupType type = 12 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public AdGroup.Builder clearType()
       Immutable. The type of the ad group.
       
      .google.ads.googleads.v18.enums.AdGroupTypeEnum.AdGroupType type = 12 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • getAdRotationModeValue

      public int getAdRotationModeValue()
       The ad rotation mode of the ad group.
       
      .google.ads.googleads.v18.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode ad_rotation_mode = 22;
      Specified by:
      getAdRotationModeValue in interface AdGroupOrBuilder
      Returns:
      The enum numeric value on the wire for adRotationMode.
    • setAdRotationModeValue

      public AdGroup.Builder setAdRotationModeValue(int value)
       The ad rotation mode of the ad group.
       
      .google.ads.googleads.v18.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode ad_rotation_mode = 22;
      Parameters:
      value - The enum numeric value on the wire for adRotationMode to set.
      Returns:
      This builder for chaining.
    • getAdRotationMode

       The ad rotation mode of the ad group.
       
      .google.ads.googleads.v18.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode ad_rotation_mode = 22;
      Specified by:
      getAdRotationMode in interface AdGroupOrBuilder
      Returns:
      The adRotationMode.
    • setAdRotationMode

       The ad rotation mode of the ad group.
       
      .google.ads.googleads.v18.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode ad_rotation_mode = 22;
      Parameters:
      value - The adRotationMode to set.
      Returns:
      This builder for chaining.
    • clearAdRotationMode

      public AdGroup.Builder clearAdRotationMode()
       The ad rotation mode of the ad group.
       
      .google.ads.googleads.v18.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode ad_rotation_mode = 22;
      Returns:
      This builder for chaining.
    • hasBaseAdGroup

      public boolean hasBaseAdGroup()
       Output only. For draft or experiment ad groups, this field is the resource
       name of the base ad group from which this ad group was created. If a draft
       or experiment ad group does not have a base ad group, then this field is
       null.
      
       For base ad groups, this field equals the ad group resource name.
      
       This field is read-only.
       
      optional string base_ad_group = 36 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      hasBaseAdGroup in interface AdGroupOrBuilder
      Returns:
      Whether the baseAdGroup field is set.
    • getBaseAdGroup

      public String getBaseAdGroup()
       Output only. For draft or experiment ad groups, this field is the resource
       name of the base ad group from which this ad group was created. If a draft
       or experiment ad group does not have a base ad group, then this field is
       null.
      
       For base ad groups, this field equals the ad group resource name.
      
       This field is read-only.
       
      optional string base_ad_group = 36 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getBaseAdGroup in interface AdGroupOrBuilder
      Returns:
      The baseAdGroup.
    • getBaseAdGroupBytes

      public com.google.protobuf.ByteString getBaseAdGroupBytes()
       Output only. For draft or experiment ad groups, this field is the resource
       name of the base ad group from which this ad group was created. If a draft
       or experiment ad group does not have a base ad group, then this field is
       null.
      
       For base ad groups, this field equals the ad group resource name.
      
       This field is read-only.
       
      optional string base_ad_group = 36 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getBaseAdGroupBytes in interface AdGroupOrBuilder
      Returns:
      The bytes for baseAdGroup.
    • setBaseAdGroup

      public AdGroup.Builder setBaseAdGroup(String value)
       Output only. For draft or experiment ad groups, this field is the resource
       name of the base ad group from which this ad group was created. If a draft
       or experiment ad group does not have a base ad group, then this field is
       null.
      
       For base ad groups, this field equals the ad group resource name.
      
       This field is read-only.
       
      optional string base_ad_group = 36 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The baseAdGroup to set.
      Returns:
      This builder for chaining.
    • clearBaseAdGroup

      public AdGroup.Builder clearBaseAdGroup()
       Output only. For draft or experiment ad groups, this field is the resource
       name of the base ad group from which this ad group was created. If a draft
       or experiment ad group does not have a base ad group, then this field is
       null.
      
       For base ad groups, this field equals the ad group resource name.
      
       This field is read-only.
       
      optional string base_ad_group = 36 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setBaseAdGroupBytes

      public AdGroup.Builder setBaseAdGroupBytes(com.google.protobuf.ByteString value)
       Output only. For draft or experiment ad groups, this field is the resource
       name of the base ad group from which this ad group was created. If a draft
       or experiment ad group does not have a base ad group, then this field is
       null.
      
       For base ad groups, this field equals the ad group resource name.
      
       This field is read-only.
       
      optional string base_ad_group = 36 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for baseAdGroup to set.
      Returns:
      This builder for chaining.
    • hasTrackingUrlTemplate

      public boolean hasTrackingUrlTemplate()
       The URL template for constructing a tracking URL.
       
      optional string tracking_url_template = 37;
      Specified by:
      hasTrackingUrlTemplate in interface AdGroupOrBuilder
      Returns:
      Whether the trackingUrlTemplate field is set.
    • getTrackingUrlTemplate

      public String getTrackingUrlTemplate()
       The URL template for constructing a tracking URL.
       
      optional string tracking_url_template = 37;
      Specified by:
      getTrackingUrlTemplate in interface AdGroupOrBuilder
      Returns:
      The trackingUrlTemplate.
    • getTrackingUrlTemplateBytes

      public com.google.protobuf.ByteString getTrackingUrlTemplateBytes()
       The URL template for constructing a tracking URL.
       
      optional string tracking_url_template = 37;
      Specified by:
      getTrackingUrlTemplateBytes in interface AdGroupOrBuilder
      Returns:
      The bytes for trackingUrlTemplate.
    • setTrackingUrlTemplate

      public AdGroup.Builder setTrackingUrlTemplate(String value)
       The URL template for constructing a tracking URL.
       
      optional string tracking_url_template = 37;
      Parameters:
      value - The trackingUrlTemplate to set.
      Returns:
      This builder for chaining.
    • clearTrackingUrlTemplate

      public AdGroup.Builder clearTrackingUrlTemplate()
       The URL template for constructing a tracking URL.
       
      optional string tracking_url_template = 37;
      Returns:
      This builder for chaining.
    • setTrackingUrlTemplateBytes

      public AdGroup.Builder setTrackingUrlTemplateBytes(com.google.protobuf.ByteString value)
       The URL template for constructing a tracking URL.
       
      optional string tracking_url_template = 37;
      Parameters:
      value - The bytes for trackingUrlTemplate to set.
      Returns:
      This builder for chaining.
    • getUrlCustomParametersList

      public List<CustomParameter> getUrlCustomParametersList()
       The list of mappings used to substitute custom parameter tags in a
       `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 6;
      Specified by:
      getUrlCustomParametersList in interface AdGroupOrBuilder
    • getUrlCustomParametersCount

      public int getUrlCustomParametersCount()
       The list of mappings used to substitute custom parameter tags in a
       `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 6;
      Specified by:
      getUrlCustomParametersCount in interface AdGroupOrBuilder
    • getUrlCustomParameters

      public CustomParameter getUrlCustomParameters(int index)
       The list of mappings used to substitute custom parameter tags in a
       `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 6;
      Specified by:
      getUrlCustomParameters in interface AdGroupOrBuilder
    • setUrlCustomParameters

      public AdGroup.Builder setUrlCustomParameters(int index, CustomParameter value)
       The list of mappings used to substitute custom parameter tags in a
       `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 6;
    • setUrlCustomParameters

      public AdGroup.Builder setUrlCustomParameters(int index, CustomParameter.Builder builderForValue)
       The list of mappings used to substitute custom parameter tags in a
       `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 6;
    • addUrlCustomParameters

      public AdGroup.Builder addUrlCustomParameters(CustomParameter value)
       The list of mappings used to substitute custom parameter tags in a
       `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 6;
    • addUrlCustomParameters

      public AdGroup.Builder addUrlCustomParameters(int index, CustomParameter value)
       The list of mappings used to substitute custom parameter tags in a
       `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 6;
    • addUrlCustomParameters

      public AdGroup.Builder addUrlCustomParameters(CustomParameter.Builder builderForValue)
       The list of mappings used to substitute custom parameter tags in a
       `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 6;
    • addUrlCustomParameters

      public AdGroup.Builder addUrlCustomParameters(int index, CustomParameter.Builder builderForValue)
       The list of mappings used to substitute custom parameter tags in a
       `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 6;
    • addAllUrlCustomParameters

      public AdGroup.Builder addAllUrlCustomParameters(Iterable<? extends CustomParameter> values)
       The list of mappings used to substitute custom parameter tags in a
       `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 6;
    • clearUrlCustomParameters

      public AdGroup.Builder clearUrlCustomParameters()
       The list of mappings used to substitute custom parameter tags in a
       `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 6;
    • removeUrlCustomParameters

      public AdGroup.Builder removeUrlCustomParameters(int index)
       The list of mappings used to substitute custom parameter tags in a
       `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 6;
    • getUrlCustomParametersBuilder

      public CustomParameter.Builder getUrlCustomParametersBuilder(int index)
       The list of mappings used to substitute custom parameter tags in a
       `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 6;
    • getUrlCustomParametersOrBuilder

      public CustomParameterOrBuilder getUrlCustomParametersOrBuilder(int index)
       The list of mappings used to substitute custom parameter tags in a
       `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 6;
      Specified by:
      getUrlCustomParametersOrBuilder in interface AdGroupOrBuilder
    • getUrlCustomParametersOrBuilderList

      public List<? extends CustomParameterOrBuilder> getUrlCustomParametersOrBuilderList()
       The list of mappings used to substitute custom parameter tags in a
       `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 6;
      Specified by:
      getUrlCustomParametersOrBuilderList in interface AdGroupOrBuilder
    • addUrlCustomParametersBuilder

      public CustomParameter.Builder addUrlCustomParametersBuilder()
       The list of mappings used to substitute custom parameter tags in a
       `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 6;
    • addUrlCustomParametersBuilder

      public CustomParameter.Builder addUrlCustomParametersBuilder(int index)
       The list of mappings used to substitute custom parameter tags in a
       `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 6;
    • getUrlCustomParametersBuilderList

      public List<CustomParameter.Builder> getUrlCustomParametersBuilderList()
       The list of mappings used to substitute custom parameter tags in a
       `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 6;
    • hasCampaign

      public boolean hasCampaign()
       Immutable. The campaign to which the ad group belongs.
       
      optional string campaign = 38 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      hasCampaign in interface AdGroupOrBuilder
      Returns:
      Whether the campaign field is set.
    • getCampaign

      public String getCampaign()
       Immutable. The campaign to which the ad group belongs.
       
      optional string campaign = 38 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getCampaign in interface AdGroupOrBuilder
      Returns:
      The campaign.
    • getCampaignBytes

      public com.google.protobuf.ByteString getCampaignBytes()
       Immutable. The campaign to which the ad group belongs.
       
      optional string campaign = 38 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getCampaignBytes in interface AdGroupOrBuilder
      Returns:
      The bytes for campaign.
    • setCampaign

      public AdGroup.Builder setCampaign(String value)
       Immutable. The campaign to which the ad group belongs.
       
      optional string campaign = 38 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The campaign to set.
      Returns:
      This builder for chaining.
    • clearCampaign

      public AdGroup.Builder clearCampaign()
       Immutable. The campaign to which the ad group belongs.
       
      optional string campaign = 38 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setCampaignBytes

      public AdGroup.Builder setCampaignBytes(com.google.protobuf.ByteString value)
       Immutable. The campaign to which the ad group belongs.
       
      optional string campaign = 38 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for campaign to set.
      Returns:
      This builder for chaining.
    • hasCpcBidMicros

      public boolean hasCpcBidMicros()
       The maximum CPC (cost-per-click) bid.
       
      optional int64 cpc_bid_micros = 39;
      Specified by:
      hasCpcBidMicros in interface AdGroupOrBuilder
      Returns:
      Whether the cpcBidMicros field is set.
    • getCpcBidMicros

      public long getCpcBidMicros()
       The maximum CPC (cost-per-click) bid.
       
      optional int64 cpc_bid_micros = 39;
      Specified by:
      getCpcBidMicros in interface AdGroupOrBuilder
      Returns:
      The cpcBidMicros.
    • setCpcBidMicros

      public AdGroup.Builder setCpcBidMicros(long value)
       The maximum CPC (cost-per-click) bid.
       
      optional int64 cpc_bid_micros = 39;
      Parameters:
      value - The cpcBidMicros to set.
      Returns:
      This builder for chaining.
    • clearCpcBidMicros

      public AdGroup.Builder clearCpcBidMicros()
       The maximum CPC (cost-per-click) bid.
       
      optional int64 cpc_bid_micros = 39;
      Returns:
      This builder for chaining.
    • hasEffectiveCpcBidMicros

      public boolean hasEffectiveCpcBidMicros()
       Output only. Value will be same as that of the CPC (cost-per-click) bid
       value when the bidding strategy is one of manual cpc, enhanced cpc, page
       one promoted or target outrank share, otherwise the value will be null.
       
      optional int64 effective_cpc_bid_micros = 57 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasEffectiveCpcBidMicros in interface AdGroupOrBuilder
      Returns:
      Whether the effectiveCpcBidMicros field is set.
    • getEffectiveCpcBidMicros

      public long getEffectiveCpcBidMicros()
       Output only. Value will be same as that of the CPC (cost-per-click) bid
       value when the bidding strategy is one of manual cpc, enhanced cpc, page
       one promoted or target outrank share, otherwise the value will be null.
       
      optional int64 effective_cpc_bid_micros = 57 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEffectiveCpcBidMicros in interface AdGroupOrBuilder
      Returns:
      The effectiveCpcBidMicros.
    • setEffectiveCpcBidMicros

      public AdGroup.Builder setEffectiveCpcBidMicros(long value)
       Output only. Value will be same as that of the CPC (cost-per-click) bid
       value when the bidding strategy is one of manual cpc, enhanced cpc, page
       one promoted or target outrank share, otherwise the value will be null.
       
      optional int64 effective_cpc_bid_micros = 57 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The effectiveCpcBidMicros to set.
      Returns:
      This builder for chaining.
    • clearEffectiveCpcBidMicros

      public AdGroup.Builder clearEffectiveCpcBidMicros()
       Output only. Value will be same as that of the CPC (cost-per-click) bid
       value when the bidding strategy is one of manual cpc, enhanced cpc, page
       one promoted or target outrank share, otherwise the value will be null.
       
      optional int64 effective_cpc_bid_micros = 57 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasCpmBidMicros

      public boolean hasCpmBidMicros()
       The maximum CPM (cost-per-thousand viewable impressions) bid.
       
      optional int64 cpm_bid_micros = 40;
      Specified by:
      hasCpmBidMicros in interface AdGroupOrBuilder
      Returns:
      Whether the cpmBidMicros field is set.
    • getCpmBidMicros

      public long getCpmBidMicros()
       The maximum CPM (cost-per-thousand viewable impressions) bid.
       
      optional int64 cpm_bid_micros = 40;
      Specified by:
      getCpmBidMicros in interface AdGroupOrBuilder
      Returns:
      The cpmBidMicros.
    • setCpmBidMicros

      public AdGroup.Builder setCpmBidMicros(long value)
       The maximum CPM (cost-per-thousand viewable impressions) bid.
       
      optional int64 cpm_bid_micros = 40;
      Parameters:
      value - The cpmBidMicros to set.
      Returns:
      This builder for chaining.
    • clearCpmBidMicros

      public AdGroup.Builder clearCpmBidMicros()
       The maximum CPM (cost-per-thousand viewable impressions) bid.
       
      optional int64 cpm_bid_micros = 40;
      Returns:
      This builder for chaining.
    • hasTargetCpaMicros

      public boolean hasTargetCpaMicros()
       The target CPA (cost-per-acquisition). If the ad group's campaign
       bidding strategy is TargetCpa or MaximizeConversions (with its target_cpa
       field set), then this field overrides the target CPA specified in the
       campaign's bidding strategy.
       Otherwise, this value is ignored.
       
      optional int64 target_cpa_micros = 41;
      Specified by:
      hasTargetCpaMicros in interface AdGroupOrBuilder
      Returns:
      Whether the targetCpaMicros field is set.
    • getTargetCpaMicros

      public long getTargetCpaMicros()
       The target CPA (cost-per-acquisition). If the ad group's campaign
       bidding strategy is TargetCpa or MaximizeConversions (with its target_cpa
       field set), then this field overrides the target CPA specified in the
       campaign's bidding strategy.
       Otherwise, this value is ignored.
       
      optional int64 target_cpa_micros = 41;
      Specified by:
      getTargetCpaMicros in interface AdGroupOrBuilder
      Returns:
      The targetCpaMicros.
    • setTargetCpaMicros

      public AdGroup.Builder setTargetCpaMicros(long value)
       The target CPA (cost-per-acquisition). If the ad group's campaign
       bidding strategy is TargetCpa or MaximizeConversions (with its target_cpa
       field set), then this field overrides the target CPA specified in the
       campaign's bidding strategy.
       Otherwise, this value is ignored.
       
      optional int64 target_cpa_micros = 41;
      Parameters:
      value - The targetCpaMicros to set.
      Returns:
      This builder for chaining.
    • clearTargetCpaMicros

      public AdGroup.Builder clearTargetCpaMicros()
       The target CPA (cost-per-acquisition). If the ad group's campaign
       bidding strategy is TargetCpa or MaximizeConversions (with its target_cpa
       field set), then this field overrides the target CPA specified in the
       campaign's bidding strategy.
       Otherwise, this value is ignored.
       
      optional int64 target_cpa_micros = 41;
      Returns:
      This builder for chaining.
    • hasCpvBidMicros

      public boolean hasCpvBidMicros()
       The CPV (cost-per-view) bid.
       
      optional int64 cpv_bid_micros = 42;
      Specified by:
      hasCpvBidMicros in interface AdGroupOrBuilder
      Returns:
      Whether the cpvBidMicros field is set.
    • getCpvBidMicros

      public long getCpvBidMicros()
       The CPV (cost-per-view) bid.
       
      optional int64 cpv_bid_micros = 42;
      Specified by:
      getCpvBidMicros in interface AdGroupOrBuilder
      Returns:
      The cpvBidMicros.
    • setCpvBidMicros

      public AdGroup.Builder setCpvBidMicros(long value)
       The CPV (cost-per-view) bid.
       
      optional int64 cpv_bid_micros = 42;
      Parameters:
      value - The cpvBidMicros to set.
      Returns:
      This builder for chaining.
    • clearCpvBidMicros

      public AdGroup.Builder clearCpvBidMicros()
       The CPV (cost-per-view) bid.
       
      optional int64 cpv_bid_micros = 42;
      Returns:
      This builder for chaining.
    • hasTargetCpmMicros

      public boolean hasTargetCpmMicros()
       Average amount in micros that the advertiser is willing to pay for every
       thousand times the ad is shown.
       
      optional int64 target_cpm_micros = 43;
      Specified by:
      hasTargetCpmMicros in interface AdGroupOrBuilder
      Returns:
      Whether the targetCpmMicros field is set.
    • getTargetCpmMicros

      public long getTargetCpmMicros()
       Average amount in micros that the advertiser is willing to pay for every
       thousand times the ad is shown.
       
      optional int64 target_cpm_micros = 43;
      Specified by:
      getTargetCpmMicros in interface AdGroupOrBuilder
      Returns:
      The targetCpmMicros.
    • setTargetCpmMicros

      public AdGroup.Builder setTargetCpmMicros(long value)
       Average amount in micros that the advertiser is willing to pay for every
       thousand times the ad is shown.
       
      optional int64 target_cpm_micros = 43;
      Parameters:
      value - The targetCpmMicros to set.
      Returns:
      This builder for chaining.
    • clearTargetCpmMicros

      public AdGroup.Builder clearTargetCpmMicros()
       Average amount in micros that the advertiser is willing to pay for every
       thousand times the ad is shown.
       
      optional int64 target_cpm_micros = 43;
      Returns:
      This builder for chaining.
    • hasTargetRoas

      public boolean hasTargetRoas()
       The target ROAS (return-on-ad-spend) override. If the ad group's campaign
       bidding strategy is TargetRoas or MaximizeConversionValue (with its
       target_roas field set), then this field overrides the target ROAS specified
       in the campaign's bidding strategy.
       Otherwise, this value is ignored.
       
      optional double target_roas = 44;
      Specified by:
      hasTargetRoas in interface AdGroupOrBuilder
      Returns:
      Whether the targetRoas field is set.
    • getTargetRoas

      public double getTargetRoas()
       The target ROAS (return-on-ad-spend) override. If the ad group's campaign
       bidding strategy is TargetRoas or MaximizeConversionValue (with its
       target_roas field set), then this field overrides the target ROAS specified
       in the campaign's bidding strategy.
       Otherwise, this value is ignored.
       
      optional double target_roas = 44;
      Specified by:
      getTargetRoas in interface AdGroupOrBuilder
      Returns:
      The targetRoas.
    • setTargetRoas

      public AdGroup.Builder setTargetRoas(double value)
       The target ROAS (return-on-ad-spend) override. If the ad group's campaign
       bidding strategy is TargetRoas or MaximizeConversionValue (with its
       target_roas field set), then this field overrides the target ROAS specified
       in the campaign's bidding strategy.
       Otherwise, this value is ignored.
       
      optional double target_roas = 44;
      Parameters:
      value - The targetRoas to set.
      Returns:
      This builder for chaining.
    • clearTargetRoas

      public AdGroup.Builder clearTargetRoas()
       The target ROAS (return-on-ad-spend) override. If the ad group's campaign
       bidding strategy is TargetRoas or MaximizeConversionValue (with its
       target_roas field set), then this field overrides the target ROAS specified
       in the campaign's bidding strategy.
       Otherwise, this value is ignored.
       
      optional double target_roas = 44;
      Returns:
      This builder for chaining.
    • hasPercentCpcBidMicros

      public boolean hasPercentCpcBidMicros()
       The percent cpc bid amount, expressed as a fraction of the advertised price
       for some good or service. The valid range for the fraction is [0,1) and the
       value stored here is 1,000,000 * [fraction].
       
      optional int64 percent_cpc_bid_micros = 45;
      Specified by:
      hasPercentCpcBidMicros in interface AdGroupOrBuilder
      Returns:
      Whether the percentCpcBidMicros field is set.
    • getPercentCpcBidMicros

      public long getPercentCpcBidMicros()
       The percent cpc bid amount, expressed as a fraction of the advertised price
       for some good or service. The valid range for the fraction is [0,1) and the
       value stored here is 1,000,000 * [fraction].
       
      optional int64 percent_cpc_bid_micros = 45;
      Specified by:
      getPercentCpcBidMicros in interface AdGroupOrBuilder
      Returns:
      The percentCpcBidMicros.
    • setPercentCpcBidMicros

      public AdGroup.Builder setPercentCpcBidMicros(long value)
       The percent cpc bid amount, expressed as a fraction of the advertised price
       for some good or service. The valid range for the fraction is [0,1) and the
       value stored here is 1,000,000 * [fraction].
       
      optional int64 percent_cpc_bid_micros = 45;
      Parameters:
      value - The percentCpcBidMicros to set.
      Returns:
      This builder for chaining.
    • clearPercentCpcBidMicros

      public AdGroup.Builder clearPercentCpcBidMicros()
       The percent cpc bid amount, expressed as a fraction of the advertised price
       for some good or service. The valid range for the fraction is [0,1) and the
       value stored here is 1,000,000 * [fraction].
       
      optional int64 percent_cpc_bid_micros = 45;
      Returns:
      This builder for chaining.
    • hasFixedCpmMicros

      public boolean hasFixedCpmMicros()
       The fixed amount in micros that the advertiser pays for every thousand
       impressions of the ad.
       
      optional int64 fixed_cpm_micros = 64;
      Specified by:
      hasFixedCpmMicros in interface AdGroupOrBuilder
      Returns:
      Whether the fixedCpmMicros field is set.
    • getFixedCpmMicros

      public long getFixedCpmMicros()
       The fixed amount in micros that the advertiser pays for every thousand
       impressions of the ad.
       
      optional int64 fixed_cpm_micros = 64;
      Specified by:
      getFixedCpmMicros in interface AdGroupOrBuilder
      Returns:
      The fixedCpmMicros.
    • setFixedCpmMicros

      public AdGroup.Builder setFixedCpmMicros(long value)
       The fixed amount in micros that the advertiser pays for every thousand
       impressions of the ad.
       
      optional int64 fixed_cpm_micros = 64;
      Parameters:
      value - The fixedCpmMicros to set.
      Returns:
      This builder for chaining.
    • clearFixedCpmMicros

      public AdGroup.Builder clearFixedCpmMicros()
       The fixed amount in micros that the advertiser pays for every thousand
       impressions of the ad.
       
      optional int64 fixed_cpm_micros = 64;
      Returns:
      This builder for chaining.
    • hasTargetCpvMicros

      public boolean hasTargetCpvMicros()
       Average amount in micros that the advertiser is willing to pay for every ad
       view.
       
      optional int64 target_cpv_micros = 65;
      Specified by:
      hasTargetCpvMicros in interface AdGroupOrBuilder
      Returns:
      Whether the targetCpvMicros field is set.
    • getTargetCpvMicros

      public long getTargetCpvMicros()
       Average amount in micros that the advertiser is willing to pay for every ad
       view.
       
      optional int64 target_cpv_micros = 65;
      Specified by:
      getTargetCpvMicros in interface AdGroupOrBuilder
      Returns:
      The targetCpvMicros.
    • setTargetCpvMicros

      public AdGroup.Builder setTargetCpvMicros(long value)
       Average amount in micros that the advertiser is willing to pay for every ad
       view.
       
      optional int64 target_cpv_micros = 65;
      Parameters:
      value - The targetCpvMicros to set.
      Returns:
      This builder for chaining.
    • clearTargetCpvMicros

      public AdGroup.Builder clearTargetCpvMicros()
       Average amount in micros that the advertiser is willing to pay for every ad
       view.
       
      optional int64 target_cpv_micros = 65;
      Returns:
      This builder for chaining.
    • getOptimizedTargetingEnabled

      public boolean getOptimizedTargetingEnabled()
       True if optimized targeting is enabled. Optimized Targeting is the
       replacement for Audience Expansion.
       
      bool optimized_targeting_enabled = 59;
      Specified by:
      getOptimizedTargetingEnabled in interface AdGroupOrBuilder
      Returns:
      The optimizedTargetingEnabled.
    • setOptimizedTargetingEnabled

      public AdGroup.Builder setOptimizedTargetingEnabled(boolean value)
       True if optimized targeting is enabled. Optimized Targeting is the
       replacement for Audience Expansion.
       
      bool optimized_targeting_enabled = 59;
      Parameters:
      value - The optimizedTargetingEnabled to set.
      Returns:
      This builder for chaining.
    • clearOptimizedTargetingEnabled

      public AdGroup.Builder clearOptimizedTargetingEnabled()
       True if optimized targeting is enabled. Optimized Targeting is the
       replacement for Audience Expansion.
       
      bool optimized_targeting_enabled = 59;
      Returns:
      This builder for chaining.
    • getExcludeDemographicExpansion

      public boolean getExcludeDemographicExpansion()
       When this value is true, demographics will be excluded from the types of
       targeting which are expanded when optimized_targeting_enabled is true.
       When optimized_targeting_enabled is false, this field is ignored. Default
       is false.
       
      bool exclude_demographic_expansion = 67;
      Specified by:
      getExcludeDemographicExpansion in interface AdGroupOrBuilder
      Returns:
      The excludeDemographicExpansion.
    • setExcludeDemographicExpansion

      public AdGroup.Builder setExcludeDemographicExpansion(boolean value)
       When this value is true, demographics will be excluded from the types of
       targeting which are expanded when optimized_targeting_enabled is true.
       When optimized_targeting_enabled is false, this field is ignored. Default
       is false.
       
      bool exclude_demographic_expansion = 67;
      Parameters:
      value - The excludeDemographicExpansion to set.
      Returns:
      This builder for chaining.
    • clearExcludeDemographicExpansion

      public AdGroup.Builder clearExcludeDemographicExpansion()
       When this value is true, demographics will be excluded from the types of
       targeting which are expanded when optimized_targeting_enabled is true.
       When optimized_targeting_enabled is false, this field is ignored. Default
       is false.
       
      bool exclude_demographic_expansion = 67;
      Returns:
      This builder for chaining.
    • getDisplayCustomBidDimensionValue

      public int getDisplayCustomBidDimensionValue()
       Allows advertisers to specify a targeting dimension on which to place
       absolute bids. This is only applicable for campaigns that target only the
       display network and not search.
       
      .google.ads.googleads.v18.enums.TargetingDimensionEnum.TargetingDimension display_custom_bid_dimension = 23;
      Specified by:
      getDisplayCustomBidDimensionValue in interface AdGroupOrBuilder
      Returns:
      The enum numeric value on the wire for displayCustomBidDimension.
    • setDisplayCustomBidDimensionValue

      public AdGroup.Builder setDisplayCustomBidDimensionValue(int value)
       Allows advertisers to specify a targeting dimension on which to place
       absolute bids. This is only applicable for campaigns that target only the
       display network and not search.
       
      .google.ads.googleads.v18.enums.TargetingDimensionEnum.TargetingDimension display_custom_bid_dimension = 23;
      Parameters:
      value - The enum numeric value on the wire for displayCustomBidDimension to set.
      Returns:
      This builder for chaining.
    • getDisplayCustomBidDimension

      public TargetingDimensionEnum.TargetingDimension getDisplayCustomBidDimension()
       Allows advertisers to specify a targeting dimension on which to place
       absolute bids. This is only applicable for campaigns that target only the
       display network and not search.
       
      .google.ads.googleads.v18.enums.TargetingDimensionEnum.TargetingDimension display_custom_bid_dimension = 23;
      Specified by:
      getDisplayCustomBidDimension in interface AdGroupOrBuilder
      Returns:
      The displayCustomBidDimension.
    • setDisplayCustomBidDimension

      public AdGroup.Builder setDisplayCustomBidDimension(TargetingDimensionEnum.TargetingDimension value)
       Allows advertisers to specify a targeting dimension on which to place
       absolute bids. This is only applicable for campaigns that target only the
       display network and not search.
       
      .google.ads.googleads.v18.enums.TargetingDimensionEnum.TargetingDimension display_custom_bid_dimension = 23;
      Parameters:
      value - The displayCustomBidDimension to set.
      Returns:
      This builder for chaining.
    • clearDisplayCustomBidDimension

      public AdGroup.Builder clearDisplayCustomBidDimension()
       Allows advertisers to specify a targeting dimension on which to place
       absolute bids. This is only applicable for campaigns that target only the
       display network and not search.
       
      .google.ads.googleads.v18.enums.TargetingDimensionEnum.TargetingDimension display_custom_bid_dimension = 23;
      Returns:
      This builder for chaining.
    • hasFinalUrlSuffix

      public boolean hasFinalUrlSuffix()
       URL template for appending params to Final URL.
       
      optional string final_url_suffix = 46;
      Specified by:
      hasFinalUrlSuffix in interface AdGroupOrBuilder
      Returns:
      Whether the finalUrlSuffix field is set.
    • getFinalUrlSuffix

      public String getFinalUrlSuffix()
       URL template for appending params to Final URL.
       
      optional string final_url_suffix = 46;
      Specified by:
      getFinalUrlSuffix in interface AdGroupOrBuilder
      Returns:
      The finalUrlSuffix.
    • getFinalUrlSuffixBytes

      public com.google.protobuf.ByteString getFinalUrlSuffixBytes()
       URL template for appending params to Final URL.
       
      optional string final_url_suffix = 46;
      Specified by:
      getFinalUrlSuffixBytes in interface AdGroupOrBuilder
      Returns:
      The bytes for finalUrlSuffix.
    • setFinalUrlSuffix

      public AdGroup.Builder setFinalUrlSuffix(String value)
       URL template for appending params to Final URL.
       
      optional string final_url_suffix = 46;
      Parameters:
      value - The finalUrlSuffix to set.
      Returns:
      This builder for chaining.
    • clearFinalUrlSuffix

      public AdGroup.Builder clearFinalUrlSuffix()
       URL template for appending params to Final URL.
       
      optional string final_url_suffix = 46;
      Returns:
      This builder for chaining.
    • setFinalUrlSuffixBytes

      public AdGroup.Builder setFinalUrlSuffixBytes(com.google.protobuf.ByteString value)
       URL template for appending params to Final URL.
       
      optional string final_url_suffix = 46;
      Parameters:
      value - The bytes for finalUrlSuffix to set.
      Returns:
      This builder for chaining.
    • hasTargetingSetting

      public boolean hasTargetingSetting()
       Setting for targeting related features.
       
      .google.ads.googleads.v18.common.TargetingSetting targeting_setting = 25;
      Specified by:
      hasTargetingSetting in interface AdGroupOrBuilder
      Returns:
      Whether the targetingSetting field is set.
    • getTargetingSetting

      public TargetingSetting getTargetingSetting()
       Setting for targeting related features.
       
      .google.ads.googleads.v18.common.TargetingSetting targeting_setting = 25;
      Specified by:
      getTargetingSetting in interface AdGroupOrBuilder
      Returns:
      The targetingSetting.
    • setTargetingSetting

      public AdGroup.Builder setTargetingSetting(TargetingSetting value)
       Setting for targeting related features.
       
      .google.ads.googleads.v18.common.TargetingSetting targeting_setting = 25;
    • setTargetingSetting

      public AdGroup.Builder setTargetingSetting(TargetingSetting.Builder builderForValue)
       Setting for targeting related features.
       
      .google.ads.googleads.v18.common.TargetingSetting targeting_setting = 25;
    • mergeTargetingSetting

      public AdGroup.Builder mergeTargetingSetting(TargetingSetting value)
       Setting for targeting related features.
       
      .google.ads.googleads.v18.common.TargetingSetting targeting_setting = 25;
    • clearTargetingSetting

      public AdGroup.Builder clearTargetingSetting()
       Setting for targeting related features.
       
      .google.ads.googleads.v18.common.TargetingSetting targeting_setting = 25;
    • getTargetingSettingBuilder

      public TargetingSetting.Builder getTargetingSettingBuilder()
       Setting for targeting related features.
       
      .google.ads.googleads.v18.common.TargetingSetting targeting_setting = 25;
    • getTargetingSettingOrBuilder

      public TargetingSettingOrBuilder getTargetingSettingOrBuilder()
       Setting for targeting related features.
       
      .google.ads.googleads.v18.common.TargetingSetting targeting_setting = 25;
      Specified by:
      getTargetingSettingOrBuilder in interface AdGroupOrBuilder
    • hasAudienceSetting

      public boolean hasAudienceSetting()
       Immutable. Setting for audience related features.
       
      .google.ads.googleads.v18.resources.AdGroup.AudienceSetting audience_setting = 56 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasAudienceSetting in interface AdGroupOrBuilder
      Returns:
      Whether the audienceSetting field is set.
    • getAudienceSetting

      public AdGroup.AudienceSetting getAudienceSetting()
       Immutable. Setting for audience related features.
       
      .google.ads.googleads.v18.resources.AdGroup.AudienceSetting audience_setting = 56 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getAudienceSetting in interface AdGroupOrBuilder
      Returns:
      The audienceSetting.
    • setAudienceSetting

      public AdGroup.Builder setAudienceSetting(AdGroup.AudienceSetting value)
       Immutable. Setting for audience related features.
       
      .google.ads.googleads.v18.resources.AdGroup.AudienceSetting audience_setting = 56 [(.google.api.field_behavior) = IMMUTABLE];
    • setAudienceSetting

      public AdGroup.Builder setAudienceSetting(AdGroup.AudienceSetting.Builder builderForValue)
       Immutable. Setting for audience related features.
       
      .google.ads.googleads.v18.resources.AdGroup.AudienceSetting audience_setting = 56 [(.google.api.field_behavior) = IMMUTABLE];
    • mergeAudienceSetting

      public AdGroup.Builder mergeAudienceSetting(AdGroup.AudienceSetting value)
       Immutable. Setting for audience related features.
       
      .google.ads.googleads.v18.resources.AdGroup.AudienceSetting audience_setting = 56 [(.google.api.field_behavior) = IMMUTABLE];
    • clearAudienceSetting

      public AdGroup.Builder clearAudienceSetting()
       Immutable. Setting for audience related features.
       
      .google.ads.googleads.v18.resources.AdGroup.AudienceSetting audience_setting = 56 [(.google.api.field_behavior) = IMMUTABLE];
    • getAudienceSettingBuilder

      public AdGroup.AudienceSetting.Builder getAudienceSettingBuilder()
       Immutable. Setting for audience related features.
       
      .google.ads.googleads.v18.resources.AdGroup.AudienceSetting audience_setting = 56 [(.google.api.field_behavior) = IMMUTABLE];
    • getAudienceSettingOrBuilder

      public AdGroup.AudienceSettingOrBuilder getAudienceSettingOrBuilder()
       Immutable. Setting for audience related features.
       
      .google.ads.googleads.v18.resources.AdGroup.AudienceSetting audience_setting = 56 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getAudienceSettingOrBuilder in interface AdGroupOrBuilder
    • hasEffectiveTargetCpaMicros

      public boolean hasEffectiveTargetCpaMicros()
       Output only. The effective target CPA (cost-per-acquisition).
       This field is read-only.
       
      optional int64 effective_target_cpa_micros = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasEffectiveTargetCpaMicros in interface AdGroupOrBuilder
      Returns:
      Whether the effectiveTargetCpaMicros field is set.
    • getEffectiveTargetCpaMicros

      public long getEffectiveTargetCpaMicros()
       Output only. The effective target CPA (cost-per-acquisition).
       This field is read-only.
       
      optional int64 effective_target_cpa_micros = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEffectiveTargetCpaMicros in interface AdGroupOrBuilder
      Returns:
      The effectiveTargetCpaMicros.
    • setEffectiveTargetCpaMicros

      public AdGroup.Builder setEffectiveTargetCpaMicros(long value)
       Output only. The effective target CPA (cost-per-acquisition).
       This field is read-only.
       
      optional int64 effective_target_cpa_micros = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The effectiveTargetCpaMicros to set.
      Returns:
      This builder for chaining.
    • clearEffectiveTargetCpaMicros

      public AdGroup.Builder clearEffectiveTargetCpaMicros()
       Output only. The effective target CPA (cost-per-acquisition).
       This field is read-only.
       
      optional int64 effective_target_cpa_micros = 47 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getEffectiveTargetCpaSourceValue

      public int getEffectiveTargetCpaSourceValue()
       Output only. Source of the effective target CPA.
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingSourceEnum.BiddingSource effective_target_cpa_source = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEffectiveTargetCpaSourceValue in interface AdGroupOrBuilder
      Returns:
      The enum numeric value on the wire for effectiveTargetCpaSource.
    • setEffectiveTargetCpaSourceValue

      public AdGroup.Builder setEffectiveTargetCpaSourceValue(int value)
       Output only. Source of the effective target CPA.
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingSourceEnum.BiddingSource effective_target_cpa_source = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for effectiveTargetCpaSource to set.
      Returns:
      This builder for chaining.
    • getEffectiveTargetCpaSource

      public BiddingSourceEnum.BiddingSource getEffectiveTargetCpaSource()
       Output only. Source of the effective target CPA.
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingSourceEnum.BiddingSource effective_target_cpa_source = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEffectiveTargetCpaSource in interface AdGroupOrBuilder
      Returns:
      The effectiveTargetCpaSource.
    • setEffectiveTargetCpaSource

      public AdGroup.Builder setEffectiveTargetCpaSource(BiddingSourceEnum.BiddingSource value)
       Output only. Source of the effective target CPA.
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingSourceEnum.BiddingSource effective_target_cpa_source = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The effectiveTargetCpaSource to set.
      Returns:
      This builder for chaining.
    • clearEffectiveTargetCpaSource

      public AdGroup.Builder clearEffectiveTargetCpaSource()
       Output only. Source of the effective target CPA.
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingSourceEnum.BiddingSource effective_target_cpa_source = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasEffectiveTargetRoas

      public boolean hasEffectiveTargetRoas()
       Output only. The effective target ROAS (return-on-ad-spend).
       This field is read-only.
       
      optional double effective_target_roas = 48 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasEffectiveTargetRoas in interface AdGroupOrBuilder
      Returns:
      Whether the effectiveTargetRoas field is set.
    • getEffectiveTargetRoas

      public double getEffectiveTargetRoas()
       Output only. The effective target ROAS (return-on-ad-spend).
       This field is read-only.
       
      optional double effective_target_roas = 48 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEffectiveTargetRoas in interface AdGroupOrBuilder
      Returns:
      The effectiveTargetRoas.
    • setEffectiveTargetRoas

      public AdGroup.Builder setEffectiveTargetRoas(double value)
       Output only. The effective target ROAS (return-on-ad-spend).
       This field is read-only.
       
      optional double effective_target_roas = 48 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The effectiveTargetRoas to set.
      Returns:
      This builder for chaining.
    • clearEffectiveTargetRoas

      public AdGroup.Builder clearEffectiveTargetRoas()
       Output only. The effective target ROAS (return-on-ad-spend).
       This field is read-only.
       
      optional double effective_target_roas = 48 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getEffectiveTargetRoasSourceValue

      public int getEffectiveTargetRoasSourceValue()
       Output only. Source of the effective target ROAS.
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingSourceEnum.BiddingSource effective_target_roas_source = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEffectiveTargetRoasSourceValue in interface AdGroupOrBuilder
      Returns:
      The enum numeric value on the wire for effectiveTargetRoasSource.
    • setEffectiveTargetRoasSourceValue

      public AdGroup.Builder setEffectiveTargetRoasSourceValue(int value)
       Output only. Source of the effective target ROAS.
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingSourceEnum.BiddingSource effective_target_roas_source = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for effectiveTargetRoasSource to set.
      Returns:
      This builder for chaining.
    • getEffectiveTargetRoasSource

      public BiddingSourceEnum.BiddingSource getEffectiveTargetRoasSource()
       Output only. Source of the effective target ROAS.
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingSourceEnum.BiddingSource effective_target_roas_source = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEffectiveTargetRoasSource in interface AdGroupOrBuilder
      Returns:
      The effectiveTargetRoasSource.
    • setEffectiveTargetRoasSource

      public AdGroup.Builder setEffectiveTargetRoasSource(BiddingSourceEnum.BiddingSource value)
       Output only. Source of the effective target ROAS.
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingSourceEnum.BiddingSource effective_target_roas_source = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The effectiveTargetRoasSource to set.
      Returns:
      This builder for chaining.
    • clearEffectiveTargetRoasSource

      public AdGroup.Builder clearEffectiveTargetRoasSource()
       Output only. Source of the effective target ROAS.
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingSourceEnum.BiddingSource effective_target_roas_source = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getLabelsList

      public com.google.protobuf.ProtocolStringList getLabelsList()
       Output only. The resource names of labels attached to this ad group.
       
      repeated string labels = 49 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getLabelsList in interface AdGroupOrBuilder
      Returns:
      A list containing the labels.
    • getLabelsCount

      public int getLabelsCount()
       Output only. The resource names of labels attached to this ad group.
       
      repeated string labels = 49 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getLabelsCount in interface AdGroupOrBuilder
      Returns:
      The count of labels.
    • getLabels

      public String getLabels(int index)
       Output only. The resource names of labels attached to this ad group.
       
      repeated string labels = 49 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getLabels in interface AdGroupOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The labels at the given index.
    • getLabelsBytes

      public com.google.protobuf.ByteString getLabelsBytes(int index)
       Output only. The resource names of labels attached to this ad group.
       
      repeated string labels = 49 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getLabelsBytes in interface AdGroupOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the labels at the given index.
    • setLabels

      public AdGroup.Builder setLabels(int index, String value)
       Output only. The resource names of labels attached to this ad group.
       
      repeated string labels = 49 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The labels to set.
      Returns:
      This builder for chaining.
    • addLabels

      public AdGroup.Builder addLabels(String value)
       Output only. The resource names of labels attached to this ad group.
       
      repeated string labels = 49 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The labels to add.
      Returns:
      This builder for chaining.
    • addAllLabels

      public AdGroup.Builder addAllLabels(Iterable<String> values)
       Output only. The resource names of labels attached to this ad group.
       
      repeated string labels = 49 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The labels to add.
      Returns:
      This builder for chaining.
    • clearLabels

      public AdGroup.Builder clearLabels()
       Output only. The resource names of labels attached to this ad group.
       
      repeated string labels = 49 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addLabelsBytes

      public AdGroup.Builder addLabelsBytes(com.google.protobuf.ByteString value)
       Output only. The resource names of labels attached to this ad group.
       
      repeated string labels = 49 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the labels to add.
      Returns:
      This builder for chaining.
    • getExcludedParentAssetFieldTypesList

      public List<AssetFieldTypeEnum.AssetFieldType> getExcludedParentAssetFieldTypesList()
       The asset field types that should be excluded from this ad group. Asset
       links with these field types will not be inherited by this ad group from
       the upper levels.
       
      repeated .google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 54;
      Specified by:
      getExcludedParentAssetFieldTypesList in interface AdGroupOrBuilder
      Returns:
      A list containing the excludedParentAssetFieldTypes.
    • getExcludedParentAssetFieldTypesCount

      public int getExcludedParentAssetFieldTypesCount()
       The asset field types that should be excluded from this ad group. Asset
       links with these field types will not be inherited by this ad group from
       the upper levels.
       
      repeated .google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 54;
      Specified by:
      getExcludedParentAssetFieldTypesCount in interface AdGroupOrBuilder
      Returns:
      The count of excludedParentAssetFieldTypes.
    • getExcludedParentAssetFieldTypes

      public AssetFieldTypeEnum.AssetFieldType getExcludedParentAssetFieldTypes(int index)
       The asset field types that should be excluded from this ad group. Asset
       links with these field types will not be inherited by this ad group from
       the upper levels.
       
      repeated .google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 54;
      Specified by:
      getExcludedParentAssetFieldTypes in interface AdGroupOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The excludedParentAssetFieldTypes at the given index.
    • setExcludedParentAssetFieldTypes

      public AdGroup.Builder setExcludedParentAssetFieldTypes(int index, AssetFieldTypeEnum.AssetFieldType value)
       The asset field types that should be excluded from this ad group. Asset
       links with these field types will not be inherited by this ad group from
       the upper levels.
       
      repeated .google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 54;
      Parameters:
      index - The index to set the value at.
      value - The excludedParentAssetFieldTypes to set.
      Returns:
      This builder for chaining.
    • addExcludedParentAssetFieldTypes

      public AdGroup.Builder addExcludedParentAssetFieldTypes(AssetFieldTypeEnum.AssetFieldType value)
       The asset field types that should be excluded from this ad group. Asset
       links with these field types will not be inherited by this ad group from
       the upper levels.
       
      repeated .google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 54;
      Parameters:
      value - The excludedParentAssetFieldTypes to add.
      Returns:
      This builder for chaining.
    • addAllExcludedParentAssetFieldTypes

      public AdGroup.Builder addAllExcludedParentAssetFieldTypes(Iterable<? extends AssetFieldTypeEnum.AssetFieldType> values)
       The asset field types that should be excluded from this ad group. Asset
       links with these field types will not be inherited by this ad group from
       the upper levels.
       
      repeated .google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 54;
      Parameters:
      values - The excludedParentAssetFieldTypes to add.
      Returns:
      This builder for chaining.
    • clearExcludedParentAssetFieldTypes

      public AdGroup.Builder clearExcludedParentAssetFieldTypes()
       The asset field types that should be excluded from this ad group. Asset
       links with these field types will not be inherited by this ad group from
       the upper levels.
       
      repeated .google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 54;
      Returns:
      This builder for chaining.
    • getExcludedParentAssetFieldTypesValueList

      public List<Integer> getExcludedParentAssetFieldTypesValueList()
       The asset field types that should be excluded from this ad group. Asset
       links with these field types will not be inherited by this ad group from
       the upper levels.
       
      repeated .google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 54;
      Specified by:
      getExcludedParentAssetFieldTypesValueList in interface AdGroupOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for excludedParentAssetFieldTypes.
    • getExcludedParentAssetFieldTypesValue

      public int getExcludedParentAssetFieldTypesValue(int index)
       The asset field types that should be excluded from this ad group. Asset
       links with these field types will not be inherited by this ad group from
       the upper levels.
       
      repeated .google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 54;
      Specified by:
      getExcludedParentAssetFieldTypesValue in interface AdGroupOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of excludedParentAssetFieldTypes at the given index.
    • setExcludedParentAssetFieldTypesValue

      public AdGroup.Builder setExcludedParentAssetFieldTypesValue(int index, int value)
       The asset field types that should be excluded from this ad group. Asset
       links with these field types will not be inherited by this ad group from
       the upper levels.
       
      repeated .google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 54;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for excludedParentAssetFieldTypes to set.
      Returns:
      This builder for chaining.
    • addExcludedParentAssetFieldTypesValue

      public AdGroup.Builder addExcludedParentAssetFieldTypesValue(int value)
       The asset field types that should be excluded from this ad group. Asset
       links with these field types will not be inherited by this ad group from
       the upper levels.
       
      repeated .google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 54;
      Parameters:
      value - The enum numeric value on the wire for excludedParentAssetFieldTypes to add.
      Returns:
      This builder for chaining.
    • addAllExcludedParentAssetFieldTypesValue

      public AdGroup.Builder addAllExcludedParentAssetFieldTypesValue(Iterable<Integer> values)
       The asset field types that should be excluded from this ad group. Asset
       links with these field types will not be inherited by this ad group from
       the upper levels.
       
      repeated .google.ads.googleads.v18.enums.AssetFieldTypeEnum.AssetFieldType excluded_parent_asset_field_types = 54;
      Parameters:
      values - The enum numeric values on the wire for excludedParentAssetFieldTypes to add.
      Returns:
      This builder for chaining.
    • getExcludedParentAssetSetTypesList

      public List<AssetSetTypeEnum.AssetSetType> getExcludedParentAssetSetTypesList()
       The asset set types that should be excluded from this ad group. Asset set
       links with these types will not be inherited by this ad group from the
       upper levels.
       Location group types (GMB_DYNAMIC_LOCATION_GROUP,
       CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
       LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
       location group asset sets are not allowed to be linked to this ad group,
       and all Location Extension (LE) and Affiliate Location Extensions (ALE)
       will not be served under this ad group.
       Only LOCATION_SYNC is currently supported.
       
      repeated .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 58;
      Specified by:
      getExcludedParentAssetSetTypesList in interface AdGroupOrBuilder
      Returns:
      A list containing the excludedParentAssetSetTypes.
    • getExcludedParentAssetSetTypesCount

      public int getExcludedParentAssetSetTypesCount()
       The asset set types that should be excluded from this ad group. Asset set
       links with these types will not be inherited by this ad group from the
       upper levels.
       Location group types (GMB_DYNAMIC_LOCATION_GROUP,
       CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
       LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
       location group asset sets are not allowed to be linked to this ad group,
       and all Location Extension (LE) and Affiliate Location Extensions (ALE)
       will not be served under this ad group.
       Only LOCATION_SYNC is currently supported.
       
      repeated .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 58;
      Specified by:
      getExcludedParentAssetSetTypesCount in interface AdGroupOrBuilder
      Returns:
      The count of excludedParentAssetSetTypes.
    • getExcludedParentAssetSetTypes

      public AssetSetTypeEnum.AssetSetType getExcludedParentAssetSetTypes(int index)
       The asset set types that should be excluded from this ad group. Asset set
       links with these types will not be inherited by this ad group from the
       upper levels.
       Location group types (GMB_DYNAMIC_LOCATION_GROUP,
       CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
       LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
       location group asset sets are not allowed to be linked to this ad group,
       and all Location Extension (LE) and Affiliate Location Extensions (ALE)
       will not be served under this ad group.
       Only LOCATION_SYNC is currently supported.
       
      repeated .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 58;
      Specified by:
      getExcludedParentAssetSetTypes in interface AdGroupOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The excludedParentAssetSetTypes at the given index.
    • setExcludedParentAssetSetTypes

      public AdGroup.Builder setExcludedParentAssetSetTypes(int index, AssetSetTypeEnum.AssetSetType value)
       The asset set types that should be excluded from this ad group. Asset set
       links with these types will not be inherited by this ad group from the
       upper levels.
       Location group types (GMB_DYNAMIC_LOCATION_GROUP,
       CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
       LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
       location group asset sets are not allowed to be linked to this ad group,
       and all Location Extension (LE) and Affiliate Location Extensions (ALE)
       will not be served under this ad group.
       Only LOCATION_SYNC is currently supported.
       
      repeated .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 58;
      Parameters:
      index - The index to set the value at.
      value - The excludedParentAssetSetTypes to set.
      Returns:
      This builder for chaining.
    • addExcludedParentAssetSetTypes

      public AdGroup.Builder addExcludedParentAssetSetTypes(AssetSetTypeEnum.AssetSetType value)
       The asset set types that should be excluded from this ad group. Asset set
       links with these types will not be inherited by this ad group from the
       upper levels.
       Location group types (GMB_DYNAMIC_LOCATION_GROUP,
       CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
       LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
       location group asset sets are not allowed to be linked to this ad group,
       and all Location Extension (LE) and Affiliate Location Extensions (ALE)
       will not be served under this ad group.
       Only LOCATION_SYNC is currently supported.
       
      repeated .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 58;
      Parameters:
      value - The excludedParentAssetSetTypes to add.
      Returns:
      This builder for chaining.
    • addAllExcludedParentAssetSetTypes

      public AdGroup.Builder addAllExcludedParentAssetSetTypes(Iterable<? extends AssetSetTypeEnum.AssetSetType> values)
       The asset set types that should be excluded from this ad group. Asset set
       links with these types will not be inherited by this ad group from the
       upper levels.
       Location group types (GMB_DYNAMIC_LOCATION_GROUP,
       CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
       LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
       location group asset sets are not allowed to be linked to this ad group,
       and all Location Extension (LE) and Affiliate Location Extensions (ALE)
       will not be served under this ad group.
       Only LOCATION_SYNC is currently supported.
       
      repeated .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 58;
      Parameters:
      values - The excludedParentAssetSetTypes to add.
      Returns:
      This builder for chaining.
    • clearExcludedParentAssetSetTypes

      public AdGroup.Builder clearExcludedParentAssetSetTypes()
       The asset set types that should be excluded from this ad group. Asset set
       links with these types will not be inherited by this ad group from the
       upper levels.
       Location group types (GMB_DYNAMIC_LOCATION_GROUP,
       CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
       LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
       location group asset sets are not allowed to be linked to this ad group,
       and all Location Extension (LE) and Affiliate Location Extensions (ALE)
       will not be served under this ad group.
       Only LOCATION_SYNC is currently supported.
       
      repeated .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 58;
      Returns:
      This builder for chaining.
    • getExcludedParentAssetSetTypesValueList

      public List<Integer> getExcludedParentAssetSetTypesValueList()
       The asset set types that should be excluded from this ad group. Asset set
       links with these types will not be inherited by this ad group from the
       upper levels.
       Location group types (GMB_DYNAMIC_LOCATION_GROUP,
       CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
       LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
       location group asset sets are not allowed to be linked to this ad group,
       and all Location Extension (LE) and Affiliate Location Extensions (ALE)
       will not be served under this ad group.
       Only LOCATION_SYNC is currently supported.
       
      repeated .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 58;
      Specified by:
      getExcludedParentAssetSetTypesValueList in interface AdGroupOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for excludedParentAssetSetTypes.
    • getExcludedParentAssetSetTypesValue

      public int getExcludedParentAssetSetTypesValue(int index)
       The asset set types that should be excluded from this ad group. Asset set
       links with these types will not be inherited by this ad group from the
       upper levels.
       Location group types (GMB_DYNAMIC_LOCATION_GROUP,
       CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
       LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
       location group asset sets are not allowed to be linked to this ad group,
       and all Location Extension (LE) and Affiliate Location Extensions (ALE)
       will not be served under this ad group.
       Only LOCATION_SYNC is currently supported.
       
      repeated .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 58;
      Specified by:
      getExcludedParentAssetSetTypesValue in interface AdGroupOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of excludedParentAssetSetTypes at the given index.
    • setExcludedParentAssetSetTypesValue

      public AdGroup.Builder setExcludedParentAssetSetTypesValue(int index, int value)
       The asset set types that should be excluded from this ad group. Asset set
       links with these types will not be inherited by this ad group from the
       upper levels.
       Location group types (GMB_DYNAMIC_LOCATION_GROUP,
       CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
       LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
       location group asset sets are not allowed to be linked to this ad group,
       and all Location Extension (LE) and Affiliate Location Extensions (ALE)
       will not be served under this ad group.
       Only LOCATION_SYNC is currently supported.
       
      repeated .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 58;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for excludedParentAssetSetTypes to set.
      Returns:
      This builder for chaining.
    • addExcludedParentAssetSetTypesValue

      public AdGroup.Builder addExcludedParentAssetSetTypesValue(int value)
       The asset set types that should be excluded from this ad group. Asset set
       links with these types will not be inherited by this ad group from the
       upper levels.
       Location group types (GMB_DYNAMIC_LOCATION_GROUP,
       CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
       LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
       location group asset sets are not allowed to be linked to this ad group,
       and all Location Extension (LE) and Affiliate Location Extensions (ALE)
       will not be served under this ad group.
       Only LOCATION_SYNC is currently supported.
       
      repeated .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 58;
      Parameters:
      value - The enum numeric value on the wire for excludedParentAssetSetTypes to add.
      Returns:
      This builder for chaining.
    • addAllExcludedParentAssetSetTypesValue

      public AdGroup.Builder addAllExcludedParentAssetSetTypesValue(Iterable<Integer> values)
       The asset set types that should be excluded from this ad group. Asset set
       links with these types will not be inherited by this ad group from the
       upper levels.
       Location group types (GMB_DYNAMIC_LOCATION_GROUP,
       CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of
       LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all
       location group asset sets are not allowed to be linked to this ad group,
       and all Location Extension (LE) and Affiliate Location Extensions (ALE)
       will not be served under this ad group.
       Only LOCATION_SYNC is currently supported.
       
      repeated .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType excluded_parent_asset_set_types = 58;
      Parameters:
      values - The enum numeric values on the wire for excludedParentAssetSetTypes to add.
      Returns:
      This builder for chaining.
    • getPrimaryStatusValue

      public int getPrimaryStatusValue()
       Output only. Provides aggregated view into why an ad group is not serving
       or not serving optimally.
       
      .google.ads.googleads.v18.enums.AdGroupPrimaryStatusEnum.AdGroupPrimaryStatus primary_status = 62 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimaryStatusValue in interface AdGroupOrBuilder
      Returns:
      The enum numeric value on the wire for primaryStatus.
    • setPrimaryStatusValue

      public AdGroup.Builder setPrimaryStatusValue(int value)
       Output only. Provides aggregated view into why an ad group is not serving
       or not serving optimally.
       
      .google.ads.googleads.v18.enums.AdGroupPrimaryStatusEnum.AdGroupPrimaryStatus primary_status = 62 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for primaryStatus to set.
      Returns:
      This builder for chaining.
    • getPrimaryStatus

       Output only. Provides aggregated view into why an ad group is not serving
       or not serving optimally.
       
      .google.ads.googleads.v18.enums.AdGroupPrimaryStatusEnum.AdGroupPrimaryStatus primary_status = 62 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimaryStatus in interface AdGroupOrBuilder
      Returns:
      The primaryStatus.
    • setPrimaryStatus

       Output only. Provides aggregated view into why an ad group is not serving
       or not serving optimally.
       
      .google.ads.googleads.v18.enums.AdGroupPrimaryStatusEnum.AdGroupPrimaryStatus primary_status = 62 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The primaryStatus to set.
      Returns:
      This builder for chaining.
    • clearPrimaryStatus

      public AdGroup.Builder clearPrimaryStatus()
       Output only. Provides aggregated view into why an ad group is not serving
       or not serving optimally.
       
      .google.ads.googleads.v18.enums.AdGroupPrimaryStatusEnum.AdGroupPrimaryStatus primary_status = 62 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getPrimaryStatusReasonsList

      public List<AdGroupPrimaryStatusReasonEnum.AdGroupPrimaryStatusReason> getPrimaryStatusReasonsList()
       Output only. Provides reasons for why an ad group is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v18.enums.AdGroupPrimaryStatusReasonEnum.AdGroupPrimaryStatusReason primary_status_reasons = 63 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimaryStatusReasonsList in interface AdGroupOrBuilder
      Returns:
      A list containing the primaryStatusReasons.
    • getPrimaryStatusReasonsCount

      public int getPrimaryStatusReasonsCount()
       Output only. Provides reasons for why an ad group is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v18.enums.AdGroupPrimaryStatusReasonEnum.AdGroupPrimaryStatusReason primary_status_reasons = 63 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimaryStatusReasonsCount in interface AdGroupOrBuilder
      Returns:
      The count of primaryStatusReasons.
    • getPrimaryStatusReasons

      public AdGroupPrimaryStatusReasonEnum.AdGroupPrimaryStatusReason getPrimaryStatusReasons(int index)
       Output only. Provides reasons for why an ad group is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v18.enums.AdGroupPrimaryStatusReasonEnum.AdGroupPrimaryStatusReason primary_status_reasons = 63 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimaryStatusReasons in interface AdGroupOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The primaryStatusReasons at the given index.
    • setPrimaryStatusReasons

      public AdGroup.Builder setPrimaryStatusReasons(int index, AdGroupPrimaryStatusReasonEnum.AdGroupPrimaryStatusReason value)
       Output only. Provides reasons for why an ad group is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v18.enums.AdGroupPrimaryStatusReasonEnum.AdGroupPrimaryStatusReason primary_status_reasons = 63 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The primaryStatusReasons to set.
      Returns:
      This builder for chaining.
    • addPrimaryStatusReasons

       Output only. Provides reasons for why an ad group is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v18.enums.AdGroupPrimaryStatusReasonEnum.AdGroupPrimaryStatusReason primary_status_reasons = 63 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The primaryStatusReasons to add.
      Returns:
      This builder for chaining.
    • addAllPrimaryStatusReasons

      public AdGroup.Builder addAllPrimaryStatusReasons(Iterable<? extends AdGroupPrimaryStatusReasonEnum.AdGroupPrimaryStatusReason> values)
       Output only. Provides reasons for why an ad group is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v18.enums.AdGroupPrimaryStatusReasonEnum.AdGroupPrimaryStatusReason primary_status_reasons = 63 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The primaryStatusReasons to add.
      Returns:
      This builder for chaining.
    • clearPrimaryStatusReasons

      public AdGroup.Builder clearPrimaryStatusReasons()
       Output only. Provides reasons for why an ad group is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v18.enums.AdGroupPrimaryStatusReasonEnum.AdGroupPrimaryStatusReason primary_status_reasons = 63 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getPrimaryStatusReasonsValueList

      public List<Integer> getPrimaryStatusReasonsValueList()
       Output only. Provides reasons for why an ad group is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v18.enums.AdGroupPrimaryStatusReasonEnum.AdGroupPrimaryStatusReason primary_status_reasons = 63 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimaryStatusReasonsValueList in interface AdGroupOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for primaryStatusReasons.
    • getPrimaryStatusReasonsValue

      public int getPrimaryStatusReasonsValue(int index)
       Output only. Provides reasons for why an ad group is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v18.enums.AdGroupPrimaryStatusReasonEnum.AdGroupPrimaryStatusReason primary_status_reasons = 63 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimaryStatusReasonsValue in interface AdGroupOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of primaryStatusReasons at the given index.
    • setPrimaryStatusReasonsValue

      public AdGroup.Builder setPrimaryStatusReasonsValue(int index, int value)
       Output only. Provides reasons for why an ad group is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v18.enums.AdGroupPrimaryStatusReasonEnum.AdGroupPrimaryStatusReason primary_status_reasons = 63 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for primaryStatusReasons to set.
      Returns:
      This builder for chaining.
    • addPrimaryStatusReasonsValue

      public AdGroup.Builder addPrimaryStatusReasonsValue(int value)
       Output only. Provides reasons for why an ad group is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v18.enums.AdGroupPrimaryStatusReasonEnum.AdGroupPrimaryStatusReason primary_status_reasons = 63 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for primaryStatusReasons to add.
      Returns:
      This builder for chaining.
    • addAllPrimaryStatusReasonsValue

      public AdGroup.Builder addAllPrimaryStatusReasonsValue(Iterable<Integer> values)
       Output only. Provides reasons for why an ad group is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v18.enums.AdGroupPrimaryStatusReasonEnum.AdGroupPrimaryStatusReason primary_status_reasons = 63 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The enum numeric values on the wire for primaryStatusReasons to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final AdGroup.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroup.Builder>
    • mergeUnknownFields

      public final AdGroup.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdGroup.Builder>