Class TargetCpa.Builder

  • All Implemented Interfaces:
    TargetCpaOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    TargetCpa

    public static final class TargetCpa.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TargetCpa.Builder>
    implements TargetCpaOrBuilder
     An automated bid strategy that sets bids to help get as many conversions as
     possible at the target cost-per-acquisition (CPA) you set.
     
    Protobuf type google.ads.googleads.v10.common.TargetCpa
    • Method Detail

      • 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<TargetCpa.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public TargetCpa.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<TargetCpa.Builder>
      • isInitialized

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

        public TargetCpa.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws java.io.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<TargetCpa.Builder>
        Throws:
        java.io.IOException
      • hasTargetCpaMicros

        public boolean hasTargetCpaMicros()
         Average CPA target.
         This target should be greater than or equal to minimum billable unit based
         on the currency for the account.
         
        optional int64 target_cpa_micros = 4;
        Specified by:
        hasTargetCpaMicros in interface TargetCpaOrBuilder
        Returns:
        Whether the targetCpaMicros field is set.
      • getTargetCpaMicros

        public long getTargetCpaMicros()
         Average CPA target.
         This target should be greater than or equal to minimum billable unit based
         on the currency for the account.
         
        optional int64 target_cpa_micros = 4;
        Specified by:
        getTargetCpaMicros in interface TargetCpaOrBuilder
        Returns:
        The targetCpaMicros.
      • setTargetCpaMicros

        public TargetCpa.Builder setTargetCpaMicros​(long value)
         Average CPA target.
         This target should be greater than or equal to minimum billable unit based
         on the currency for the account.
         
        optional int64 target_cpa_micros = 4;
        Parameters:
        value - The targetCpaMicros to set.
        Returns:
        This builder for chaining.
      • clearTargetCpaMicros

        public TargetCpa.Builder clearTargetCpaMicros()
         Average CPA target.
         This target should be greater than or equal to minimum billable unit based
         on the currency for the account.
         
        optional int64 target_cpa_micros = 4;
        Returns:
        This builder for chaining.
      • hasCpcBidCeilingMicros

        public boolean hasCpcBidCeilingMicros()
         Maximum bid limit that can be set by the bid strategy.
         The limit applies to all keywords managed by the strategy.
         This should only be set for portfolio bid strategies.
         
        optional int64 cpc_bid_ceiling_micros = 5;
        Specified by:
        hasCpcBidCeilingMicros in interface TargetCpaOrBuilder
        Returns:
        Whether the cpcBidCeilingMicros field is set.
      • getCpcBidCeilingMicros

        public long getCpcBidCeilingMicros()
         Maximum bid limit that can be set by the bid strategy.
         The limit applies to all keywords managed by the strategy.
         This should only be set for portfolio bid strategies.
         
        optional int64 cpc_bid_ceiling_micros = 5;
        Specified by:
        getCpcBidCeilingMicros in interface TargetCpaOrBuilder
        Returns:
        The cpcBidCeilingMicros.
      • setCpcBidCeilingMicros

        public TargetCpa.Builder setCpcBidCeilingMicros​(long value)
         Maximum bid limit that can be set by the bid strategy.
         The limit applies to all keywords managed by the strategy.
         This should only be set for portfolio bid strategies.
         
        optional int64 cpc_bid_ceiling_micros = 5;
        Parameters:
        value - The cpcBidCeilingMicros to set.
        Returns:
        This builder for chaining.
      • clearCpcBidCeilingMicros

        public TargetCpa.Builder clearCpcBidCeilingMicros()
         Maximum bid limit that can be set by the bid strategy.
         The limit applies to all keywords managed by the strategy.
         This should only be set for portfolio bid strategies.
         
        optional int64 cpc_bid_ceiling_micros = 5;
        Returns:
        This builder for chaining.
      • hasCpcBidFloorMicros

        public boolean hasCpcBidFloorMicros()
         Minimum bid limit that can be set by the bid strategy.
         The limit applies to all keywords managed by the strategy.
         This should only be set for portfolio bid strategies.
         
        optional int64 cpc_bid_floor_micros = 6;
        Specified by:
        hasCpcBidFloorMicros in interface TargetCpaOrBuilder
        Returns:
        Whether the cpcBidFloorMicros field is set.
      • getCpcBidFloorMicros

        public long getCpcBidFloorMicros()
         Minimum bid limit that can be set by the bid strategy.
         The limit applies to all keywords managed by the strategy.
         This should only be set for portfolio bid strategies.
         
        optional int64 cpc_bid_floor_micros = 6;
        Specified by:
        getCpcBidFloorMicros in interface TargetCpaOrBuilder
        Returns:
        The cpcBidFloorMicros.
      • setCpcBidFloorMicros

        public TargetCpa.Builder setCpcBidFloorMicros​(long value)
         Minimum bid limit that can be set by the bid strategy.
         The limit applies to all keywords managed by the strategy.
         This should only be set for portfolio bid strategies.
         
        optional int64 cpc_bid_floor_micros = 6;
        Parameters:
        value - The cpcBidFloorMicros to set.
        Returns:
        This builder for chaining.
      • clearCpcBidFloorMicros

        public TargetCpa.Builder clearCpcBidFloorMicros()
         Minimum bid limit that can be set by the bid strategy.
         The limit applies to all keywords managed by the strategy.
         This should only be set for portfolio bid strategies.
         
        optional int64 cpc_bid_floor_micros = 6;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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