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 ContextualTargeting.

Contextual Targeting

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

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ targeted_verticals` | `string[]` Optional. A list of verticals that should be targeted/included. Verticals are `AdCategory` resources of type `VERTICAL`. Format: `networks/{network_code}/adCategories/{ad_category_id}` |
| `↳ excluded_verticals` | `string[]` Optional. A list of verticals that should be excluded. Verticals are `AdCategory` resources of type `VERTICAL`. Format: `networks/{network_code}/adCategories/{ad_category_id}` |
| `↳ excluded_content_labels` | `string[]` Optional. A list of content labels that should be excluded. |

### getTargetedVerticals

Optional. A list of verticals that should be targeted/included. Verticals
are `AdCategory` resources of type `VERTICAL`. Format:
`networks/{network_code}/adCategories/{ad_category_id}`

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

### setTargetedVerticals

Optional. A list of verticals that should be targeted/included. Verticals
are `AdCategory` resources of type `VERTICAL`. Format:
`networks/{network_code}/adCategories/{ad_category_id}`

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

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

### getExcludedVerticals

Optional. A list of verticals that should be excluded. Verticals are
`AdCategory` resources of type `VERTICAL`. Format:
`networks/{network_code}/adCategories/{ad_category_id}`

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

### setExcludedVerticals

Optional. A list of verticals that should be excluded. Verticals are
`AdCategory` resources of type `VERTICAL`. Format:
`networks/{network_code}/adCategories/{ad_category_id}`

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

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

### getExcludedContentLabels

Optional. A list of content labels that should be excluded.

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

### setExcludedContentLabels

Optional. A list of content labels that should be excluded.

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

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