Class SmartCampaignSuggestionInfo

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

    public final class SmartCampaignSuggestionInfo
    extends com.google.protobuf.GeneratedMessageV3
    implements SmartCampaignSuggestionInfoOrBuilder
     Information needed to get suggestion for Smart Campaign. More information
     provided will help the system to derive better suggestions.
     
    Protobuf type google.ads.googleads.v10.services.SmartCampaignSuggestionInfo
    See Also:
    Serialized Form
    • Field Detail

      • LANGUAGE_CODE_FIELD_NUMBER

        public static final int LANGUAGE_CODE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • AD_SCHEDULES_FIELD_NUMBER

        public static final int AD_SCHEDULES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • KEYWORD_THEMES_FIELD_NUMBER

        public static final int KEYWORD_THEMES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BUSINESS_CONTEXT_FIELD_NUMBER

        public static final int BUSINESS_CONTEXT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BUSINESS_LOCATION_ID_FIELD_NUMBER

        public static final int BUSINESS_LOCATION_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LOCATION_LIST_FIELD_NUMBER

        public static final int LOCATION_LIST_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
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields 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
      • getFinalUrl

        public java.lang.String getFinalUrl()
         Optional. Landing page URL of the campaign.
         
        string final_url = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getFinalUrl in interface SmartCampaignSuggestionInfoOrBuilder
        Returns:
        The finalUrl.
      • getFinalUrlBytes

        public com.google.protobuf.ByteString getFinalUrlBytes()
         Optional. Landing page URL of the campaign.
         
        string final_url = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getFinalUrlBytes in interface SmartCampaignSuggestionInfoOrBuilder
        Returns:
        The bytes for finalUrl.
      • getLanguageCode

        public java.lang.String getLanguageCode()
         Optional. The two letter advertising language for the Smart campaign to be
         constructed, default to 'en' if not set.
         
        string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLanguageCode in interface SmartCampaignSuggestionInfoOrBuilder
        Returns:
        The languageCode.
      • getLanguageCodeBytes

        public com.google.protobuf.ByteString getLanguageCodeBytes()
         Optional. The two letter advertising language for the Smart campaign to be
         constructed, default to 'en' if not set.
         
        string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLanguageCodeBytes in interface SmartCampaignSuggestionInfoOrBuilder
        Returns:
        The bytes for languageCode.
      • getAdSchedulesCount

        public int getAdSchedulesCount()
         Optional. The business ad schedule.
         
        repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAdSchedulesCount in interface SmartCampaignSuggestionInfoOrBuilder
      • getKeywordThemesList

        public java.util.List<KeywordThemeInfo> getKeywordThemesList()
         Optional. Smart campaign keyword themes. This field may greatly improve suggestion
         accuracy and we recommend always setting it if possible.
         
        repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getKeywordThemesList in interface SmartCampaignSuggestionInfoOrBuilder
      • getKeywordThemesOrBuilderList

        public java.util.List<? extends KeywordThemeInfoOrBuilder> getKeywordThemesOrBuilderList()
         Optional. Smart campaign keyword themes. This field may greatly improve suggestion
         accuracy and we recommend always setting it if possible.
         
        repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getKeywordThemesOrBuilderList in interface SmartCampaignSuggestionInfoOrBuilder
      • getKeywordThemesCount

        public int getKeywordThemesCount()
         Optional. Smart campaign keyword themes. This field may greatly improve suggestion
         accuracy and we recommend always setting it if possible.
         
        repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getKeywordThemesCount in interface SmartCampaignSuggestionInfoOrBuilder
      • getKeywordThemes

        public KeywordThemeInfo getKeywordThemes​(int index)
         Optional. Smart campaign keyword themes. This field may greatly improve suggestion
         accuracy and we recommend always setting it if possible.
         
        repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getKeywordThemes in interface SmartCampaignSuggestionInfoOrBuilder
      • getKeywordThemesOrBuilder

        public KeywordThemeInfoOrBuilder getKeywordThemesOrBuilder​(int index)
         Optional. Smart campaign keyword themes. This field may greatly improve suggestion
         accuracy and we recommend always setting it if possible.
         
        repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getKeywordThemesOrBuilder in interface SmartCampaignSuggestionInfoOrBuilder
      • hasBusinessContext

        public boolean hasBusinessContext()
         Optional. Context describing the business to advertise.
         
        .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext business_context = 8 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasBusinessContext in interface SmartCampaignSuggestionInfoOrBuilder
        Returns:
        Whether the businessContext field is set.
      • hasBusinessLocationId

        public boolean hasBusinessLocationId()
         Optional. The ID of the Business Profile location.
         The location ID can be fetched by Business Profile API with its form:
         accounts/{accountId}/locations/{locationId}. The last {locationId}
         component from the Business Profile API represents the
         business_location_id. See the [Business Profile API]
         (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)
         
        int64 business_location_id = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasBusinessLocationId in interface SmartCampaignSuggestionInfoOrBuilder
        Returns:
        Whether the businessLocationId field is set.
      • getBusinessLocationId

        public long getBusinessLocationId()
         Optional. The ID of the Business Profile location.
         The location ID can be fetched by Business Profile API with its form:
         accounts/{accountId}/locations/{locationId}. The last {locationId}
         component from the Business Profile API represents the
         business_location_id. See the [Business Profile API]
         (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)
         
        int64 business_location_id = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getBusinessLocationId in interface SmartCampaignSuggestionInfoOrBuilder
        Returns:
        The businessLocationId.
      • hasLocationList

        public boolean hasLocationList()
         Optional. The targeting geo location by locations.
         
        .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList location_list = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasLocationList in interface SmartCampaignSuggestionInfoOrBuilder
        Returns:
        Whether the locationList field is set.
      • hasProximity

        public boolean hasProximity()
         Optional. The targeting geo location by proximity.
         
        .google.ads.googleads.v10.common.ProximityInfo proximity = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasProximity in interface SmartCampaignSuggestionInfoOrBuilder
        Returns:
        Whether the proximity field is set.
      • getProximity

        public ProximityInfo getProximity()
         Optional. The targeting geo location by proximity.
         
        .google.ads.googleads.v10.common.ProximityInfo proximity = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getProximity in interface SmartCampaignSuggestionInfoOrBuilder
        Returns:
        The proximity.
      • 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 SmartCampaignSuggestionInfo parseFrom​(java.nio.ByteBuffer data)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<SmartCampaignSuggestionInfo> 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 SmartCampaignSuggestionInfo getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder