# TargetingExpansionConfig

> [!WARNING]
> Display \& Video 360 API v2 has sunset.

- [JSON representation](https://developers.google.com/display-video/api/reference/rest/v2/TargetingExpansionConfig#SCHEMA_REPRESENTATION)
- [TargetingExpansionLevel](https://developers.google.com/display-video/api/reference/rest/v2/TargetingExpansionConfig#TargetingExpansionLevel)

Settings that control the [optimized targeting](https://support.google.com/displayvideo/answer/12060859) settings of the line item.

| JSON representation |
|---|
| ``` { "targetingExpansionLevel": enum (`https://developers.google.com/display-video/api/reference/rest/v2/TargetingExpansionConfig#TargetingExpansionLevel`), "excludeFirstPartyAudience": boolean } ``` |

| Fields ||
|---|---|
| `targetingExpansionLevel` | ``enum (`https://developers.google.com/display-video/api/reference/rest/v2/TargetingExpansionConfig#TargetingExpansionLevel`)`` Required. Whether optimized targeting is turned on. This field supports the following values: - `NO_EXPANSION`: optimized targeting is turned off - `LEAST_EXPANSION`: optimized targeting is turned on If this field is set to any other value, it will automatically be set to `LEAST_EXPANSION`. `NO_EXPANSION` will be the default value for the field and will be automatically assigned if you do not set the field. |
| `excludeFirstPartyAudience (deprecated)` | `boolean` > [!WARNING] > This item is deprecated! Whether to exclude first-party audiences from use in targeting expansion. This field was deprecated with the launch of [optimized targeting](https://support.google.com/displayvideo/answer/12060859). This field will be set to `false`. If this field is set to `true` when deprecated, all positive first-party audience targeting assigned to this line item will be replaced with negative targeting of the same first-party audiences to ensure the continued exclusion of those audiences. |

## TargetingExpansionLevel

The Optimized targeting setting.

| Enums ||
|---|---|
| `TARGETING_EXPANSION_LEVEL_UNSPECIFIED` | The optimized targeting setting is not specified or is unknown in this version. |
| `NO_EXPANSION` | Optimized targeting is off. |
| `LEAST_EXPANSION` | Optimized targeting is on. |
| `SOME_EXPANSION` | If used, will automatically be set to `LEAST_EXPANSION`. > [!WARNING] > This item is deprecated! |
| `BALANCED_EXPANSION` | If used, will automatically be set to `LEAST_EXPANSION`. > [!WARNING] > This item is deprecated! |
| `MORE_EXPANSION` | If used, will automatically be set to `LEAST_EXPANSION`. > [!WARNING] > This item is deprecated! |
| `MOST_EXPANSION` | If used, will automatically be set to `LEAST_EXPANSION`. > [!WARNING] > This item is deprecated! |