Reference documentation and code samples for the Google Ads Ad Manager V1 Client class AudienceSegmentTargeting.
Represents targeting for audience segments. The values are combined in a
logical OR
.
Generated from protobuf message google.ads.admanager.v1.AudienceSegmentTargeting
Namespace
Google \ Ads \ AdManager \ V1Methods
__construct
Constructor.
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.
↳ audience_segments
array
Optional. The targeted audience segments. This is either the resource name of a first-party audience segment or an alias to the effective third-party audience segment. Third-party audience segment resource names containing ~direct
or ~global
will be normalized by the server. For example, networks/1234/audienceSegments/4567~direct
will be normalized to networks/1234/audienceSegments/4567
.
getNegative
Whether this expression is negatively targeted, meaning it matches ad requests that exclude the below values.
bool
hasNegative
clearNegative
setNegative
Whether this expression is negatively targeted, meaning it matches ad requests that exclude the below values.
var
bool
$this
getAudienceSegments
Optional. The targeted audience segments.
This is either the resource name of a first-party audience segment or an
alias to the effective third-party audience segment. Third-party audience
segment resource names containing ~direct
or ~global
will be normalized
by the server. For example, networks/1234/audienceSegments/4567~direct
will be normalized to networks/1234/audienceSegments/4567
.
setAudienceSegments
Optional. The targeted audience segments.
This is either the resource name of a first-party audience segment or an
alias to the effective third-party audience segment. Third-party audience
segment resource names containing ~direct
or ~global
will be normalized
by the server. For example, networks/1234/audienceSegments/4567~direct
will be normalized to networks/1234/audienceSegments/4567
.
var
string[]
$this

