Class ConversionTrackingSetting.Builder

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

    public static final class ConversionTrackingSetting.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ConversionTrackingSetting.Builder>
    implements ConversionTrackingSettingOrBuilder
     A collection of customer-wide settings related to Google Ads Conversion
     Tracking.
     
    Protobuf type google.ads.googleads.v10.resources.ConversionTrackingSetting
    • 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<ConversionTrackingSetting.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<ConversionTrackingSetting.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

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

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

        public ConversionTrackingSetting.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<ConversionTrackingSetting.Builder>
        Throws:
        java.io.IOException
      • hasConversionTrackingId

        public boolean hasConversionTrackingId()
         Output only. The conversion tracking id used for this account. This id is automatically
         assigned after any conversion tracking feature is used. If the customer
         doesn't use conversion tracking, this is 0. This field is read-only.
         
        optional int64 conversion_tracking_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasConversionTrackingId in interface ConversionTrackingSettingOrBuilder
        Returns:
        Whether the conversionTrackingId field is set.
      • getConversionTrackingId

        public long getConversionTrackingId()
         Output only. The conversion tracking id used for this account. This id is automatically
         assigned after any conversion tracking feature is used. If the customer
         doesn't use conversion tracking, this is 0. This field is read-only.
         
        optional int64 conversion_tracking_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getConversionTrackingId in interface ConversionTrackingSettingOrBuilder
        Returns:
        The conversionTrackingId.
      • setConversionTrackingId

        public ConversionTrackingSetting.Builder setConversionTrackingId​(long value)
         Output only. The conversion tracking id used for this account. This id is automatically
         assigned after any conversion tracking feature is used. If the customer
         doesn't use conversion tracking, this is 0. This field is read-only.
         
        optional int64 conversion_tracking_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The conversionTrackingId to set.
        Returns:
        This builder for chaining.
      • clearConversionTrackingId

        public ConversionTrackingSetting.Builder clearConversionTrackingId()
         Output only. The conversion tracking id used for this account. This id is automatically
         assigned after any conversion tracking feature is used. If the customer
         doesn't use conversion tracking, this is 0. This field is read-only.
         
        optional int64 conversion_tracking_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasCrossAccountConversionTrackingId

        public boolean hasCrossAccountConversionTrackingId()
         Output only. The conversion tracking id of the customer's manager. This is set when the
         customer is opted into cross account conversion tracking, and it overrides
         conversion_tracking_id. This field can only be managed through the Google
         Ads UI. This field is read-only.
         
        optional int64 cross_account_conversion_tracking_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCrossAccountConversionTrackingId in interface ConversionTrackingSettingOrBuilder
        Returns:
        Whether the crossAccountConversionTrackingId field is set.
      • getCrossAccountConversionTrackingId

        public long getCrossAccountConversionTrackingId()
         Output only. The conversion tracking id of the customer's manager. This is set when the
         customer is opted into cross account conversion tracking, and it overrides
         conversion_tracking_id. This field can only be managed through the Google
         Ads UI. This field is read-only.
         
        optional int64 cross_account_conversion_tracking_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCrossAccountConversionTrackingId in interface ConversionTrackingSettingOrBuilder
        Returns:
        The crossAccountConversionTrackingId.
      • setCrossAccountConversionTrackingId

        public ConversionTrackingSetting.Builder setCrossAccountConversionTrackingId​(long value)
         Output only. The conversion tracking id of the customer's manager. This is set when the
         customer is opted into cross account conversion tracking, and it overrides
         conversion_tracking_id. This field can only be managed through the Google
         Ads UI. This field is read-only.
         
        optional int64 cross_account_conversion_tracking_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The crossAccountConversionTrackingId to set.
        Returns:
        This builder for chaining.
      • clearCrossAccountConversionTrackingId

        public ConversionTrackingSetting.Builder clearCrossAccountConversionTrackingId()
         Output only. The conversion tracking id of the customer's manager. This is set when the
         customer is opted into cross account conversion tracking, and it overrides
         conversion_tracking_id. This field can only be managed through the Google
         Ads UI. This field is read-only.
         
        optional int64 cross_account_conversion_tracking_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getAcceptedCustomerDataTerms

        public boolean getAcceptedCustomerDataTerms()
         Output only. Whether the customer has accepted customer data terms. If using
         cross-account conversion tracking, this value is inherited from the
         manager. This field is read-only. For more
         information, see https://support.google.com/adspolicy/answer/7475709.
         
        bool accepted_customer_data_terms = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAcceptedCustomerDataTerms in interface ConversionTrackingSettingOrBuilder
        Returns:
        The acceptedCustomerDataTerms.
      • setAcceptedCustomerDataTerms

        public ConversionTrackingSetting.Builder setAcceptedCustomerDataTerms​(boolean value)
         Output only. Whether the customer has accepted customer data terms. If using
         cross-account conversion tracking, this value is inherited from the
         manager. This field is read-only. For more
         information, see https://support.google.com/adspolicy/answer/7475709.
         
        bool accepted_customer_data_terms = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The acceptedCustomerDataTerms to set.
        Returns:
        This builder for chaining.
      • clearAcceptedCustomerDataTerms

        public ConversionTrackingSetting.Builder clearAcceptedCustomerDataTerms()
         Output only. Whether the customer has accepted customer data terms. If using
         cross-account conversion tracking, this value is inherited from the
         manager. This field is read-only. For more
         information, see https://support.google.com/adspolicy/answer/7475709.
         
        bool accepted_customer_data_terms = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getConversionTrackingStatusValue

        public int getConversionTrackingStatusValue()
         Output only. Conversion tracking status. It indicates whether the customer is using
         conversion tracking, and who is the conversion tracking owner of this
         customer. If this customer is using cross-account conversion tracking,
         the value returned will differ based on the `login-customer-id` of the
         request.
         
        .google.ads.googleads.v10.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getConversionTrackingStatusValue in interface ConversionTrackingSettingOrBuilder
        Returns:
        The enum numeric value on the wire for conversionTrackingStatus.
      • setConversionTrackingStatusValue

        public ConversionTrackingSetting.Builder setConversionTrackingStatusValue​(int value)
         Output only. Conversion tracking status. It indicates whether the customer is using
         conversion tracking, and who is the conversion tracking owner of this
         customer. If this customer is using cross-account conversion tracking,
         the value returned will differ based on the `login-customer-id` of the
         request.
         
        .google.ads.googleads.v10.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for conversionTrackingStatus to set.
        Returns:
        This builder for chaining.
      • getConversionTrackingStatus

        public ConversionTrackingStatusEnum.ConversionTrackingStatus getConversionTrackingStatus()
         Output only. Conversion tracking status. It indicates whether the customer is using
         conversion tracking, and who is the conversion tracking owner of this
         customer. If this customer is using cross-account conversion tracking,
         the value returned will differ based on the `login-customer-id` of the
         request.
         
        .google.ads.googleads.v10.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getConversionTrackingStatus in interface ConversionTrackingSettingOrBuilder
        Returns:
        The conversionTrackingStatus.
      • setConversionTrackingStatus

        public ConversionTrackingSetting.Builder setConversionTrackingStatus​(ConversionTrackingStatusEnum.ConversionTrackingStatus value)
         Output only. Conversion tracking status. It indicates whether the customer is using
         conversion tracking, and who is the conversion tracking owner of this
         customer. If this customer is using cross-account conversion tracking,
         the value returned will differ based on the `login-customer-id` of the
         request.
         
        .google.ads.googleads.v10.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The conversionTrackingStatus to set.
        Returns:
        This builder for chaining.
      • clearConversionTrackingStatus

        public ConversionTrackingSetting.Builder clearConversionTrackingStatus()
         Output only. Conversion tracking status. It indicates whether the customer is using
         conversion tracking, and who is the conversion tracking owner of this
         customer. If this customer is using cross-account conversion tracking,
         the value returned will differ based on the `login-customer-id` of the
         request.
         
        .google.ads.googleads.v10.enums.ConversionTrackingStatusEnum.ConversionTrackingStatus conversion_tracking_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getEnhancedConversionsForLeadsEnabled

        public boolean getEnhancedConversionsForLeadsEnabled()
         Output only. Whether the customer is opted-in for enhanced conversions
         for leads. If using cross-account conversion tracking, this value is
         inherited from the manager. This field is read-only.
         
        bool enhanced_conversions_for_leads_enabled = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEnhancedConversionsForLeadsEnabled in interface ConversionTrackingSettingOrBuilder
        Returns:
        The enhancedConversionsForLeadsEnabled.
      • setEnhancedConversionsForLeadsEnabled

        public ConversionTrackingSetting.Builder setEnhancedConversionsForLeadsEnabled​(boolean value)
         Output only. Whether the customer is opted-in for enhanced conversions
         for leads. If using cross-account conversion tracking, this value is
         inherited from the manager. This field is read-only.
         
        bool enhanced_conversions_for_leads_enabled = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enhancedConversionsForLeadsEnabled to set.
        Returns:
        This builder for chaining.
      • clearEnhancedConversionsForLeadsEnabled

        public ConversionTrackingSetting.Builder clearEnhancedConversionsForLeadsEnabled()
         Output only. Whether the customer is opted-in for enhanced conversions
         for leads. If using cross-account conversion tracking, this value is
         inherited from the manager. This field is read-only.
         
        bool enhanced_conversions_for_leads_enabled = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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