Class SmartCampaignSetting

  • All Implemented Interfaces:
    SmartCampaignSettingOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable

    public final class SmartCampaignSetting
    extends com.google.protobuf.GeneratedMessageV3
    implements SmartCampaignSettingOrBuilder
     Settings for configuring Smart campaigns.
     
    Protobuf type google.ads.googleads.v15.resources.SmartCampaignSetting
    See Also:
    Serialized Form
    • Field Detail

      • RESOURCE_NAME_FIELD_NUMBER

        public static final int RESOURCE_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PHONE_NUMBER_FIELD_NUMBER

        public static final int PHONE_NUMBER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ADVERTISING_LANGUAGE_CODE_FIELD_NUMBER

        public static final int ADVERTISING_LANGUAGE_CODE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • AD_OPTIMIZED_BUSINESS_PROFILE_SETTING_FIELD_NUMBER

        public static final int AD_OPTIMIZED_BUSINESS_PROFILE_SETTING_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BUSINESS_NAME_FIELD_NUMBER

        public static final int BUSINESS_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BUSINESS_PROFILE_LOCATION_FIELD_NUMBER

        public static final int BUSINESS_PROFILE_LOCATION_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getResourceName

        public java.lang.String getResourceName()
         Immutable. The resource name of the Smart campaign setting.
         Smart campaign setting resource names have the form:
        
         `customers/{customer_id}/smartCampaignSettings/{campaign_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface SmartCampaignSettingOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         Immutable. The resource name of the Smart campaign setting.
         Smart campaign setting resource names have the form:
        
         `customers/{customer_id}/smartCampaignSettings/{campaign_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceNameBytes in interface SmartCampaignSettingOrBuilder
        Returns:
        The bytes for resourceName.
      • getCampaign

        public java.lang.String getCampaign()
         Output only. The campaign to which these settings apply.
         
        string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getCampaign in interface SmartCampaignSettingOrBuilder
        Returns:
        The campaign.
      • getCampaignBytes

        public com.google.protobuf.ByteString getCampaignBytes()
         Output only. The campaign to which these settings apply.
         
        string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getCampaignBytes in interface SmartCampaignSettingOrBuilder
        Returns:
        The bytes for campaign.
      • hasPhoneNumber

        public boolean hasPhoneNumber()
         Phone number and country code.
         
        .google.ads.googleads.v15.resources.SmartCampaignSetting.PhoneNumber phone_number = 3;
        Specified by:
        hasPhoneNumber in interface SmartCampaignSettingOrBuilder
        Returns:
        Whether the phoneNumber field is set.
      • getAdvertisingLanguageCode

        public java.lang.String getAdvertisingLanguageCode()
         The language code to advertise in from the set of
         [supported language codes]
         (https://developers.google.com/google-ads/api/reference/data/codes-formats#languages).
         
        string advertising_language_code = 7;
        Specified by:
        getAdvertisingLanguageCode in interface SmartCampaignSettingOrBuilder
        Returns:
        The advertisingLanguageCode.
      • getAdvertisingLanguageCodeBytes

        public com.google.protobuf.ByteString getAdvertisingLanguageCodeBytes()
         The language code to advertise in from the set of
         [supported language codes]
         (https://developers.google.com/google-ads/api/reference/data/codes-formats#languages).
         
        string advertising_language_code = 7;
        Specified by:
        getAdvertisingLanguageCodeBytes in interface SmartCampaignSettingOrBuilder
        Returns:
        The bytes for advertisingLanguageCode.
      • hasFinalUrl

        public boolean hasFinalUrl()
         The user-provided landing page URL for this Campaign.
         
        string final_url = 8;
        Specified by:
        hasFinalUrl in interface SmartCampaignSettingOrBuilder
        Returns:
        Whether the finalUrl field is set.
      • getFinalUrl

        public java.lang.String getFinalUrl()
         The user-provided landing page URL for this Campaign.
         
        string final_url = 8;
        Specified by:
        getFinalUrl in interface SmartCampaignSettingOrBuilder
        Returns:
        The finalUrl.
      • getFinalUrlBytes

        public com.google.protobuf.ByteString getFinalUrlBytes()
         The user-provided landing page URL for this Campaign.
         
        string final_url = 8;
        Specified by:
        getFinalUrlBytes in interface SmartCampaignSettingOrBuilder
        Returns:
        The bytes for finalUrl.
      • hasAdOptimizedBusinessProfileSetting

        public boolean hasAdOptimizedBusinessProfileSetting()
         Settings for configuring a business profile optimized for ads as this
         campaign's landing page.  This campaign must be linked to a business
         profile to use this option.  For more information on this feature,
         consult https://support.google.com/google-ads/answer/9827068.
         
        .google.ads.googleads.v15.resources.SmartCampaignSetting.AdOptimizedBusinessProfileSetting ad_optimized_business_profile_setting = 9;
        Specified by:
        hasAdOptimizedBusinessProfileSetting in interface SmartCampaignSettingOrBuilder
        Returns:
        Whether the adOptimizedBusinessProfileSetting field is set.
      • getAdOptimizedBusinessProfileSetting

        public SmartCampaignSetting.AdOptimizedBusinessProfileSetting getAdOptimizedBusinessProfileSetting()
         Settings for configuring a business profile optimized for ads as this
         campaign's landing page.  This campaign must be linked to a business
         profile to use this option.  For more information on this feature,
         consult https://support.google.com/google-ads/answer/9827068.
         
        .google.ads.googleads.v15.resources.SmartCampaignSetting.AdOptimizedBusinessProfileSetting ad_optimized_business_profile_setting = 9;
        Specified by:
        getAdOptimizedBusinessProfileSetting in interface SmartCampaignSettingOrBuilder
        Returns:
        The adOptimizedBusinessProfileSetting.
      • hasBusinessName

        public boolean hasBusinessName()
         The name of the business.
         
        string business_name = 5;
        Specified by:
        hasBusinessName in interface SmartCampaignSettingOrBuilder
        Returns:
        Whether the businessName field is set.
      • getBusinessNameBytes

        public com.google.protobuf.ByteString getBusinessNameBytes()
         The name of the business.
         
        string business_name = 5;
        Specified by:
        getBusinessNameBytes in interface SmartCampaignSettingOrBuilder
        Returns:
        The bytes for businessName.
      • hasBusinessProfileLocation

        public boolean hasBusinessProfileLocation()
         The resource name of a Business Profile location.
         Business Profile location resource names can be fetched through the
         Business Profile API and adhere to the following format:
         `locations/{locationId}`.
        
         See the [Business Profile API]
         (https://developers.google.com/my-business/reference/businessinformation/rest/v1/accounts.locations)
         for additional details.
         
        string business_profile_location = 10;
        Specified by:
        hasBusinessProfileLocation in interface SmartCampaignSettingOrBuilder
        Returns:
        Whether the businessProfileLocation field is set.
      • getBusinessProfileLocation

        public java.lang.String getBusinessProfileLocation()
         The resource name of a Business Profile location.
         Business Profile location resource names can be fetched through the
         Business Profile API and adhere to the following format:
         `locations/{locationId}`.
        
         See the [Business Profile API]
         (https://developers.google.com/my-business/reference/businessinformation/rest/v1/accounts.locations)
         for additional details.
         
        string business_profile_location = 10;
        Specified by:
        getBusinessProfileLocation in interface SmartCampaignSettingOrBuilder
        Returns:
        The businessProfileLocation.
      • getBusinessProfileLocationBytes

        public com.google.protobuf.ByteString getBusinessProfileLocationBytes()
         The resource name of a Business Profile location.
         Business Profile location resource names can be fetched through the
         Business Profile API and adhere to the following format:
         `locations/{locationId}`.
        
         See the [Business Profile API]
         (https://developers.google.com/my-business/reference/businessinformation/rest/v1/accounts.locations)
         for additional details.
         
        string business_profile_location = 10;
        Specified by:
        getBusinessProfileLocationBytes in interface SmartCampaignSettingOrBuilder
        Returns:
        The bytes for businessProfileLocation.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static SmartCampaignSetting parseFrom​(java.nio.ByteBuffer data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SmartCampaignSetting parseFrom​(java.nio.ByteBuffer data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SmartCampaignSetting parseFrom​(com.google.protobuf.ByteString data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SmartCampaignSetting parseFrom​(com.google.protobuf.ByteString data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SmartCampaignSetting parseFrom​(byte[] data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SmartCampaignSetting parseFrom​(byte[] data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SmartCampaignSetting parseFrom​(java.io.InputStream input)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static SmartCampaignSetting parseFrom​(java.io.InputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static SmartCampaignSetting parseDelimitedFrom​(java.io.InputStream input)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static SmartCampaignSetting parseDelimitedFrom​(java.io.InputStream input,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static SmartCampaignSetting parseFrom​(com.google.protobuf.CodedInputStream input)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static SmartCampaignSetting parseFrom​(com.google.protobuf.CodedInputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        public SmartCampaignSetting.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public SmartCampaignSetting.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected SmartCampaignSetting.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<SmartCampaignSetting> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public SmartCampaignSetting getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder