Reference documentation and code samples for the Google Ads Ad Manager V1 Client class CmsMetadataTargeting.
Represents targeting for CMS metadata. The values are ORed together.
Generated from protobuf message google.ads.admanager.v1.CmsMetadataTargeting
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. |
↳ cms_metadata_values |
array
Optional. The resource names of the targeted CMS metadata values. |
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 |
|
getCmsMetadataValues
Optional. The resource names of the targeted CMS metadata values.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setCmsMetadataValues
Optional. The resource names of the targeted CMS metadata values.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|