Class DomainCategory

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.resources.DomainCategory
All Implemented Interfaces:
DomainCategoryOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, 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.v18.resources.DomainCategory
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:
    • CATEGORY_FIELD_NUMBER

      public static final int CATEGORY_FIELD_NUMBER
      See Also:
    • LANGUAGE_CODE_FIELD_NUMBER

      public static final int LANGUAGE_CODE_FIELD_NUMBER
      See Also:
    • DOMAIN_FIELD_NUMBER

      public static final int DOMAIN_FIELD_NUMBER
      See Also:
    • COVERAGE_FRACTION_FIELD_NUMBER

      public static final int COVERAGE_FRACTION_FIELD_NUMBER
      See Also:
    • CATEGORY_RANK_FIELD_NUMBER

      public static final int CATEGORY_RANK_FIELD_NUMBER
      See Also:
    • HAS_CHILDREN_FIELD_NUMBER

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

      public 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 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, for example, 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 String getCategory()
       Output only. Recommended category for the website domain, for example, 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, for example, 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, for
       example, "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 String getLanguageCode()
       Output only. The language code specifying the language of the website, for
       example, "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, for
       example, "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 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 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 DomainCategory parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

      public static DomainCategory.Builder newBuilder()
    • newBuilder

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