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/2471185Protobuf type
google.ads.googleads.v18.resources.DomainCategory- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA 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<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, 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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanOutput only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.longOutput only.doubleOutput only.static DomainCategorystatic final com.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.booleanOutput only.Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.Parser<DomainCategory>longOutput only.Output only.com.google.protobuf.ByteStringOutput only.intbooleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.inthashCode()booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic DomainCategory.Builderstatic DomainCategory.BuildernewBuilder(DomainCategory prototype) protected DomainCategory.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static DomainCategoryparseDelimitedFrom(InputStream input) static DomainCategoryparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DomainCategoryparseFrom(byte[] data) static DomainCategoryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DomainCategoryparseFrom(com.google.protobuf.ByteString data) static DomainCategoryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DomainCategoryparseFrom(com.google.protobuf.CodedInputStream input) static DomainCategoryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DomainCategoryparseFrom(InputStream input) static DomainCategoryparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DomainCategoryparseFrom(ByteBuffer data) static DomainCategoryparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DomainCategory>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
-
RECOMMENDED_CPC_BID_MICROS_FIELD_NUMBER
public static final int RECOMMENDED_CPC_BID_MICROS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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:
getResourceNamein interfaceDomainCategoryOrBuilder- 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:
getResourceNameBytesin interfaceDomainCategoryOrBuilder- 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:
hasCampaignin interfaceDomainCategoryOrBuilder- Returns:
- Whether the campaign field is set.
-
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:
getCampaignin interfaceDomainCategoryOrBuilder- 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:
getCampaignBytesin interfaceDomainCategoryOrBuilder- 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:
hasCategoryin interfaceDomainCategoryOrBuilder- Returns:
- Whether the category field is set.
-
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:
getCategoryin interfaceDomainCategoryOrBuilder- 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:
getCategoryBytesin interfaceDomainCategoryOrBuilder- 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:
hasLanguageCodein interfaceDomainCategoryOrBuilder- Returns:
- Whether the languageCode field is set.
-
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:
getLanguageCodein interfaceDomainCategoryOrBuilder- 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:
getLanguageCodeBytesin interfaceDomainCategoryOrBuilder- 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:
hasDomainin interfaceDomainCategoryOrBuilder- Returns:
- Whether the domain field is set.
-
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:
getDomainin interfaceDomainCategoryOrBuilder- 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:
getDomainBytesin interfaceDomainCategoryOrBuilder- 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:
hasCoverageFractionin interfaceDomainCategoryOrBuilder- 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:
getCoverageFractionin interfaceDomainCategoryOrBuilder- 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:
hasCategoryRankin interfaceDomainCategoryOrBuilder- 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:
getCategoryRankin interfaceDomainCategoryOrBuilder- 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:
hasHasChildrenin interfaceDomainCategoryOrBuilder- 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:
getHasChildrenin interfaceDomainCategoryOrBuilder- 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:
hasRecommendedCpcBidMicrosin interfaceDomainCategoryOrBuilder- 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:
getRecommendedCpcBidMicrosin interfaceDomainCategoryOrBuilder- Returns:
- The recommendedCpcBidMicros.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static DomainCategory parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DomainCategory.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-