Class DomainCategory

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

    public final class DomainCategory
    extends com.google.protobuf.GeneratedMessageV3
    implements DomainCategoryOrBuilder
     A category generated automatically by crawling a domain. If a campaign uses
     the DynamicSearchAdsSetting, then domain categories will be generated for
     the domain. The categories can be targeted using WebpageConditionInfo.
     See: https://support.google.com/google-ads/answer/2471185
     
    Protobuf type google.ads.googleads.v10.resources.DomainCategory
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DomainCategory.Builder
      A category generated automatically by crawling a domain.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,​BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Field Detail

      • RESOURCE_NAME_FIELD_NUMBER

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

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

        public static final int COVERAGE_FRACTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CATEGORY_RANK_FIELD_NUMBER

        public static final int CATEGORY_RANK_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HAS_CHILDREN_FIELD_NUMBER

        public static final int HAS_CHILDREN_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RECOMMENDED_CPC_BID_MICROS_FIELD_NUMBER

        public static final int RECOMMENDED_CPC_BID_MICROS_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
      • getResourceName

        public java.lang.String getResourceName()
         Output only. The resource name of the domain category.
         Domain category resource names have the form:
         `customers/{customer_id}/domainCategories/{campaign_id}~{category_base64}~{language_code}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface DomainCategoryOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         Output only. The resource name of the domain category.
         Domain category resource names have the form:
         `customers/{customer_id}/domainCategories/{campaign_id}~{category_base64}~{language_code}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceNameBytes in interface DomainCategoryOrBuilder
        Returns:
        The bytes for resourceName.
      • hasCampaign

        public boolean hasCampaign()
         Output only. The campaign this category is recommended for.
         
        optional string campaign = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        hasCampaign in interface DomainCategoryOrBuilder
        Returns:
        Whether the campaign field is set.
      • getCampaign

        public java.lang.String getCampaign()
         Output only. The campaign this category is recommended for.
         
        optional string campaign = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getCampaign in interface DomainCategoryOrBuilder
        Returns:
        The campaign.
      • getCampaignBytes

        public com.google.protobuf.ByteString getCampaignBytes()
         Output only. The campaign this category is recommended for.
         
        optional string campaign = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getCampaignBytes in interface DomainCategoryOrBuilder
        Returns:
        The bytes for campaign.
      • hasCategory

        public boolean hasCategory()
         Output only. Recommended category for the website domain. e.g. if you have a website
         about electronics, the categories could be "cameras", "televisions", etc.
         
        optional string category = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCategory in interface DomainCategoryOrBuilder
        Returns:
        Whether the category field is set.
      • getCategory

        public java.lang.String getCategory()
         Output only. Recommended category for the website domain. e.g. if you have a website
         about electronics, the categories could be "cameras", "televisions", etc.
         
        optional string category = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCategory in interface DomainCategoryOrBuilder
        Returns:
        The category.
      • getCategoryBytes

        public com.google.protobuf.ByteString getCategoryBytes()
         Output only. Recommended category for the website domain. e.g. if you have a website
         about electronics, the categories could be "cameras", "televisions", etc.
         
        optional string category = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCategoryBytes in interface DomainCategoryOrBuilder
        Returns:
        The bytes for category.
      • hasLanguageCode

        public boolean hasLanguageCode()
         Output only. The language code specifying the language of the website. e.g. "en" for
         English. The language can be specified in the DynamicSearchAdsSetting
         required for dynamic search ads. This is the language of the pages from
         your website that you want Google Ads to find, create ads for,
         and match searches with.
         
        optional string language_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasLanguageCode in interface DomainCategoryOrBuilder
        Returns:
        Whether the languageCode field is set.
      • getLanguageCode

        public java.lang.String getLanguageCode()
         Output only. The language code specifying the language of the website. e.g. "en" for
         English. The language can be specified in the DynamicSearchAdsSetting
         required for dynamic search ads. This is the language of the pages from
         your website that you want Google Ads to find, create ads for,
         and match searches with.
         
        optional string language_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLanguageCode in interface DomainCategoryOrBuilder
        Returns:
        The languageCode.
      • getLanguageCodeBytes

        public com.google.protobuf.ByteString getLanguageCodeBytes()
         Output only. The language code specifying the language of the website. e.g. "en" for
         English. The language can be specified in the DynamicSearchAdsSetting
         required for dynamic search ads. This is the language of the pages from
         your website that you want Google Ads to find, create ads for,
         and match searches with.
         
        optional string language_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLanguageCodeBytes in interface DomainCategoryOrBuilder
        Returns:
        The bytes for languageCode.
      • hasDomain

        public boolean hasDomain()
         Output only. The domain for the website. The domain can be specified in the
         DynamicSearchAdsSetting required for dynamic search ads.
         
        optional string domain = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasDomain in interface DomainCategoryOrBuilder
        Returns:
        Whether the domain field is set.
      • getDomain

        public java.lang.String getDomain()
         Output only. The domain for the website. The domain can be specified in the
         DynamicSearchAdsSetting required for dynamic search ads.
         
        optional string domain = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDomain in interface DomainCategoryOrBuilder
        Returns:
        The domain.
      • getDomainBytes

        public com.google.protobuf.ByteString getDomainBytes()
         Output only. The domain for the website. The domain can be specified in the
         DynamicSearchAdsSetting required for dynamic search ads.
         
        optional string domain = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDomainBytes in interface DomainCategoryOrBuilder
        Returns:
        The bytes for domain.
      • hasCoverageFraction

        public boolean hasCoverageFraction()
         Output only. Fraction of pages on your site that this category matches.
         
        optional double coverage_fraction = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCoverageFraction in interface DomainCategoryOrBuilder
        Returns:
        Whether the coverageFraction field is set.
      • getCoverageFraction

        public double getCoverageFraction()
         Output only. Fraction of pages on your site that this category matches.
         
        optional double coverage_fraction = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCoverageFraction in interface DomainCategoryOrBuilder
        Returns:
        The coverageFraction.
      • hasCategoryRank

        public boolean hasCategoryRank()
         Output only. The position of this category in the set of categories. Lower numbers
         indicate a better match for the domain. null indicates not recommended.
         
        optional int64 category_rank = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCategoryRank in interface DomainCategoryOrBuilder
        Returns:
        Whether the categoryRank field is set.
      • getCategoryRank

        public long getCategoryRank()
         Output only. The position of this category in the set of categories. Lower numbers
         indicate a better match for the domain. null indicates not recommended.
         
        optional int64 category_rank = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCategoryRank in interface DomainCategoryOrBuilder
        Returns:
        The categoryRank.
      • hasHasChildren

        public boolean hasHasChildren()
         Output only. Indicates whether this category has sub-categories.
         
        optional bool has_children = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasHasChildren in interface DomainCategoryOrBuilder
        Returns:
        Whether the hasChildren field is set.
      • getHasChildren

        public boolean getHasChildren()
         Output only. Indicates whether this category has sub-categories.
         
        optional bool has_children = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getHasChildren in interface DomainCategoryOrBuilder
        Returns:
        The hasChildren.
      • hasRecommendedCpcBidMicros

        public boolean hasRecommendedCpcBidMicros()
         Output only. The recommended cost per click for the category.
         
        optional int64 recommended_cpc_bid_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasRecommendedCpcBidMicros in interface DomainCategoryOrBuilder
        Returns:
        Whether the recommendedCpcBidMicros field is set.
      • getRecommendedCpcBidMicros

        public long getRecommendedCpcBidMicros()
         Output only. The recommended cost per click for the category.
         
        optional int64 recommended_cpc_bid_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRecommendedCpcBidMicros in interface DomainCategoryOrBuilder
        Returns:
        The recommendedCpcBidMicros.
      • 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 DomainCategory parseFrom​(java.nio.ByteBuffer data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static DomainCategory getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<DomainCategory> parser()
      • getParserForType

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