Google Ads Ad Manager V1 Client - Class ContextualTargeting (0.17.0)

Reference documentation and code samples for the Google Ads Ad Manager V1 Client class ContextualTargeting.

Contextual Targeting

Generated from protobuf message google.ads.admanager.v1.ContextualTargeting

Namespace

Google \ Ads \ AdManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ targeted_verticals string[]

Optional. A list of verticals that should be targeted/included. Verticals are AdCategory resources of type VERTICAL. Format: networks/{network_code}/adCategories/{ad_category_id}

↳ excluded_verticals string[]

Optional. A list of verticals that should be excluded. Verticals are AdCategory resources of type VERTICAL. Format: networks/{network_code}/adCategories/{ad_category_id}

↳ excluded_content_labels string[]

Optional. A list of content labels that should be excluded.

getTargetedVerticals

Optional. A list of verticals that should be targeted/included. Verticals are AdCategory resources of type VERTICAL. Format: networks/{network_code}/adCategories/{ad_category_id}

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setTargetedVerticals

Optional. A list of verticals that should be targeted/included. Verticals are AdCategory resources of type VERTICAL. Format: networks/{network_code}/adCategories/{ad_category_id}

Parameter
Name Description
var string[]
Returns
Type Description
$this

getExcludedVerticals

Optional. A list of verticals that should be excluded. Verticals are AdCategory resources of type VERTICAL. Format: networks/{network_code}/adCategories/{ad_category_id}

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setExcludedVerticals

Optional. A list of verticals that should be excluded. Verticals are AdCategory resources of type VERTICAL. Format: networks/{network_code}/adCategories/{ad_category_id}

Parameter
Name Description
var string[]
Returns
Type Description
$this

getExcludedContentLabels

Optional. A list of content labels that should be excluded.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setExcludedContentLabels

Optional. A list of content labels that should be excluded.

Parameter
Name Description
var string[]
Returns
Type Description
$this