Class CustomTargetingValue (0.32.0)

public final class CustomTargetingValue extends GeneratedMessageV3 implements CustomTargetingValueOrBuilder

The CustomTargetingValue resource.

Protobuf type google.ads.admanager.v1.CustomTargetingValue

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()
Returns
Type Description
CustomTargetingValue

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CustomTargetingValue.Builder newBuilder()
Returns
Type Description
CustomTargetingValue.Builder

newBuilder(CustomTargetingValue prototype)

public static CustomTargetingValue.Builder newBuilder(CustomTargetingValue prototype)
Parameter
Name Description
prototype CustomTargetingValue
Returns
Type Description
CustomTargetingValue.Builder

parseDelimitedFrom(InputStream input)

public static CustomTargetingValue parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CustomTargetingValue
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomTargetingValue parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomTargetingValue
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CustomTargetingValue parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CustomTargetingValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CustomTargetingValue parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomTargetingValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CustomTargetingValue parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CustomTargetingValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CustomTargetingValue parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomTargetingValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CustomTargetingValue parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CustomTargetingValue
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomTargetingValue parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomTargetingValue
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CustomTargetingValue parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CustomTargetingValue
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomTargetingValue parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomTargetingValue
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CustomTargetingValue parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CustomTargetingValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CustomTargetingValue parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomTargetingValue
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CustomTargetingValue> parser()
Returns
Type Description
Parser<CustomTargetingValue>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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