Reference documentation and code samples for the Google Ads Ad Manager V1 Client class DeviceCategoryTargeting.
Represents a list of targeted and excluded device categories.
Generated from protobuf message google.ads.admanager.v1.DeviceCategoryTargeting
Namespace
Google \ Ads \ AdManager \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ targeted_categories |
array
Optional. A list of device category resource names that should be targeted/included. |
↳ excluded_categories |
array
Optional. A list of device category resource names that should be excluded. |
getTargetedCategories
Optional. A list of device category resource names that should be targeted/included.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setTargetedCategories
Optional. A list of device category resource names that should be targeted/included.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |
getExcludedCategories
Optional. A list of device category resource names that should be excluded.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setExcludedCategories
Optional. A list of device category resource names that should be excluded.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |