Class BiddingStrategy.Builder

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

public static final class BiddingStrategy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BiddingStrategy.Builder> implements BiddingStrategyOrBuilder
 A bidding strategy.
 
Protobuf type google.ads.googleads.v18.resources.BiddingStrategy
  • 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<BiddingStrategy.Builder>
    • clear

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

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

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

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

      public BiddingStrategy.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<BiddingStrategy.Builder>
    • setField

      public BiddingStrategy.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<BiddingStrategy.Builder>
    • clearField

      public BiddingStrategy.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<BiddingStrategy.Builder>
    • clearOneof

      public BiddingStrategy.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<BiddingStrategy.Builder>
    • setRepeatedField

      public BiddingStrategy.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<BiddingStrategy.Builder>
    • addRepeatedField

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

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

      public BiddingStrategy.Builder mergeFrom(BiddingStrategy other)
    • isInitialized

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

      public BiddingStrategy.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<BiddingStrategy.Builder>
      Throws:
      IOException
    • getSchemeCase

      public BiddingStrategy.SchemeCase getSchemeCase()
      Specified by:
      getSchemeCase in interface BiddingStrategyOrBuilder
    • clearScheme

      public BiddingStrategy.Builder clearScheme()
    • getResourceName

      public String getResourceName()
       Immutable. The resource name of the bidding strategy.
       Bidding strategy resource names have the form:
      
       `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface BiddingStrategyOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Immutable. The resource name of the bidding strategy.
       Bidding strategy resource names have the form:
      
       `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface BiddingStrategyOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public BiddingStrategy.Builder setResourceName(String value)
       Immutable. The resource name of the bidding strategy.
       Bidding strategy resource names have the form:
      
       `customers/{customer_id}/biddingStrategies/{bidding_strategy_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 BiddingStrategy.Builder clearResourceName()
       Immutable. The resource name of the bidding strategy.
       Bidding strategy resource names have the form:
      
       `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public BiddingStrategy.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Immutable. The resource name of the bidding strategy.
       Bidding strategy resource names have the form:
      
       `customers/{customer_id}/biddingStrategies/{bidding_strategy_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 bidding strategy.
       
      optional int64 id = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasId in interface BiddingStrategyOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
       Output only. The ID of the bidding strategy.
       
      optional int64 id = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getId in interface BiddingStrategyOrBuilder
      Returns:
      The id.
    • setId

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

      public BiddingStrategy.Builder clearId()
       Output only. The ID of the bidding strategy.
       
      optional int64 id = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       The name of the bidding strategy.
       All bidding strategies within an account must be named distinctly.
      
       The length of this string should be between 1 and 255, inclusive,
       in UTF-8 bytes, (trimmed).
       
      optional string name = 17;
      Specified by:
      hasName in interface BiddingStrategyOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       The name of the bidding strategy.
       All bidding strategies within an account must be named distinctly.
      
       The length of this string should be between 1 and 255, inclusive,
       in UTF-8 bytes, (trimmed).
       
      optional string name = 17;
      Specified by:
      getName in interface BiddingStrategyOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the bidding strategy.
       All bidding strategies within an account must be named distinctly.
      
       The length of this string should be between 1 and 255, inclusive,
       in UTF-8 bytes, (trimmed).
       
      optional string name = 17;
      Specified by:
      getNameBytes in interface BiddingStrategyOrBuilder
      Returns:
      The bytes for name.
    • setName

      public BiddingStrategy.Builder setName(String value)
       The name of the bidding strategy.
       All bidding strategies within an account must be named distinctly.
      
       The length of this string should be between 1 and 255, inclusive,
       in UTF-8 bytes, (trimmed).
       
      optional string name = 17;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public BiddingStrategy.Builder clearName()
       The name of the bidding strategy.
       All bidding strategies within an account must be named distinctly.
      
       The length of this string should be between 1 and 255, inclusive,
       in UTF-8 bytes, (trimmed).
       
      optional string name = 17;
      Returns:
      This builder for chaining.
    • setNameBytes

      public BiddingStrategy.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the bidding strategy.
       All bidding strategies within an account must be named distinctly.
      
       The length of this string should be between 1 and 255, inclusive,
       in UTF-8 bytes, (trimmed).
       
      optional string name = 17;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getStatusValue

      public int getStatusValue()
       Output only. The status of the bidding strategy.
      
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingStrategyStatusEnum.BiddingStrategyStatus status = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatusValue in interface BiddingStrategyOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public BiddingStrategy.Builder setStatusValue(int value)
       Output only. The status of the bidding strategy.
      
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingStrategyStatusEnum.BiddingStrategyStatus status = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

       Output only. The status of the bidding strategy.
      
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingStrategyStatusEnum.BiddingStrategyStatus status = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatus in interface BiddingStrategyOrBuilder
      Returns:
      The status.
    • setStatus

       Output only. The status of the bidding strategy.
      
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingStrategyStatusEnum.BiddingStrategyStatus status = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public BiddingStrategy.Builder clearStatus()
       Output only. The status of the bidding strategy.
      
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingStrategyStatusEnum.BiddingStrategyStatus status = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       Output only. The type of the bidding strategy.
       Create a bidding strategy by setting the bidding scheme.
      
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingStrategyTypeEnum.BiddingStrategyType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTypeValue in interface BiddingStrategyOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public BiddingStrategy.Builder setTypeValue(int value)
       Output only. The type of the bidding strategy.
       Create a bidding strategy by setting the bidding scheme.
      
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingStrategyTypeEnum.BiddingStrategyType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

       Output only. The type of the bidding strategy.
       Create a bidding strategy by setting the bidding scheme.
      
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingStrategyTypeEnum.BiddingStrategyType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getType in interface BiddingStrategyOrBuilder
      Returns:
      The type.
    • setType

       Output only. The type of the bidding strategy.
       Create a bidding strategy by setting the bidding scheme.
      
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingStrategyTypeEnum.BiddingStrategyType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public BiddingStrategy.Builder clearType()
       Output only. The type of the bidding strategy.
       Create a bidding strategy by setting the bidding scheme.
      
       This field is read-only.
       
      .google.ads.googleads.v18.enums.BiddingStrategyTypeEnum.BiddingStrategyType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getCurrencyCode

      public String getCurrencyCode()
       Immutable. The currency used by the bidding strategy (ISO 4217 three-letter
       code).
      
       For bidding strategies in manager customers, this currency can be set on
       creation and defaults to the manager customer's currency. For serving
       customers, this field cannot be set; all strategies in a serving customer
       implicitly use the serving customer's currency. In all cases the
       effective_currency_code field returns the currency used by the strategy.
       
      string currency_code = 23 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getCurrencyCode in interface BiddingStrategyOrBuilder
      Returns:
      The currencyCode.
    • getCurrencyCodeBytes

      public com.google.protobuf.ByteString getCurrencyCodeBytes()
       Immutable. The currency used by the bidding strategy (ISO 4217 three-letter
       code).
      
       For bidding strategies in manager customers, this currency can be set on
       creation and defaults to the manager customer's currency. For serving
       customers, this field cannot be set; all strategies in a serving customer
       implicitly use the serving customer's currency. In all cases the
       effective_currency_code field returns the currency used by the strategy.
       
      string currency_code = 23 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getCurrencyCodeBytes in interface BiddingStrategyOrBuilder
      Returns:
      The bytes for currencyCode.
    • setCurrencyCode

      public BiddingStrategy.Builder setCurrencyCode(String value)
       Immutable. The currency used by the bidding strategy (ISO 4217 three-letter
       code).
      
       For bidding strategies in manager customers, this currency can be set on
       creation and defaults to the manager customer's currency. For serving
       customers, this field cannot be set; all strategies in a serving customer
       implicitly use the serving customer's currency. In all cases the
       effective_currency_code field returns the currency used by the strategy.
       
      string currency_code = 23 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The currencyCode to set.
      Returns:
      This builder for chaining.
    • clearCurrencyCode

      public BiddingStrategy.Builder clearCurrencyCode()
       Immutable. The currency used by the bidding strategy (ISO 4217 three-letter
       code).
      
       For bidding strategies in manager customers, this currency can be set on
       creation and defaults to the manager customer's currency. For serving
       customers, this field cannot be set; all strategies in a serving customer
       implicitly use the serving customer's currency. In all cases the
       effective_currency_code field returns the currency used by the strategy.
       
      string currency_code = 23 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setCurrencyCodeBytes

      public BiddingStrategy.Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value)
       Immutable. The currency used by the bidding strategy (ISO 4217 three-letter
       code).
      
       For bidding strategies in manager customers, this currency can be set on
       creation and defaults to the manager customer's currency. For serving
       customers, this field cannot be set; all strategies in a serving customer
       implicitly use the serving customer's currency. In all cases the
       effective_currency_code field returns the currency used by the strategy.
       
      string currency_code = 23 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for currencyCode to set.
      Returns:
      This builder for chaining.
    • hasEffectiveCurrencyCode

      public boolean hasEffectiveCurrencyCode()
       Output only. The currency used by the bidding strategy (ISO 4217
       three-letter code).
      
       For bidding strategies in manager customers, this is the currency set by
       the advertiser when creating the strategy. For serving customers, this is
       the customer's currency_code.
      
       Bidding strategy metrics are reported in this currency.
      
       This field is read-only.
       
      optional string effective_currency_code = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasEffectiveCurrencyCode in interface BiddingStrategyOrBuilder
      Returns:
      Whether the effectiveCurrencyCode field is set.
    • getEffectiveCurrencyCode

      public String getEffectiveCurrencyCode()
       Output only. The currency used by the bidding strategy (ISO 4217
       three-letter code).
      
       For bidding strategies in manager customers, this is the currency set by
       the advertiser when creating the strategy. For serving customers, this is
       the customer's currency_code.
      
       Bidding strategy metrics are reported in this currency.
      
       This field is read-only.
       
      optional string effective_currency_code = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEffectiveCurrencyCode in interface BiddingStrategyOrBuilder
      Returns:
      The effectiveCurrencyCode.
    • getEffectiveCurrencyCodeBytes

      public com.google.protobuf.ByteString getEffectiveCurrencyCodeBytes()
       Output only. The currency used by the bidding strategy (ISO 4217
       three-letter code).
      
       For bidding strategies in manager customers, this is the currency set by
       the advertiser when creating the strategy. For serving customers, this is
       the customer's currency_code.
      
       Bidding strategy metrics are reported in this currency.
      
       This field is read-only.
       
      optional string effective_currency_code = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEffectiveCurrencyCodeBytes in interface BiddingStrategyOrBuilder
      Returns:
      The bytes for effectiveCurrencyCode.
    • setEffectiveCurrencyCode

      public BiddingStrategy.Builder setEffectiveCurrencyCode(String value)
       Output only. The currency used by the bidding strategy (ISO 4217
       three-letter code).
      
       For bidding strategies in manager customers, this is the currency set by
       the advertiser when creating the strategy. For serving customers, this is
       the customer's currency_code.
      
       Bidding strategy metrics are reported in this currency.
      
       This field is read-only.
       
      optional string effective_currency_code = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The effectiveCurrencyCode to set.
      Returns:
      This builder for chaining.
    • clearEffectiveCurrencyCode

      public BiddingStrategy.Builder clearEffectiveCurrencyCode()
       Output only. The currency used by the bidding strategy (ISO 4217
       three-letter code).
      
       For bidding strategies in manager customers, this is the currency set by
       the advertiser when creating the strategy. For serving customers, this is
       the customer's currency_code.
      
       Bidding strategy metrics are reported in this currency.
      
       This field is read-only.
       
      optional string effective_currency_code = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setEffectiveCurrencyCodeBytes

      public BiddingStrategy.Builder setEffectiveCurrencyCodeBytes(com.google.protobuf.ByteString value)
       Output only. The currency used by the bidding strategy (ISO 4217
       three-letter code).
      
       For bidding strategies in manager customers, this is the currency set by
       the advertiser when creating the strategy. For serving customers, this is
       the customer's currency_code.
      
       Bidding strategy metrics are reported in this currency.
      
       This field is read-only.
       
      optional string effective_currency_code = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for effectiveCurrencyCode to set.
      Returns:
      This builder for chaining.
    • getAlignedCampaignBudgetId

      public long getAlignedCampaignBudgetId()
       ID of the campaign budget that this portfolio bidding strategy
       is aligned with. When a portfolio and a campaign budget are aligned, that
       means that they are attached to the same set of campaigns. After a bidding
       strategy is aligned with a campaign budget, campaigns that are added to the
       bidding strategy must also use the aligned campaign budget.
       
      int64 aligned_campaign_budget_id = 25;
      Specified by:
      getAlignedCampaignBudgetId in interface BiddingStrategyOrBuilder
      Returns:
      The alignedCampaignBudgetId.
    • setAlignedCampaignBudgetId

      public BiddingStrategy.Builder setAlignedCampaignBudgetId(long value)
       ID of the campaign budget that this portfolio bidding strategy
       is aligned with. When a portfolio and a campaign budget are aligned, that
       means that they are attached to the same set of campaigns. After a bidding
       strategy is aligned with a campaign budget, campaigns that are added to the
       bidding strategy must also use the aligned campaign budget.
       
      int64 aligned_campaign_budget_id = 25;
      Parameters:
      value - The alignedCampaignBudgetId to set.
      Returns:
      This builder for chaining.
    • clearAlignedCampaignBudgetId

      public BiddingStrategy.Builder clearAlignedCampaignBudgetId()
       ID of the campaign budget that this portfolio bidding strategy
       is aligned with. When a portfolio and a campaign budget are aligned, that
       means that they are attached to the same set of campaigns. After a bidding
       strategy is aligned with a campaign budget, campaigns that are added to the
       bidding strategy must also use the aligned campaign budget.
       
      int64 aligned_campaign_budget_id = 25;
      Returns:
      This builder for chaining.
    • hasCampaignCount

      public boolean hasCampaignCount()
       Output only. The number of campaigns attached to this bidding strategy.
      
       This field is read-only.
       
      optional int64 campaign_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCampaignCount in interface BiddingStrategyOrBuilder
      Returns:
      Whether the campaignCount field is set.
    • getCampaignCount

      public long getCampaignCount()
       Output only. The number of campaigns attached to this bidding strategy.
      
       This field is read-only.
       
      optional int64 campaign_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCampaignCount in interface BiddingStrategyOrBuilder
      Returns:
      The campaignCount.
    • setCampaignCount

      public BiddingStrategy.Builder setCampaignCount(long value)
       Output only. The number of campaigns attached to this bidding strategy.
      
       This field is read-only.
       
      optional int64 campaign_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The campaignCount to set.
      Returns:
      This builder for chaining.
    • clearCampaignCount

      public BiddingStrategy.Builder clearCampaignCount()
       Output only. The number of campaigns attached to this bidding strategy.
      
       This field is read-only.
       
      optional int64 campaign_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasNonRemovedCampaignCount

      public boolean hasNonRemovedCampaignCount()
       Output only. The number of non-removed campaigns attached to this bidding
       strategy.
      
       This field is read-only.
       
      optional int64 non_removed_campaign_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasNonRemovedCampaignCount in interface BiddingStrategyOrBuilder
      Returns:
      Whether the nonRemovedCampaignCount field is set.
    • getNonRemovedCampaignCount

      public long getNonRemovedCampaignCount()
       Output only. The number of non-removed campaigns attached to this bidding
       strategy.
      
       This field is read-only.
       
      optional int64 non_removed_campaign_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNonRemovedCampaignCount in interface BiddingStrategyOrBuilder
      Returns:
      The nonRemovedCampaignCount.
    • setNonRemovedCampaignCount

      public BiddingStrategy.Builder setNonRemovedCampaignCount(long value)
       Output only. The number of non-removed campaigns attached to this bidding
       strategy.
      
       This field is read-only.
       
      optional int64 non_removed_campaign_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The nonRemovedCampaignCount to set.
      Returns:
      This builder for chaining.
    • clearNonRemovedCampaignCount

      public BiddingStrategy.Builder clearNonRemovedCampaignCount()
       Output only. The number of non-removed campaigns attached to this bidding
       strategy.
      
       This field is read-only.
       
      optional int64 non_removed_campaign_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasEnhancedCpc

      public boolean hasEnhancedCpc()
       A bidding strategy that raises bids for clicks that seem more likely to
       lead to a conversion and lowers them for clicks where they seem less
       likely.
       
      .google.ads.googleads.v18.common.EnhancedCpc enhanced_cpc = 7;
      Specified by:
      hasEnhancedCpc in interface BiddingStrategyOrBuilder
      Returns:
      Whether the enhancedCpc field is set.
    • getEnhancedCpc

      public EnhancedCpc getEnhancedCpc()
       A bidding strategy that raises bids for clicks that seem more likely to
       lead to a conversion and lowers them for clicks where they seem less
       likely.
       
      .google.ads.googleads.v18.common.EnhancedCpc enhanced_cpc = 7;
      Specified by:
      getEnhancedCpc in interface BiddingStrategyOrBuilder
      Returns:
      The enhancedCpc.
    • setEnhancedCpc

      public BiddingStrategy.Builder setEnhancedCpc(EnhancedCpc value)
       A bidding strategy that raises bids for clicks that seem more likely to
       lead to a conversion and lowers them for clicks where they seem less
       likely.
       
      .google.ads.googleads.v18.common.EnhancedCpc enhanced_cpc = 7;
    • setEnhancedCpc

      public BiddingStrategy.Builder setEnhancedCpc(EnhancedCpc.Builder builderForValue)
       A bidding strategy that raises bids for clicks that seem more likely to
       lead to a conversion and lowers them for clicks where they seem less
       likely.
       
      .google.ads.googleads.v18.common.EnhancedCpc enhanced_cpc = 7;
    • mergeEnhancedCpc

      public BiddingStrategy.Builder mergeEnhancedCpc(EnhancedCpc value)
       A bidding strategy that raises bids for clicks that seem more likely to
       lead to a conversion and lowers them for clicks where they seem less
       likely.
       
      .google.ads.googleads.v18.common.EnhancedCpc enhanced_cpc = 7;
    • clearEnhancedCpc

      public BiddingStrategy.Builder clearEnhancedCpc()
       A bidding strategy that raises bids for clicks that seem more likely to
       lead to a conversion and lowers them for clicks where they seem less
       likely.
       
      .google.ads.googleads.v18.common.EnhancedCpc enhanced_cpc = 7;
    • getEnhancedCpcBuilder

      public EnhancedCpc.Builder getEnhancedCpcBuilder()
       A bidding strategy that raises bids for clicks that seem more likely to
       lead to a conversion and lowers them for clicks where they seem less
       likely.
       
      .google.ads.googleads.v18.common.EnhancedCpc enhanced_cpc = 7;
    • getEnhancedCpcOrBuilder

      public EnhancedCpcOrBuilder getEnhancedCpcOrBuilder()
       A bidding strategy that raises bids for clicks that seem more likely to
       lead to a conversion and lowers them for clicks where they seem less
       likely.
       
      .google.ads.googleads.v18.common.EnhancedCpc enhanced_cpc = 7;
      Specified by:
      getEnhancedCpcOrBuilder in interface BiddingStrategyOrBuilder
    • hasMaximizeConversionValue

      public boolean hasMaximizeConversionValue()
       An automated bidding strategy to help get the most conversion value for
       your campaigns while spending your budget.
       
      .google.ads.googleads.v18.common.MaximizeConversionValue maximize_conversion_value = 21;
      Specified by:
      hasMaximizeConversionValue in interface BiddingStrategyOrBuilder
      Returns:
      Whether the maximizeConversionValue field is set.
    • getMaximizeConversionValue

      public MaximizeConversionValue getMaximizeConversionValue()
       An automated bidding strategy to help get the most conversion value for
       your campaigns while spending your budget.
       
      .google.ads.googleads.v18.common.MaximizeConversionValue maximize_conversion_value = 21;
      Specified by:
      getMaximizeConversionValue in interface BiddingStrategyOrBuilder
      Returns:
      The maximizeConversionValue.
    • setMaximizeConversionValue

      public BiddingStrategy.Builder setMaximizeConversionValue(MaximizeConversionValue value)
       An automated bidding strategy to help get the most conversion value for
       your campaigns while spending your budget.
       
      .google.ads.googleads.v18.common.MaximizeConversionValue maximize_conversion_value = 21;
    • setMaximizeConversionValue

      public BiddingStrategy.Builder setMaximizeConversionValue(MaximizeConversionValue.Builder builderForValue)
       An automated bidding strategy to help get the most conversion value for
       your campaigns while spending your budget.
       
      .google.ads.googleads.v18.common.MaximizeConversionValue maximize_conversion_value = 21;
    • mergeMaximizeConversionValue

      public BiddingStrategy.Builder mergeMaximizeConversionValue(MaximizeConversionValue value)
       An automated bidding strategy to help get the most conversion value for
       your campaigns while spending your budget.
       
      .google.ads.googleads.v18.common.MaximizeConversionValue maximize_conversion_value = 21;
    • clearMaximizeConversionValue

      public BiddingStrategy.Builder clearMaximizeConversionValue()
       An automated bidding strategy to help get the most conversion value for
       your campaigns while spending your budget.
       
      .google.ads.googleads.v18.common.MaximizeConversionValue maximize_conversion_value = 21;
    • getMaximizeConversionValueBuilder

      public MaximizeConversionValue.Builder getMaximizeConversionValueBuilder()
       An automated bidding strategy to help get the most conversion value for
       your campaigns while spending your budget.
       
      .google.ads.googleads.v18.common.MaximizeConversionValue maximize_conversion_value = 21;
    • getMaximizeConversionValueOrBuilder

      public MaximizeConversionValueOrBuilder getMaximizeConversionValueOrBuilder()
       An automated bidding strategy to help get the most conversion value for
       your campaigns while spending your budget.
       
      .google.ads.googleads.v18.common.MaximizeConversionValue maximize_conversion_value = 21;
      Specified by:
      getMaximizeConversionValueOrBuilder in interface BiddingStrategyOrBuilder
    • hasMaximizeConversions

      public boolean hasMaximizeConversions()
       An automated bidding strategy to help get the most conversions for your
       campaigns while spending your budget.
       
      .google.ads.googleads.v18.common.MaximizeConversions maximize_conversions = 22;
      Specified by:
      hasMaximizeConversions in interface BiddingStrategyOrBuilder
      Returns:
      Whether the maximizeConversions field is set.
    • getMaximizeConversions

      public MaximizeConversions getMaximizeConversions()
       An automated bidding strategy to help get the most conversions for your
       campaigns while spending your budget.
       
      .google.ads.googleads.v18.common.MaximizeConversions maximize_conversions = 22;
      Specified by:
      getMaximizeConversions in interface BiddingStrategyOrBuilder
      Returns:
      The maximizeConversions.
    • setMaximizeConversions

      public BiddingStrategy.Builder setMaximizeConversions(MaximizeConversions value)
       An automated bidding strategy to help get the most conversions for your
       campaigns while spending your budget.
       
      .google.ads.googleads.v18.common.MaximizeConversions maximize_conversions = 22;
    • setMaximizeConversions

      public BiddingStrategy.Builder setMaximizeConversions(MaximizeConversions.Builder builderForValue)
       An automated bidding strategy to help get the most conversions for your
       campaigns while spending your budget.
       
      .google.ads.googleads.v18.common.MaximizeConversions maximize_conversions = 22;
    • mergeMaximizeConversions

      public BiddingStrategy.Builder mergeMaximizeConversions(MaximizeConversions value)
       An automated bidding strategy to help get the most conversions for your
       campaigns while spending your budget.
       
      .google.ads.googleads.v18.common.MaximizeConversions maximize_conversions = 22;
    • clearMaximizeConversions

      public BiddingStrategy.Builder clearMaximizeConversions()
       An automated bidding strategy to help get the most conversions for your
       campaigns while spending your budget.
       
      .google.ads.googleads.v18.common.MaximizeConversions maximize_conversions = 22;
    • getMaximizeConversionsBuilder

      public MaximizeConversions.Builder getMaximizeConversionsBuilder()
       An automated bidding strategy to help get the most conversions for your
       campaigns while spending your budget.
       
      .google.ads.googleads.v18.common.MaximizeConversions maximize_conversions = 22;
    • getMaximizeConversionsOrBuilder

      public MaximizeConversionsOrBuilder getMaximizeConversionsOrBuilder()
       An automated bidding strategy to help get the most conversions for your
       campaigns while spending your budget.
       
      .google.ads.googleads.v18.common.MaximizeConversions maximize_conversions = 22;
      Specified by:
      getMaximizeConversionsOrBuilder in interface BiddingStrategyOrBuilder
    • hasTargetCpa

      public boolean hasTargetCpa()
       A bidding strategy that sets bids to help get as many conversions as
       possible at the target cost-per-acquisition (CPA) you set.
       
      .google.ads.googleads.v18.common.TargetCpa target_cpa = 9;
      Specified by:
      hasTargetCpa in interface BiddingStrategyOrBuilder
      Returns:
      Whether the targetCpa field is set.
    • getTargetCpa

      public TargetCpa getTargetCpa()
       A bidding strategy that sets bids to help get as many conversions as
       possible at the target cost-per-acquisition (CPA) you set.
       
      .google.ads.googleads.v18.common.TargetCpa target_cpa = 9;
      Specified by:
      getTargetCpa in interface BiddingStrategyOrBuilder
      Returns:
      The targetCpa.
    • setTargetCpa

      public BiddingStrategy.Builder setTargetCpa(TargetCpa value)
       A bidding strategy that sets bids to help get as many conversions as
       possible at the target cost-per-acquisition (CPA) you set.
       
      .google.ads.googleads.v18.common.TargetCpa target_cpa = 9;
    • setTargetCpa

      public BiddingStrategy.Builder setTargetCpa(TargetCpa.Builder builderForValue)
       A bidding strategy that sets bids to help get as many conversions as
       possible at the target cost-per-acquisition (CPA) you set.
       
      .google.ads.googleads.v18.common.TargetCpa target_cpa = 9;
    • mergeTargetCpa

      public BiddingStrategy.Builder mergeTargetCpa(TargetCpa value)
       A bidding strategy that sets bids to help get as many conversions as
       possible at the target cost-per-acquisition (CPA) you set.
       
      .google.ads.googleads.v18.common.TargetCpa target_cpa = 9;
    • clearTargetCpa

      public BiddingStrategy.Builder clearTargetCpa()
       A bidding strategy that sets bids to help get as many conversions as
       possible at the target cost-per-acquisition (CPA) you set.
       
      .google.ads.googleads.v18.common.TargetCpa target_cpa = 9;
    • getTargetCpaBuilder

      public TargetCpa.Builder getTargetCpaBuilder()
       A bidding strategy that sets bids to help get as many conversions as
       possible at the target cost-per-acquisition (CPA) you set.
       
      .google.ads.googleads.v18.common.TargetCpa target_cpa = 9;
    • getTargetCpaOrBuilder

      public TargetCpaOrBuilder getTargetCpaOrBuilder()
       A bidding strategy that sets bids to help get as many conversions as
       possible at the target cost-per-acquisition (CPA) you set.
       
      .google.ads.googleads.v18.common.TargetCpa target_cpa = 9;
      Specified by:
      getTargetCpaOrBuilder in interface BiddingStrategyOrBuilder
    • hasTargetImpressionShare

      public boolean hasTargetImpressionShare()
       A bidding strategy that automatically optimizes towards a chosen
       percentage of impressions.
       
      .google.ads.googleads.v18.common.TargetImpressionShare target_impression_share = 48;
      Specified by:
      hasTargetImpressionShare in interface BiddingStrategyOrBuilder
      Returns:
      Whether the targetImpressionShare field is set.
    • getTargetImpressionShare

      public TargetImpressionShare getTargetImpressionShare()
       A bidding strategy that automatically optimizes towards a chosen
       percentage of impressions.
       
      .google.ads.googleads.v18.common.TargetImpressionShare target_impression_share = 48;
      Specified by:
      getTargetImpressionShare in interface BiddingStrategyOrBuilder
      Returns:
      The targetImpressionShare.
    • setTargetImpressionShare

      public BiddingStrategy.Builder setTargetImpressionShare(TargetImpressionShare value)
       A bidding strategy that automatically optimizes towards a chosen
       percentage of impressions.
       
      .google.ads.googleads.v18.common.TargetImpressionShare target_impression_share = 48;
    • setTargetImpressionShare

      public BiddingStrategy.Builder setTargetImpressionShare(TargetImpressionShare.Builder builderForValue)
       A bidding strategy that automatically optimizes towards a chosen
       percentage of impressions.
       
      .google.ads.googleads.v18.common.TargetImpressionShare target_impression_share = 48;
    • mergeTargetImpressionShare

      public BiddingStrategy.Builder mergeTargetImpressionShare(TargetImpressionShare value)
       A bidding strategy that automatically optimizes towards a chosen
       percentage of impressions.
       
      .google.ads.googleads.v18.common.TargetImpressionShare target_impression_share = 48;
    • clearTargetImpressionShare

      public BiddingStrategy.Builder clearTargetImpressionShare()
       A bidding strategy that automatically optimizes towards a chosen
       percentage of impressions.
       
      .google.ads.googleads.v18.common.TargetImpressionShare target_impression_share = 48;
    • getTargetImpressionShareBuilder

      public TargetImpressionShare.Builder getTargetImpressionShareBuilder()
       A bidding strategy that automatically optimizes towards a chosen
       percentage of impressions.
       
      .google.ads.googleads.v18.common.TargetImpressionShare target_impression_share = 48;
    • getTargetImpressionShareOrBuilder

      public TargetImpressionShareOrBuilder getTargetImpressionShareOrBuilder()
       A bidding strategy that automatically optimizes towards a chosen
       percentage of impressions.
       
      .google.ads.googleads.v18.common.TargetImpressionShare target_impression_share = 48;
      Specified by:
      getTargetImpressionShareOrBuilder in interface BiddingStrategyOrBuilder
    • hasTargetRoas

      public boolean hasTargetRoas()
       A bidding strategy that helps you maximize revenue while averaging a
       specific target Return On Ad Spend (ROAS).
       
      .google.ads.googleads.v18.common.TargetRoas target_roas = 11;
      Specified by:
      hasTargetRoas in interface BiddingStrategyOrBuilder
      Returns:
      Whether the targetRoas field is set.
    • getTargetRoas

      public TargetRoas getTargetRoas()
       A bidding strategy that helps you maximize revenue while averaging a
       specific target Return On Ad Spend (ROAS).
       
      .google.ads.googleads.v18.common.TargetRoas target_roas = 11;
      Specified by:
      getTargetRoas in interface BiddingStrategyOrBuilder
      Returns:
      The targetRoas.
    • setTargetRoas

      public BiddingStrategy.Builder setTargetRoas(TargetRoas value)
       A bidding strategy that helps you maximize revenue while averaging a
       specific target Return On Ad Spend (ROAS).
       
      .google.ads.googleads.v18.common.TargetRoas target_roas = 11;
    • setTargetRoas

      public BiddingStrategy.Builder setTargetRoas(TargetRoas.Builder builderForValue)
       A bidding strategy that helps you maximize revenue while averaging a
       specific target Return On Ad Spend (ROAS).
       
      .google.ads.googleads.v18.common.TargetRoas target_roas = 11;
    • mergeTargetRoas

      public BiddingStrategy.Builder mergeTargetRoas(TargetRoas value)
       A bidding strategy that helps you maximize revenue while averaging a
       specific target Return On Ad Spend (ROAS).
       
      .google.ads.googleads.v18.common.TargetRoas target_roas = 11;
    • clearTargetRoas

      public BiddingStrategy.Builder clearTargetRoas()
       A bidding strategy that helps you maximize revenue while averaging a
       specific target Return On Ad Spend (ROAS).
       
      .google.ads.googleads.v18.common.TargetRoas target_roas = 11;
    • getTargetRoasBuilder

      public TargetRoas.Builder getTargetRoasBuilder()
       A bidding strategy that helps you maximize revenue while averaging a
       specific target Return On Ad Spend (ROAS).
       
      .google.ads.googleads.v18.common.TargetRoas target_roas = 11;
    • getTargetRoasOrBuilder

      public TargetRoasOrBuilder getTargetRoasOrBuilder()
       A bidding strategy that helps you maximize revenue while averaging a
       specific target Return On Ad Spend (ROAS).
       
      .google.ads.googleads.v18.common.TargetRoas target_roas = 11;
      Specified by:
      getTargetRoasOrBuilder in interface BiddingStrategyOrBuilder
    • hasTargetSpend

      public boolean hasTargetSpend()
       A bid strategy that sets your bids to help get as many clicks as
       possible within your budget.
       
      .google.ads.googleads.v18.common.TargetSpend target_spend = 12;
      Specified by:
      hasTargetSpend in interface BiddingStrategyOrBuilder
      Returns:
      Whether the targetSpend field is set.
    • getTargetSpend

      public TargetSpend getTargetSpend()
       A bid strategy that sets your bids to help get as many clicks as
       possible within your budget.
       
      .google.ads.googleads.v18.common.TargetSpend target_spend = 12;
      Specified by:
      getTargetSpend in interface BiddingStrategyOrBuilder
      Returns:
      The targetSpend.
    • setTargetSpend

      public BiddingStrategy.Builder setTargetSpend(TargetSpend value)
       A bid strategy that sets your bids to help get as many clicks as
       possible within your budget.
       
      .google.ads.googleads.v18.common.TargetSpend target_spend = 12;
    • setTargetSpend

      public BiddingStrategy.Builder setTargetSpend(TargetSpend.Builder builderForValue)
       A bid strategy that sets your bids to help get as many clicks as
       possible within your budget.
       
      .google.ads.googleads.v18.common.TargetSpend target_spend = 12;
    • mergeTargetSpend

      public BiddingStrategy.Builder mergeTargetSpend(TargetSpend value)
       A bid strategy that sets your bids to help get as many clicks as
       possible within your budget.
       
      .google.ads.googleads.v18.common.TargetSpend target_spend = 12;
    • clearTargetSpend

      public BiddingStrategy.Builder clearTargetSpend()
       A bid strategy that sets your bids to help get as many clicks as
       possible within your budget.
       
      .google.ads.googleads.v18.common.TargetSpend target_spend = 12;
    • getTargetSpendBuilder

      public TargetSpend.Builder getTargetSpendBuilder()
       A bid strategy that sets your bids to help get as many clicks as
       possible within your budget.
       
      .google.ads.googleads.v18.common.TargetSpend target_spend = 12;
    • getTargetSpendOrBuilder

      public TargetSpendOrBuilder getTargetSpendOrBuilder()
       A bid strategy that sets your bids to help get as many clicks as
       possible within your budget.
       
      .google.ads.googleads.v18.common.TargetSpend target_spend = 12;
      Specified by:
      getTargetSpendOrBuilder in interface BiddingStrategyOrBuilder
    • setUnknownFields

      public final BiddingStrategy.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<BiddingStrategy.Builder>
    • mergeUnknownFields

      public final BiddingStrategy.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<BiddingStrategy.Builder>