0.17.0 (latest) 0.16.0 0.15.1 0.14.1 0.8.0 0.7.0 0.6.2 0.5.0 0.4.1 0.3.1 0.2.0 0.1.3 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 \\ V1

## Methods

### __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: `networks/{network_code}/adUnits/{ad_unit_id}` |
| `↳ 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` |   |

### hasParentAdUnit

### clearParentAdUnit

### 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` |   |

### hasDisplayName

### clearDisplayName

### 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` |   |

### hasAdUnitCode

### clearAdUnitCode

### 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` |   |