Reference documentation and code samples for the Google Ads Ad Manager V1 Client class CustomTargetingKey.
The CustomTargetingKey
resource.
Generated from protobuf message google.ads.admanager.v1.CustomTargetingKey
Namespace
Google \ Ads \ AdManager \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The resource name of the CustomTargetingKey
. Format: networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}
↳ custom_targeting_key_id
int|string
Output only. CustomTargetingKey
ID.
↳ ad_tag_name
string
Immutable. Name of the key. Keys can contain up to 10 characters each. You can use alphanumeric characters and symbols other than the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character.
↳ display_name
string
Optional. Descriptive name for the CustomTargetingKey
.
↳ type
int
Required. Indicates whether users will select from predefined values or create new targeting values, while specifying targeting criteria for a line item.
↳ status
int
Output only. Status of the CustomTargetingKey
.
↳ reportable_type
int
Required. Reportable state of the CustomTargetingKey
.
getName
Identifier. The resource name of the CustomTargetingKey
.
Format: networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}
string
setName
Identifier. The resource name of the CustomTargetingKey
.
Format: networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}
var
string
$this
getCustomTargetingKeyId
Output only. CustomTargetingKey
ID.
int|string
setCustomTargetingKeyId
Output only. CustomTargetingKey
ID.
var
int|string
$this
getAdTagName
Immutable. Name of the key. Keys can contain up to 10 characters each. You can use alphanumeric characters and symbols other than the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character.
string
setAdTagName
Immutable. Name of the key. Keys can contain up to 10 characters each. You can use alphanumeric characters and symbols other than the following: ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character.
var
string
$this
getDisplayName
Optional. Descriptive name for the CustomTargetingKey
.
string
setDisplayName
Optional. Descriptive name for the CustomTargetingKey
.
var
string
$this
getType
Required. Indicates whether users will select from predefined values or create new targeting values, while specifying targeting criteria for a line item.
int
setType
Required. Indicates whether users will select from predefined values or create new targeting values, while specifying targeting criteria for a line item.
var
int
$this
getStatus
Output only. Status of the CustomTargetingKey
.
int
setStatus
Output only. Status of the CustomTargetingKey
.
var
int
$this
getReportableType
Required. Reportable state of the CustomTargetingKey
.
int
setReportableType
Required. Reportable state of the CustomTargetingKey
.
var
int
$this