0.15.1 (latest) 0.15.0 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 AdUnitTargeting.

Specifies an ad unit and (optionally) its descendants.

Generated from protobuf message `google.ads.admanager.v1.AdUnitTargeting`

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ include_descendants` | `bool` Whether this ad unit's children should be targeted/excluded as well. |
| `↳ ad_unit` | `string` Optional. The resource name of this ad unit. |

### getIncludeDescendants

Whether this ad unit's children should be targeted/excluded as well.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasIncludeDescendants

### clearIncludeDescendants

### setIncludeDescendants

Whether this ad unit's children should be targeted/excluded as well.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAdUnit

Optional. The resource name of this ad unit.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasAdUnit

### clearAdUnit

### setAdUnit

Optional. The resource name of this ad unit.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |