Reference documentation and code samples for the Google Ads Ad Manager V1 Client class CustomTargetingValue.
TheCustomTargetingValueresource.
Generated from protobuf messagegoogle.ads.admanager.v1.CustomTargetingValue
Namespace
Google \ Ads \ AdManager \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The resource name of theCustomTargetingValue. Format:networks/{network_code}/customTargetingValues/{custom_targeting_value_id}
↳ custom_targeting_key
string
Required. Immutable. The resource name of theCustomTargetingKey. Format:networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}
↳ ad_tag_name
string
Immutable. Name of theCustomTargetingValue. 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"
↳ display_name
string
Optional. Descriptive name for theCustomTargetingValue.
↳ match_type
int
Required. Immutable. The way in which the CustomTargetingValue.name strings will be matched.
↳ status
int
Output only. Status of theCustomTargetingValue.
getName
Identifier. The resource name of theCustomTargetingValue.
Immutable. Name of theCustomTargetingValue. 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"
Returns
Type
Description
string
setAdTagName
Immutable. Name of theCustomTargetingValue. 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"
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDisplayName
Optional. Descriptive name for theCustomTargetingValue.
Returns
Type
Description
string
setDisplayName
Optional. Descriptive name for theCustomTargetingValue.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getMatchType
Required. Immutable. The way in which the CustomTargetingValue.name strings
will be matched.
Returns
Type
Description
int
setMatchType
Required. Immutable. The way in which the CustomTargetingValue.name strings
will be matched.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Ads Ad Manager V1 Client - Class CustomTargetingValue (0.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.3.1 (latest)](/php/docs/reference/ad-manager/latest/V1.CustomTargetingValue)\n- [0.3.0](/php/docs/reference/ad-manager/0.3.0/V1.CustomTargetingValue)\n- [0.2.0](/php/docs/reference/ad-manager/0.2.0/V1.CustomTargetingValue)\n- [0.1.3](/php/docs/reference/ad-manager/0.1.3/V1.CustomTargetingValue) \nReference documentation and code samples for the Google Ads Ad Manager V1 Client class CustomTargetingValue.\n\nThe `CustomTargetingValue` resource.\n\nGenerated from protobuf message `google.ads.admanager.v1.CustomTargetingValue`\n\nNamespace\n---------\n\nGoogle \\\\ Ads \\\\ AdManager \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nIdentifier. The resource name of the `CustomTargetingValue`.\n\nFormat:\n`networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`\n\n### setName\n\nIdentifier. The resource name of the `CustomTargetingValue`.\n\nFormat:\n`networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`\n\n### getCustomTargetingKey\n\nRequired. Immutable. The resource name of the `CustomTargetingKey`.\n\nFormat:\n`networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`\n\n### setCustomTargetingKey\n\nRequired. Immutable. The resource name of the `CustomTargetingKey`.\n\nFormat:\n`networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`\n\n### getAdTagName\n\nImmutable. Name of the `CustomTargetingValue`. Values can contain up to 40\ncharacters each. You can use alphanumeric characters and symbols other than\nthe following: \", ', =, !, +, #, \\*, \\~, ;, \\^, (, ), \\\u003c, \\\u003e, \\[, \\]. Values are\nnot data-specific; all values are treated as strings. For example, instead\nof using \"age\\\u003e=18 AND \\\u003c=34\", try \"18-34\"\n\n### setAdTagName\n\nImmutable. Name of the `CustomTargetingValue`. Values can contain up to 40\ncharacters each. You can use alphanumeric characters and symbols other than\nthe following: \", ', =, !, +, #, \\*, \\~, ;, \\^, (, ), \\\u003c, \\\u003e, \\[, \\]. Values are\nnot data-specific; all values are treated as strings. For example, instead\nof using \"age\\\u003e=18 AND \\\u003c=34\", try \"18-34\"\n\n### getDisplayName\n\nOptional. Descriptive name for the `CustomTargetingValue`.\n\n### setDisplayName\n\nOptional. Descriptive name for the `CustomTargetingValue`.\n\n### getMatchType\n\nRequired. Immutable. The way in which the CustomTargetingValue.name strings\nwill be matched.\n\n### setMatchType\n\nRequired. Immutable. The way in which the CustomTargetingValue.name strings\nwill be matched.\n\n### getStatus\n\nOutput only. Status of the `CustomTargetingValue`.\n\n### setStatus\n\nOutput only. Status of the `CustomTargetingValue`."]]