Class CustomTargetingValue (0.31.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version latestkeyboard_arrow_down
public final class CustomTargetingValue extends GeneratedMessageV3 implements CustomTargetingValueOrBuilder
The CustomTargetingValue
resource.
Protobuf type google.ads.admanager.v1.CustomTargetingValue
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
AD_TAG_NAME_FIELD_NUMBER
public static final int AD_TAG_NAME_FIELD_NUMBER
Field Value
Type
Description
int
CUSTOM_TARGETING_KEY_FIELD_NUMBER
public static final int CUSTOM_TARGETING_KEY_FIELD_NUMBER
Field Value
Type
Description
int
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type
Description
int
MATCH_TYPE_FIELD_NUMBER
public static final int MATCH_TYPE_FIELD_NUMBER
Field Value
Type
Description
int
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Type
Description
int
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static CustomTargetingValue getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static CustomTargetingValue . Builder newBuilder ()
newBuilder(CustomTargetingValue prototype)
public static CustomTargetingValue . Builder newBuilder ( CustomTargetingValue prototype )
public static CustomTargetingValue parseDelimitedFrom ( InputStream input )
public static CustomTargetingValue parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static CustomTargetingValue parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CustomTargetingValue parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static CustomTargetingValue parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CustomTargetingValue parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static CustomTargetingValue parseFrom ( CodedInputStream input )
public static CustomTargetingValue parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static CustomTargetingValue parseFrom ( InputStream input )
public static CustomTargetingValue parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static CustomTargetingValue parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CustomTargetingValue parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<CustomTargetingValue> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getAdTagName()
public String getAdTagName ()
Immutable. Name of the CustomTargetingValue
. Values can contain up to 40
characters each. You can use alphanumeric characters and symbols other than
the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are
not data-specific; all values are treated as strings. For example, instead
of using "age>=18 AND <=34", try "18-34"
string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE];
Returns
Type
Description
String
The adTagName.
getAdTagNameBytes()
public ByteString getAdTagNameBytes ()
Immutable. Name of the CustomTargetingValue
. Values can contain up to 40
characters each. You can use alphanumeric characters and symbols other than
the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ]. Values are
not data-specific; all values are treated as strings. For example, instead
of using "age>=18 AND <=34", try "18-34"
string ad_tag_name = 4 [(.google.api.field_behavior) = IMMUTABLE];
Returns
Type
Description
ByteString
The bytes for adTagName.
getCustomTargetingKey()
public String getCustomTargetingKey ()
Required. Immutable. The resource name of the CustomTargetingKey
.
Format:
networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}
string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
Returns
Type
Description
String
The customTargetingKey.
getCustomTargetingKeyBytes()
public ByteString getCustomTargetingKeyBytes ()
Required. Immutable. The resource name of the CustomTargetingKey
.
Format:
networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}
string custom_targeting_key = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
Returns
Type
Description
ByteString
The bytes for customTargetingKey.
getDefaultInstanceForType()
public CustomTargetingValue getDefaultInstanceForType ()
getDisplayName()
public String getDisplayName ()
Optional. Descriptive name for the CustomTargetingValue
.
string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
String
The displayName.
getDisplayNameBytes()
public ByteString getDisplayNameBytes ()
Optional. Descriptive name for the CustomTargetingValue
.
string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
ByteString
The bytes for displayName.
getMatchType()
public CustomTargetingValueMatchTypeEnum . CustomTargetingValueMatchType getMatchType ()
Required. Immutable. The way in which the CustomTargetingValue.name strings
will be matched.
.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
getMatchTypeValue()
public int getMatchTypeValue ()
Required. Immutable. The way in which the CustomTargetingValue.name strings
will be matched.
.google.ads.admanager.v1.CustomTargetingValueMatchTypeEnum.CustomTargetingValueMatchType match_type = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
int
The enum numeric value on the wire for matchType.
getName()
Identifier. The resource name of the CustomTargetingValue
.
Format:
networks/{network_code}/customTargetingValues/{custom_targeting_value_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns
Type
Description
String
The name.
getNameBytes()
public ByteString getNameBytes ()
Identifier. The resource name of the CustomTargetingValue
.
Format:
networks/{network_code}/customTargetingValues/{custom_targeting_value_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns
Type
Description
ByteString
The bytes for name.
getParserForType()
public Parser<CustomTargetingValue> getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getStatus()
public CustomTargetingValueStatusEnum . CustomTargetingValueStatus getStatus ()
Output only. Status of the CustomTargetingValue
.
.google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStatusValue()
public int getStatusValue ()
Output only. Status of the CustomTargetingValue
.
.google.ads.admanager.v1.CustomTargetingValueStatusEnum.CustomTargetingValueStatus status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
int
The enum numeric value on the wire for status.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public CustomTargetingValue . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CustomTargetingValue . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public CustomTargetingValue . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-15 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eCustomTargetingValue\u003c/code\u003e class, part of the Google Ad Manager API's Java client library, with version 0.19.0 being the latest.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCustomTargetingValue\u003c/code\u003e class extends \u003ccode\u003eGeneratedMessageV3\u003c/code\u003e and implements \u003ccode\u003eCustomTargetingValueOrBuilder\u003c/code\u003e, representing a resource for custom targeting within ad management systems.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes details on static fields like \u003ccode\u003eAD_TAG_NAME_FIELD_NUMBER\u003c/code\u003e and \u003ccode\u003eSTATUS_FIELD_NUMBER\u003c/code\u003e, along with various methods for parsing and interacting with \u003ccode\u003eCustomTargetingValue\u003c/code\u003e objects, such as \u003ccode\u003eparseFrom\u003c/code\u003e and \u003ccode\u003enewBuilder\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCustomTargetingValue\u003c/code\u003e contains information on \u003ccode\u003ead_tag_name\u003c/code\u003e, \u003ccode\u003edisplay_name\u003c/code\u003e, \u003ccode\u003ematch_type\u003c/code\u003e, \u003ccode\u003ename\u003c/code\u003e, and \u003ccode\u003estatus\u003c/code\u003e, with constraints and types listed in their respective descriptions.\u003c/p\u003e\n"],["\u003cp\u003eThe document provides access to 18 different versions of the CustomTargetingValue class, beginning from version 0.1.0 and incrementing all the way to the latest version of 0.19.0.\u003c/p\u003e\n"]]],[],null,[]]