Reference documentation and code samples for the Google Ads Ad Manager V1 Client class YieldGroup.
Represents a segment of inventory and a set of yield partners that can monetize that inventory.
Generated from protobuf message google.ads.admanager.v1.YieldGroup
Namespace
Google \ Ads \ AdManager \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Identifier. The resource name of the |
↳ display_name |
string
Required. The display name of the |
↳ status |
int
Output only. Status of the |
↳ targeting |
Targeting
Optional. The targeting of the |
↳ ad_sources |
array<YieldAdSource>
Optional. The ad sources that belong to the |
getName
Identifier. The resource name of the YieldGroup.
Format: networks/{network_code}/yieldGroups/{yield_group_id}
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Identifier. The resource name of the YieldGroup.
Format: networks/{network_code}/yieldGroups/{yield_group_id}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDisplayName
Required. The display name of the YieldGroup. This value has a maximum
length of 255 characters.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasDisplayName
clearDisplayName
setDisplayName
Required. The display name of the YieldGroup. This value has a maximum
length of 255 characters.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getStatus
Output only. Status of the YieldGroup.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasStatus
clearStatus
setStatus
Output only. Status of the YieldGroup.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTargeting
Optional. The targeting of the YieldGroup.
| Returns | |
|---|---|
| Type | Description |
Targeting|null |
|
hasTargeting
clearTargeting
setTargeting
Optional. The targeting of the YieldGroup.
| Parameter | |
|---|---|
| Name | Description |
var |
Targeting
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAdSources
Optional. The ad sources that belong to the YieldGroup.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<YieldAdSource> |
|
setAdSources
Optional. The ad sources that belong to the YieldGroup.
| Parameter | |
|---|---|
| Name | Description |
var |
array<YieldAdSource>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|