0.16.0 (latest) 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 ContentTargeting.

Content Targeting
Targeted/excluded content entities and bundles.

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

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ targeted_content` | `string[]` Optional. The resource names of the [Content](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Content) that should be targeted/included. |
| `↳ excluded_content` | `string[]` Optional. The resource names of the [Content](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Content) that should be excluded. |
| `↳ targeted_content_bundles` | `string[]` Optional. The resource names of the [ContentBundles](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ContentBundle) that should be targeted/included. |
| `↳ excluded_content_bundles` | `string[]` Optional. The resource names of the [ContentBundles](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ContentBundle) that should be excluded. |

### getTargetedContent

Optional. The resource names of the
[Content](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Content) that should be
targeted/included.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setTargetedContent

Optional. The resource names of the
[Content](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Content) that should be
targeted/included.

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

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

### getExcludedContent

Optional. The resource names of the
[Content](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Content) that should be
excluded.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setExcludedContent

Optional. The resource names of the
[Content](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Content) that should be
excluded.

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

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

### getTargetedContentBundles

Optional. The resource names of the
[ContentBundles](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ContentBundle) that
should be targeted/included.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setTargetedContentBundles

Optional. The resource names of the
[ContentBundles](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ContentBundle) that
should be targeted/included.

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

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

### getExcludedContentBundles

Optional. The resource names of the
[ContentBundles](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ContentBundle) that
should be excluded.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setExcludedContentBundles

Optional. The resource names of the
[ContentBundles](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.ContentBundle) that
should be excluded.

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

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