# Targeting

- [JSON representation](https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/Targeting#SCHEMA_REPRESENTATION)
- [AdUnitTargeting](https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/Targeting#AdUnitTargeting)
  - [JSON representation](https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/Targeting#AdUnitTargeting.SCHEMA_REPRESENTATION)
- [DayPartTargeting](https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/Targeting#DayPartTargeting)
  - [JSON representation](https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/Targeting#DayPartTargeting.SCHEMA_REPRESENTATION)
- [WeekPartTargeting](https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/Targeting#WeekPartTargeting)
  - [JSON representation](https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/Targeting#WeekPartTargeting.SCHEMA_REPRESENTATION)

Targeting settings that specify when and where ads are played.

| JSON representation |
|---|
| ``` { "adUnitTargeting": { object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/Targeting#AdUnitTargeting`) }, "dayPartTargeting": { object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/Targeting#DayPartTargeting`) }, "weekPartTargeting": { object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/Targeting#WeekPartTargeting`) } } ``` |

| Fields ||
|---|---|
| `adUnitTargeting` | ``object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/Targeting#AdUnitTargeting`)`` Optional. Specifies what inventory is targeted. If omitted, all ad units supported by the products referenced from the line are targeted. |
| `dayPartTargeting` | ``object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/Targeting#DayPartTargeting`)`` Optional. Specifies the targeted time of day. If omitted, any time of day is targeted. |
| `weekPartTargeting` | ``object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/Targeting#WeekPartTargeting`)`` Optional. Specifies the days of the week that are targeted. If omitted, any day of the week is targeted. |

## AdUnitTargeting

Which ad units are targeted.

| JSON representation |
|---|
| ``` { "adUnits": [ string ] } ``` |

| Fields ||
|---|---|
| `adUnits[]` | `string` Required. The names of the targeted ad units. Format = adUnits/456 |

## DayPartTargeting

Which times of the day are targeted.

| JSON representation |
|---|
| ``` { "startTimeOfDay": { object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/Shared.Types/TimeOfDay`) }, "endTimeOfDay": { object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/Shared.Types/TimeOfDay`) } } ``` |

| Fields ||
|---|---|
| `startTimeOfDay` | ``object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/Shared.Types/TimeOfDay`)`` Required. Represents the start time of the targeted time period (inclusive). |
| `endTimeOfDay` | ``object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/Shared.Types/TimeOfDay`)`` Required. Represents the end time of the targeted time period (exclusive). |

## WeekPartTargeting

Which days and times of the day are targeted.

| JSON representation |
|---|
| ``` { "dayOfWeek": [ enum (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/Shared.Types/DayOfWeek`) ] } ``` |

| Fields ||
|---|---|
| `dayOfWeek[]` | ``enum (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/Shared.Types/DayOfWeek`)`` Required. The targeted days of the week. |