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.
| 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. |
↳ 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 |
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 |
|
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.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
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.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|