Reference documentation and code samples for the Google Ads Ad Manager V1 Client class CustomTargetingLiteral.
Represents targeting for custom key/values. The values are ORed together.
Generated from protobuf message google.ads.admanager.v1.CustomTargetingLiteral
Namespace
Google \ Ads \ AdManager \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ negative |
bool
Whether this expression is negatively targeted, meaning it matches ad requests that exclude the below values. |
↳ custom_targeting_key |
string
Optional. The resource name of the targeted CustomKey. |
↳ custom_targeting_values |
array
Optional. The resource names of the targeted CustomValues. |
getNegative
Whether this expression is negatively targeted, meaning it matches ad requests that exclude the below values.
Returns | |
---|---|
Type | Description |
bool |
hasNegative
clearNegative
setNegative
Whether this expression is negatively targeted, meaning it matches ad requests that exclude the below values.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getCustomTargetingKey
Optional. The resource name of the targeted CustomKey.
Returns | |
---|---|
Type | Description |
string |
hasCustomTargetingKey
clearCustomTargetingKey
setCustomTargetingKey
Optional. The resource name of the targeted CustomKey.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getCustomTargetingValues
Optional. The resource names of the targeted CustomValues.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setCustomTargetingValues
Optional. The resource names of the targeted CustomValues.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |