Class AdGroupAd.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AdGroupAd.Builder>
com.google.ads.googleads.v23.resources.AdGroupAd.Builder
All Implemented Interfaces:
AdGroupAdOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AdGroupAd

public static final class AdGroupAd.Builder extends com.google.protobuf.GeneratedMessage.Builder<AdGroupAd.Builder> implements AdGroupAdOrBuilder
 An ad group ad.
 
Protobuf type google.ads.googleads.v23.resources.AdGroupAd
  • Method Details

    • getDescriptor

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

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

      public AdGroupAd.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.GeneratedMessage.Builder<AdGroupAd.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.GeneratedMessage.Builder<AdGroupAd.Builder>
    • getDefaultInstanceForType

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

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

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

      public AdGroupAd.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<AdGroupAd.Builder>
    • mergeFrom

      public AdGroupAd.Builder mergeFrom(AdGroupAd other)
    • isInitialized

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

      public AdGroupAd.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<AdGroupAd.Builder>
      Throws:
      IOException
    • getResourceName

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

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

      public AdGroupAd.Builder setResourceName(String value)
       Immutable. The resource name of the ad.
       Ad group ad resource names have the form:
      
       `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_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 AdGroupAd.Builder clearResourceName()
       Immutable. The resource name of the ad.
       Ad group ad resource names have the form:
      
       `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public AdGroupAd.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Immutable. The resource name of the ad.
       Ad group ad resource names have the form:
      
       `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_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.
    • getStatusValue

      public int getStatusValue()
       The status of the ad.
       
      .google.ads.googleads.v23.enums.AdGroupAdStatusEnum.AdGroupAdStatus status = 3;
      Specified by:
      getStatusValue in interface AdGroupAdOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public AdGroupAd.Builder setStatusValue(int value)
       The status of the ad.
       
      .google.ads.googleads.v23.enums.AdGroupAdStatusEnum.AdGroupAdStatus status = 3;
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

       The status of the ad.
       
      .google.ads.googleads.v23.enums.AdGroupAdStatusEnum.AdGroupAdStatus status = 3;
      Specified by:
      getStatus in interface AdGroupAdOrBuilder
      Returns:
      The status.
    • setStatus

       The status of the ad.
       
      .google.ads.googleads.v23.enums.AdGroupAdStatusEnum.AdGroupAdStatus status = 3;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public AdGroupAd.Builder clearStatus()
       The status of the ad.
       
      .google.ads.googleads.v23.enums.AdGroupAdStatusEnum.AdGroupAdStatus status = 3;
      Returns:
      This builder for chaining.
    • hasAdGroup

      public boolean hasAdGroup()
       Immutable. The ad group to which the ad belongs.
       
      optional string ad_group = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      hasAdGroup in interface AdGroupAdOrBuilder
      Returns:
      Whether the adGroup field is set.
    • getAdGroup

      public String getAdGroup()
       Immutable. The ad group to which the ad belongs.
       
      optional string ad_group = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getAdGroup in interface AdGroupAdOrBuilder
      Returns:
      The adGroup.
    • getAdGroupBytes

      public com.google.protobuf.ByteString getAdGroupBytes()
       Immutable. The ad group to which the ad belongs.
       
      optional string ad_group = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getAdGroupBytes in interface AdGroupAdOrBuilder
      Returns:
      The bytes for adGroup.
    • setAdGroup

      public AdGroupAd.Builder setAdGroup(String value)
       Immutable. The ad group to which the ad belongs.
       
      optional string ad_group = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The adGroup to set.
      Returns:
      This builder for chaining.
    • clearAdGroup

      public AdGroupAd.Builder clearAdGroup()
       Immutable. The ad group to which the ad belongs.
       
      optional string ad_group = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setAdGroupBytes

      public AdGroupAd.Builder setAdGroupBytes(com.google.protobuf.ByteString value)
       Immutable. The ad group to which the ad belongs.
       
      optional string ad_group = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for adGroup to set.
      Returns:
      This builder for chaining.
    • hasAd

      public boolean hasAd()
       Immutable. The ad.
       
      .google.ads.googleads.v23.resources.Ad ad = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasAd in interface AdGroupAdOrBuilder
      Returns:
      Whether the ad field is set.
    • getAd

      public Ad getAd()
       Immutable. The ad.
       
      .google.ads.googleads.v23.resources.Ad ad = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getAd in interface AdGroupAdOrBuilder
      Returns:
      The ad.
    • setAd

      public AdGroupAd.Builder setAd(Ad value)
       Immutable. The ad.
       
      .google.ads.googleads.v23.resources.Ad ad = 5 [(.google.api.field_behavior) = IMMUTABLE];
    • setAd

      public AdGroupAd.Builder setAd(Ad.Builder builderForValue)
       Immutable. The ad.
       
      .google.ads.googleads.v23.resources.Ad ad = 5 [(.google.api.field_behavior) = IMMUTABLE];
    • mergeAd

      public AdGroupAd.Builder mergeAd(Ad value)
       Immutable. The ad.
       
      .google.ads.googleads.v23.resources.Ad ad = 5 [(.google.api.field_behavior) = IMMUTABLE];
    • clearAd

      public AdGroupAd.Builder clearAd()
       Immutable. The ad.
       
      .google.ads.googleads.v23.resources.Ad ad = 5 [(.google.api.field_behavior) = IMMUTABLE];
    • getAdBuilder

      public Ad.Builder getAdBuilder()
       Immutable. The ad.
       
      .google.ads.googleads.v23.resources.Ad ad = 5 [(.google.api.field_behavior) = IMMUTABLE];
    • getAdOrBuilder

      public AdOrBuilder getAdOrBuilder()
       Immutable. The ad.
       
      .google.ads.googleads.v23.resources.Ad ad = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getAdOrBuilder in interface AdGroupAdOrBuilder
    • getStartDateTime

      public String getStartDateTime()
       The date and time when ad group ad starts serving. This is added on top of
       the campaign's start date and time, if present, to further restrict the
       duration of an ad group ad. The timestamp is in the customer's time zone
       and in "yyyy-MM-dd HH:mm:ss" format. Only supported for some ad types.
       
      string start_date_time = 20;
      Specified by:
      getStartDateTime in interface AdGroupAdOrBuilder
      Returns:
      The startDateTime.
    • getStartDateTimeBytes

      public com.google.protobuf.ByteString getStartDateTimeBytes()
       The date and time when ad group ad starts serving. This is added on top of
       the campaign's start date and time, if present, to further restrict the
       duration of an ad group ad. The timestamp is in the customer's time zone
       and in "yyyy-MM-dd HH:mm:ss" format. Only supported for some ad types.
       
      string start_date_time = 20;
      Specified by:
      getStartDateTimeBytes in interface AdGroupAdOrBuilder
      Returns:
      The bytes for startDateTime.
    • setStartDateTime

      public AdGroupAd.Builder setStartDateTime(String value)
       The date and time when ad group ad starts serving. This is added on top of
       the campaign's start date and time, if present, to further restrict the
       duration of an ad group ad. The timestamp is in the customer's time zone
       and in "yyyy-MM-dd HH:mm:ss" format. Only supported for some ad types.
       
      string start_date_time = 20;
      Parameters:
      value - The startDateTime to set.
      Returns:
      This builder for chaining.
    • clearStartDateTime

      public AdGroupAd.Builder clearStartDateTime()
       The date and time when ad group ad starts serving. This is added on top of
       the campaign's start date and time, if present, to further restrict the
       duration of an ad group ad. The timestamp is in the customer's time zone
       and in "yyyy-MM-dd HH:mm:ss" format. Only supported for some ad types.
       
      string start_date_time = 20;
      Returns:
      This builder for chaining.
    • setStartDateTimeBytes

      public AdGroupAd.Builder setStartDateTimeBytes(com.google.protobuf.ByteString value)
       The date and time when ad group ad starts serving. This is added on top of
       the campaign's start date and time, if present, to further restrict the
       duration of an ad group ad. The timestamp is in the customer's time zone
       and in "yyyy-MM-dd HH:mm:ss" format. Only supported for some ad types.
       
      string start_date_time = 20;
      Parameters:
      value - The bytes for startDateTime to set.
      Returns:
      This builder for chaining.
    • getEndDateTime

      public String getEndDateTime()
       The last day and time when ad group ad serves. This is added on top of
       the campaign's end date and time, if present, to further restrict the
       duration of an ad group ad. The timestamp is in the customer's time zone
       and in "yyyy-MM-dd HH:mm:ss" format. Only supported for some ad types.
       
      string end_date_time = 21;
      Specified by:
      getEndDateTime in interface AdGroupAdOrBuilder
      Returns:
      The endDateTime.
    • getEndDateTimeBytes

      public com.google.protobuf.ByteString getEndDateTimeBytes()
       The last day and time when ad group ad serves. This is added on top of
       the campaign's end date and time, if present, to further restrict the
       duration of an ad group ad. The timestamp is in the customer's time zone
       and in "yyyy-MM-dd HH:mm:ss" format. Only supported for some ad types.
       
      string end_date_time = 21;
      Specified by:
      getEndDateTimeBytes in interface AdGroupAdOrBuilder
      Returns:
      The bytes for endDateTime.
    • setEndDateTime

      public AdGroupAd.Builder setEndDateTime(String value)
       The last day and time when ad group ad serves. This is added on top of
       the campaign's end date and time, if present, to further restrict the
       duration of an ad group ad. The timestamp is in the customer's time zone
       and in "yyyy-MM-dd HH:mm:ss" format. Only supported for some ad types.
       
      string end_date_time = 21;
      Parameters:
      value - The endDateTime to set.
      Returns:
      This builder for chaining.
    • clearEndDateTime

      public AdGroupAd.Builder clearEndDateTime()
       The last day and time when ad group ad serves. This is added on top of
       the campaign's end date and time, if present, to further restrict the
       duration of an ad group ad. The timestamp is in the customer's time zone
       and in "yyyy-MM-dd HH:mm:ss" format. Only supported for some ad types.
       
      string end_date_time = 21;
      Returns:
      This builder for chaining.
    • setEndDateTimeBytes

      public AdGroupAd.Builder setEndDateTimeBytes(com.google.protobuf.ByteString value)
       The last day and time when ad group ad serves. This is added on top of
       the campaign's end date and time, if present, to further restrict the
       duration of an ad group ad. The timestamp is in the customer's time zone
       and in "yyyy-MM-dd HH:mm:ss" format. Only supported for some ad types.
       
      string end_date_time = 21;
      Parameters:
      value - The bytes for endDateTime to set.
      Returns:
      This builder for chaining.
    • hasPolicySummary

      public boolean hasPolicySummary()
       Output only. Policy information for the ad.
       
      .google.ads.googleads.v23.resources.AdGroupAdPolicySummary policy_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasPolicySummary in interface AdGroupAdOrBuilder
      Returns:
      Whether the policySummary field is set.
    • getPolicySummary

      public AdGroupAdPolicySummary getPolicySummary()
       Output only. Policy information for the ad.
       
      .google.ads.googleads.v23.resources.AdGroupAdPolicySummary policy_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPolicySummary in interface AdGroupAdOrBuilder
      Returns:
      The policySummary.
    • setPolicySummary

      public AdGroupAd.Builder setPolicySummary(AdGroupAdPolicySummary value)
       Output only. Policy information for the ad.
       
      .google.ads.googleads.v23.resources.AdGroupAdPolicySummary policy_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setPolicySummary

      public AdGroupAd.Builder setPolicySummary(AdGroupAdPolicySummary.Builder builderForValue)
       Output only. Policy information for the ad.
       
      .google.ads.googleads.v23.resources.AdGroupAdPolicySummary policy_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergePolicySummary

      public AdGroupAd.Builder mergePolicySummary(AdGroupAdPolicySummary value)
       Output only. Policy information for the ad.
       
      .google.ads.googleads.v23.resources.AdGroupAdPolicySummary policy_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearPolicySummary

      public AdGroupAd.Builder clearPolicySummary()
       Output only. Policy information for the ad.
       
      .google.ads.googleads.v23.resources.AdGroupAdPolicySummary policy_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPolicySummaryBuilder

      public AdGroupAdPolicySummary.Builder getPolicySummaryBuilder()
       Output only. Policy information for the ad.
       
      .google.ads.googleads.v23.resources.AdGroupAdPolicySummary policy_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPolicySummaryOrBuilder

      public AdGroupAdPolicySummaryOrBuilder getPolicySummaryOrBuilder()
       Output only. Policy information for the ad.
       
      .google.ads.googleads.v23.resources.AdGroupAdPolicySummary policy_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPolicySummaryOrBuilder in interface AdGroupAdOrBuilder
    • getAdStrengthValue

      public int getAdStrengthValue()
       Output only. Overall ad strength for this ad group ad.
       
      .google.ads.googleads.v23.enums.AdStrengthEnum.AdStrength ad_strength = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdStrengthValue in interface AdGroupAdOrBuilder
      Returns:
      The enum numeric value on the wire for adStrength.
    • setAdStrengthValue

      public AdGroupAd.Builder setAdStrengthValue(int value)
       Output only. Overall ad strength for this ad group ad.
       
      .google.ads.googleads.v23.enums.AdStrengthEnum.AdStrength ad_strength = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for adStrength to set.
      Returns:
      This builder for chaining.
    • getAdStrength

      public AdStrengthEnum.AdStrength getAdStrength()
       Output only. Overall ad strength for this ad group ad.
       
      .google.ads.googleads.v23.enums.AdStrengthEnum.AdStrength ad_strength = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdStrength in interface AdGroupAdOrBuilder
      Returns:
      The adStrength.
    • setAdStrength

      public AdGroupAd.Builder setAdStrength(AdStrengthEnum.AdStrength value)
       Output only. Overall ad strength for this ad group ad.
       
      .google.ads.googleads.v23.enums.AdStrengthEnum.AdStrength ad_strength = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The adStrength to set.
      Returns:
      This builder for chaining.
    • clearAdStrength

      public AdGroupAd.Builder clearAdStrength()
       Output only. Overall ad strength for this ad group ad.
       
      .google.ads.googleads.v23.enums.AdStrengthEnum.AdStrength ad_strength = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getActionItemsList

      public com.google.protobuf.ProtocolStringList getActionItemsList()
       Output only. A list of recommendations to improve the ad strength. For
       example, a recommendation could be "Try adding a few more unique headlines
       or unpinning some assets.".
       
      repeated string action_items = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getActionItemsList in interface AdGroupAdOrBuilder
      Returns:
      A list containing the actionItems.
    • getActionItemsCount

      public int getActionItemsCount()
       Output only. A list of recommendations to improve the ad strength. For
       example, a recommendation could be "Try adding a few more unique headlines
       or unpinning some assets.".
       
      repeated string action_items = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getActionItemsCount in interface AdGroupAdOrBuilder
      Returns:
      The count of actionItems.
    • getActionItems

      public String getActionItems(int index)
       Output only. A list of recommendations to improve the ad strength. For
       example, a recommendation could be "Try adding a few more unique headlines
       or unpinning some assets.".
       
      repeated string action_items = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getActionItems in interface AdGroupAdOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The actionItems at the given index.
    • getActionItemsBytes

      public com.google.protobuf.ByteString getActionItemsBytes(int index)
       Output only. A list of recommendations to improve the ad strength. For
       example, a recommendation could be "Try adding a few more unique headlines
       or unpinning some assets.".
       
      repeated string action_items = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getActionItemsBytes in interface AdGroupAdOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the actionItems at the given index.
    • setActionItems

      public AdGroupAd.Builder setActionItems(int index, String value)
       Output only. A list of recommendations to improve the ad strength. For
       example, a recommendation could be "Try adding a few more unique headlines
       or unpinning some assets.".
       
      repeated string action_items = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The actionItems to set.
      Returns:
      This builder for chaining.
    • addActionItems

      public AdGroupAd.Builder addActionItems(String value)
       Output only. A list of recommendations to improve the ad strength. For
       example, a recommendation could be "Try adding a few more unique headlines
       or unpinning some assets.".
       
      repeated string action_items = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The actionItems to add.
      Returns:
      This builder for chaining.
    • addAllActionItems

      public AdGroupAd.Builder addAllActionItems(Iterable<String> values)
       Output only. A list of recommendations to improve the ad strength. For
       example, a recommendation could be "Try adding a few more unique headlines
       or unpinning some assets.".
       
      repeated string action_items = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The actionItems to add.
      Returns:
      This builder for chaining.
    • clearActionItems

      public AdGroupAd.Builder clearActionItems()
       Output only. A list of recommendations to improve the ad strength. For
       example, a recommendation could be "Try adding a few more unique headlines
       or unpinning some assets.".
       
      repeated string action_items = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addActionItemsBytes

      public AdGroupAd.Builder addActionItemsBytes(com.google.protobuf.ByteString value)
       Output only. A list of recommendations to improve the ad strength. For
       example, a recommendation could be "Try adding a few more unique headlines
       or unpinning some assets.".
       
      repeated string action_items = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the actionItems to add.
      Returns:
      This builder for chaining.
    • getLabelsList

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

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

      public String getLabels(int index)
       Output only. The resource names of labels attached to this ad group ad.
       
      repeated string labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getLabels in interface AdGroupAdOrBuilder
      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 ad.
       
      repeated string labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getLabelsBytes in interface AdGroupAdOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the labels at the given index.
    • setLabels

      public AdGroupAd.Builder setLabels(int index, String value)
       Output only. The resource names of labels attached to this ad group ad.
       
      repeated string labels = 10 [(.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 AdGroupAd.Builder addLabels(String value)
       Output only. The resource names of labels attached to this ad group ad.
       
      repeated string labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The labels to add.
      Returns:
      This builder for chaining.
    • addAllLabels

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

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

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

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

      public AdGroupAd.Builder setPrimaryStatusValue(int value)
       Output only. Provides aggregated view into why an ad group ad is not
       serving or not serving optimally.
       
      .google.ads.googleads.v23.enums.AdGroupAdPrimaryStatusEnum.AdGroupAdPrimaryStatus primary_status = 16 [(.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 ad is not
       serving or not serving optimally.
       
      .google.ads.googleads.v23.enums.AdGroupAdPrimaryStatusEnum.AdGroupAdPrimaryStatus primary_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimaryStatus in interface AdGroupAdOrBuilder
      Returns:
      The primaryStatus.
    • setPrimaryStatus

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

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

       Output only. Provides reasons for why an ad group ad is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v23.enums.AdGroupAdPrimaryStatusReasonEnum.AdGroupAdPrimaryStatusReason primary_status_reasons = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimaryStatusReasonsList in interface AdGroupAdOrBuilder
      Returns:
      A list containing the primaryStatusReasons.
    • getPrimaryStatusReasonsCount

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

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

      public AdGroupAd.Builder setPrimaryStatusReasons(int index, AdGroupAdPrimaryStatusReasonEnum.AdGroupAdPrimaryStatusReason value)
       Output only. Provides reasons for why an ad group ad is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v23.enums.AdGroupAdPrimaryStatusReasonEnum.AdGroupAdPrimaryStatusReason primary_status_reasons = 17 [(.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 ad is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v23.enums.AdGroupAdPrimaryStatusReasonEnum.AdGroupAdPrimaryStatusReason primary_status_reasons = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The primaryStatusReasons to add.
      Returns:
      This builder for chaining.
    • addAllPrimaryStatusReasons

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

      public AdGroupAd.Builder clearPrimaryStatusReasons()
       Output only. Provides reasons for why an ad group ad is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v23.enums.AdGroupAdPrimaryStatusReasonEnum.AdGroupAdPrimaryStatusReason primary_status_reasons = 17 [(.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 ad is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v23.enums.AdGroupAdPrimaryStatusReasonEnum.AdGroupAdPrimaryStatusReason primary_status_reasons = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimaryStatusReasonsValueList in interface AdGroupAdOrBuilder
      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 ad is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v23.enums.AdGroupAdPrimaryStatusReasonEnum.AdGroupAdPrimaryStatusReason primary_status_reasons = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimaryStatusReasonsValue in interface AdGroupAdOrBuilder
      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 AdGroupAd.Builder setPrimaryStatusReasonsValue(int index, int value)
       Output only. Provides reasons for why an ad group ad is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v23.enums.AdGroupAdPrimaryStatusReasonEnum.AdGroupAdPrimaryStatusReason primary_status_reasons = 17 [(.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 AdGroupAd.Builder addPrimaryStatusReasonsValue(int value)
       Output only. Provides reasons for why an ad group ad is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v23.enums.AdGroupAdPrimaryStatusReasonEnum.AdGroupAdPrimaryStatusReason primary_status_reasons = 17 [(.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 AdGroupAd.Builder addAllPrimaryStatusReasonsValue(Iterable<Integer> values)
       Output only. Provides reasons for why an ad group ad is not serving or not
       serving optimally.
       
      repeated .google.ads.googleads.v23.enums.AdGroupAdPrimaryStatusReasonEnum.AdGroupAdPrimaryStatusReason primary_status_reasons = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The enum numeric values on the wire for primaryStatusReasons to add.
      Returns:
      This builder for chaining.
    • getAdGroupAdAssetAutomationSettingsList

      public List<AdGroupAdAssetAutomationSetting> getAdGroupAdAssetAutomationSettingsList()
       Settings that control the types of asset automation. See the
       AssetAutomationTypeEnum documentation for the default opt in/out behavior
       of each type.
       
      repeated .google.ads.googleads.v23.resources.AdGroupAdAssetAutomationSetting ad_group_ad_asset_automation_settings = 18;
      Specified by:
      getAdGroupAdAssetAutomationSettingsList in interface AdGroupAdOrBuilder
    • getAdGroupAdAssetAutomationSettingsCount

      public int getAdGroupAdAssetAutomationSettingsCount()
       Settings that control the types of asset automation. See the
       AssetAutomationTypeEnum documentation for the default opt in/out behavior
       of each type.
       
      repeated .google.ads.googleads.v23.resources.AdGroupAdAssetAutomationSetting ad_group_ad_asset_automation_settings = 18;
      Specified by:
      getAdGroupAdAssetAutomationSettingsCount in interface AdGroupAdOrBuilder
    • getAdGroupAdAssetAutomationSettings

      public AdGroupAdAssetAutomationSetting getAdGroupAdAssetAutomationSettings(int index)
       Settings that control the types of asset automation. See the
       AssetAutomationTypeEnum documentation for the default opt in/out behavior
       of each type.
       
      repeated .google.ads.googleads.v23.resources.AdGroupAdAssetAutomationSetting ad_group_ad_asset_automation_settings = 18;
      Specified by:
      getAdGroupAdAssetAutomationSettings in interface AdGroupAdOrBuilder
    • setAdGroupAdAssetAutomationSettings

      public AdGroupAd.Builder setAdGroupAdAssetAutomationSettings(int index, AdGroupAdAssetAutomationSetting value)
       Settings that control the types of asset automation. See the
       AssetAutomationTypeEnum documentation for the default opt in/out behavior
       of each type.
       
      repeated .google.ads.googleads.v23.resources.AdGroupAdAssetAutomationSetting ad_group_ad_asset_automation_settings = 18;
    • setAdGroupAdAssetAutomationSettings

      public AdGroupAd.Builder setAdGroupAdAssetAutomationSettings(int index, AdGroupAdAssetAutomationSetting.Builder builderForValue)
       Settings that control the types of asset automation. See the
       AssetAutomationTypeEnum documentation for the default opt in/out behavior
       of each type.
       
      repeated .google.ads.googleads.v23.resources.AdGroupAdAssetAutomationSetting ad_group_ad_asset_automation_settings = 18;
    • addAdGroupAdAssetAutomationSettings

      public AdGroupAd.Builder addAdGroupAdAssetAutomationSettings(AdGroupAdAssetAutomationSetting value)
       Settings that control the types of asset automation. See the
       AssetAutomationTypeEnum documentation for the default opt in/out behavior
       of each type.
       
      repeated .google.ads.googleads.v23.resources.AdGroupAdAssetAutomationSetting ad_group_ad_asset_automation_settings = 18;
    • addAdGroupAdAssetAutomationSettings

      public AdGroupAd.Builder addAdGroupAdAssetAutomationSettings(int index, AdGroupAdAssetAutomationSetting value)
       Settings that control the types of asset automation. See the
       AssetAutomationTypeEnum documentation for the default opt in/out behavior
       of each type.
       
      repeated .google.ads.googleads.v23.resources.AdGroupAdAssetAutomationSetting ad_group_ad_asset_automation_settings = 18;
    • addAdGroupAdAssetAutomationSettings

      public AdGroupAd.Builder addAdGroupAdAssetAutomationSettings(AdGroupAdAssetAutomationSetting.Builder builderForValue)
       Settings that control the types of asset automation. See the
       AssetAutomationTypeEnum documentation for the default opt in/out behavior
       of each type.
       
      repeated .google.ads.googleads.v23.resources.AdGroupAdAssetAutomationSetting ad_group_ad_asset_automation_settings = 18;
    • addAdGroupAdAssetAutomationSettings

      public AdGroupAd.Builder addAdGroupAdAssetAutomationSettings(int index, AdGroupAdAssetAutomationSetting.Builder builderForValue)
       Settings that control the types of asset automation. See the
       AssetAutomationTypeEnum documentation for the default opt in/out behavior
       of each type.
       
      repeated .google.ads.googleads.v23.resources.AdGroupAdAssetAutomationSetting ad_group_ad_asset_automation_settings = 18;
    • addAllAdGroupAdAssetAutomationSettings

      public AdGroupAd.Builder addAllAdGroupAdAssetAutomationSettings(Iterable<? extends AdGroupAdAssetAutomationSetting> values)
       Settings that control the types of asset automation. See the
       AssetAutomationTypeEnum documentation for the default opt in/out behavior
       of each type.
       
      repeated .google.ads.googleads.v23.resources.AdGroupAdAssetAutomationSetting ad_group_ad_asset_automation_settings = 18;
    • clearAdGroupAdAssetAutomationSettings

      public AdGroupAd.Builder clearAdGroupAdAssetAutomationSettings()
       Settings that control the types of asset automation. See the
       AssetAutomationTypeEnum documentation for the default opt in/out behavior
       of each type.
       
      repeated .google.ads.googleads.v23.resources.AdGroupAdAssetAutomationSetting ad_group_ad_asset_automation_settings = 18;
    • removeAdGroupAdAssetAutomationSettings

      public AdGroupAd.Builder removeAdGroupAdAssetAutomationSettings(int index)
       Settings that control the types of asset automation. See the
       AssetAutomationTypeEnum documentation for the default opt in/out behavior
       of each type.
       
      repeated .google.ads.googleads.v23.resources.AdGroupAdAssetAutomationSetting ad_group_ad_asset_automation_settings = 18;
    • getAdGroupAdAssetAutomationSettingsBuilder

      public AdGroupAdAssetAutomationSetting.Builder getAdGroupAdAssetAutomationSettingsBuilder(int index)
       Settings that control the types of asset automation. See the
       AssetAutomationTypeEnum documentation for the default opt in/out behavior
       of each type.
       
      repeated .google.ads.googleads.v23.resources.AdGroupAdAssetAutomationSetting ad_group_ad_asset_automation_settings = 18;
    • getAdGroupAdAssetAutomationSettingsOrBuilder

      public AdGroupAdAssetAutomationSettingOrBuilder getAdGroupAdAssetAutomationSettingsOrBuilder(int index)
       Settings that control the types of asset automation. See the
       AssetAutomationTypeEnum documentation for the default opt in/out behavior
       of each type.
       
      repeated .google.ads.googleads.v23.resources.AdGroupAdAssetAutomationSetting ad_group_ad_asset_automation_settings = 18;
      Specified by:
      getAdGroupAdAssetAutomationSettingsOrBuilder in interface AdGroupAdOrBuilder
    • getAdGroupAdAssetAutomationSettingsOrBuilderList

      public List<? extends AdGroupAdAssetAutomationSettingOrBuilder> getAdGroupAdAssetAutomationSettingsOrBuilderList()
       Settings that control the types of asset automation. See the
       AssetAutomationTypeEnum documentation for the default opt in/out behavior
       of each type.
       
      repeated .google.ads.googleads.v23.resources.AdGroupAdAssetAutomationSetting ad_group_ad_asset_automation_settings = 18;
      Specified by:
      getAdGroupAdAssetAutomationSettingsOrBuilderList in interface AdGroupAdOrBuilder
    • addAdGroupAdAssetAutomationSettingsBuilder

      public AdGroupAdAssetAutomationSetting.Builder addAdGroupAdAssetAutomationSettingsBuilder()
       Settings that control the types of asset automation. See the
       AssetAutomationTypeEnum documentation for the default opt in/out behavior
       of each type.
       
      repeated .google.ads.googleads.v23.resources.AdGroupAdAssetAutomationSetting ad_group_ad_asset_automation_settings = 18;
    • addAdGroupAdAssetAutomationSettingsBuilder

      public AdGroupAdAssetAutomationSetting.Builder addAdGroupAdAssetAutomationSettingsBuilder(int index)
       Settings that control the types of asset automation. See the
       AssetAutomationTypeEnum documentation for the default opt in/out behavior
       of each type.
       
      repeated .google.ads.googleads.v23.resources.AdGroupAdAssetAutomationSetting ad_group_ad_asset_automation_settings = 18;
    • getAdGroupAdAssetAutomationSettingsBuilderList

      public List<AdGroupAdAssetAutomationSetting.Builder> getAdGroupAdAssetAutomationSettingsBuilderList()
       Settings that control the types of asset automation. See the
       AssetAutomationTypeEnum documentation for the default opt in/out behavior
       of each type.
       
      repeated .google.ads.googleads.v23.resources.AdGroupAdAssetAutomationSetting ad_group_ad_asset_automation_settings = 18;