Reference documentation and code samples for the Google Ads Ad Manager V1 Client class AdUnitParent.
The summary of a parent AdUnit.
Generated from protobuf message google.ads.admanager.v1.AdUnitParent
Namespace
Google \ Ads \ AdManager \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent_ad_unit |
string
Output only. The parent of the current AdUnit Format: |
↳ display_name |
string
Output only. The display name of the parent AdUnit. |
↳ ad_unit_code |
string
Output only. A string used to uniquely identify the ad unit for the purposes of serving the ad. |
getParentAdUnit
Output only. The parent of the current AdUnit
Format: networks/{network_code}/adUnits/{ad_unit_id}
Returns | |
---|---|
Type | Description |
string |
setParentAdUnit
Output only. The parent of the current AdUnit
Format: networks/{network_code}/adUnits/{ad_unit_id}
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDisplayName
Output only. The display name of the parent AdUnit.
Returns | |
---|---|
Type | Description |
string |
setDisplayName
Output only. The display name of the parent AdUnit.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getAdUnitCode
Output only. A string used to uniquely identify the ad unit for the purposes of serving the ad.
Returns | |
---|---|
Type | Description |
string |
setAdUnitCode
Output only. A string used to uniquely identify the ad unit for the purposes of serving the ad.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |