Class SmartCampaignSetting

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.resources.SmartCampaignSetting
All Implemented Interfaces:
SmartCampaignSettingOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

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

    • RESOURCE_NAME_FIELD_NUMBER

      public static final int RESOURCE_NAME_FIELD_NUMBER
      See Also:
    • CAMPAIGN_FIELD_NUMBER

      public static final int CAMPAIGN_FIELD_NUMBER
      See Also:
    • PHONE_NUMBER_FIELD_NUMBER

      public static final int PHONE_NUMBER_FIELD_NUMBER
      See Also:
    • ADVERTISING_LANGUAGE_CODE_FIELD_NUMBER

      public static final int ADVERTISING_LANGUAGE_CODE_FIELD_NUMBER
      See Also:
    • FINAL_URL_FIELD_NUMBER

      public static final int FINAL_URL_FIELD_NUMBER
      See Also:
    • AD_OPTIMIZED_BUSINESS_PROFILE_SETTING_FIELD_NUMBER

      public static final int AD_OPTIMIZED_BUSINESS_PROFILE_SETTING_FIELD_NUMBER
      See Also:
    • BUSINESS_NAME_FIELD_NUMBER

      public static final int BUSINESS_NAME_FIELD_NUMBER
      See Also:
    • BUSINESS_PROFILE_LOCATION_FIELD_NUMBER

      public static final int BUSINESS_PROFILE_LOCATION_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected 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
    • getLandingPageCase

      public SmartCampaignSetting.LandingPageCase getLandingPageCase()
      Specified by:
      getLandingPageCase in interface SmartCampaignSettingOrBuilder
    • getBusinessSettingCase

      public SmartCampaignSetting.BusinessSettingCase getBusinessSettingCase()
      Specified by:
      getBusinessSettingCase in interface SmartCampaignSettingOrBuilder
    • getResourceName

      public 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 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.v18.resources.SmartCampaignSetting.PhoneNumber phone_number = 3;
      Specified by:
      hasPhoneNumber in interface SmartCampaignSettingOrBuilder
      Returns:
      Whether the phoneNumber field is set.
    • getPhoneNumber

      public SmartCampaignSetting.PhoneNumber getPhoneNumber()
       Phone number and country code.
       
      .google.ads.googleads.v18.resources.SmartCampaignSetting.PhoneNumber phone_number = 3;
      Specified by:
      getPhoneNumber in interface SmartCampaignSettingOrBuilder
      Returns:
      The phoneNumber.
    • getPhoneNumberOrBuilder

      public SmartCampaignSetting.PhoneNumberOrBuilder getPhoneNumberOrBuilder()
       Phone number and country code.
       
      .google.ads.googleads.v18.resources.SmartCampaignSetting.PhoneNumber phone_number = 3;
      Specified by:
      getPhoneNumberOrBuilder in interface SmartCampaignSettingOrBuilder
    • getAdvertisingLanguageCode

      public 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 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.v18.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.v18.resources.SmartCampaignSetting.AdOptimizedBusinessProfileSetting ad_optimized_business_profile_setting = 9;
      Specified by:
      getAdOptimizedBusinessProfileSetting in interface SmartCampaignSettingOrBuilder
      Returns:
      The adOptimizedBusinessProfileSetting.
    • getAdOptimizedBusinessProfileSettingOrBuilder

      public SmartCampaignSetting.AdOptimizedBusinessProfileSettingOrBuilder getAdOptimizedBusinessProfileSettingOrBuilder()
       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.v18.resources.SmartCampaignSetting.AdOptimizedBusinessProfileSetting ad_optimized_business_profile_setting = 9;
      Specified by:
      getAdOptimizedBusinessProfileSettingOrBuilder in interface SmartCampaignSettingOrBuilder
    • 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.
    • getBusinessName

      public String getBusinessName()
       The name of the business.
       
      string business_name = 5;
      Specified by:
      getBusinessName in interface SmartCampaignSettingOrBuilder
      Returns:
      The businessName.
    • 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 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 IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      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(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(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SmartCampaignSetting parseFrom(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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static SmartCampaignSetting parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static SmartCampaignSetting.Builder newBuilder()
    • newBuilder

      public static SmartCampaignSetting.Builder newBuilder(SmartCampaignSetting prototype)
    • 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
    • getDefaultInstance

      public static SmartCampaignSetting getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SmartCampaignSetting> parser()
    • 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