Targeting

Targeting settings that specify when and where ads are played.

JSON representation
{
  "adUnitTargeting": {
    object (AdUnitTargeting)
  },
  "dayPartTargeting": {
    object (DayPartTargeting)
  },
  "weekPartTargeting": {
    object (WeekPartTargeting)
  }
}
Fields
adUnitTargeting

object (AdUnitTargeting)

Optional. Specifies what inventory is targeted. If omitted, all ad units supported by the products referenced from the line are targeted.

dayPartTargeting

object (DayPartTargeting)

Optional. Specifies the targeted time of day. If omitted, any time of day is targeted.

weekPartTargeting

object (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 (TimeOfDay)
  },
  "endTimeOfDay": {
    object (TimeOfDay)
  }
}
Fields
startTimeOfDay

object (TimeOfDay)

Required. Represents the start time of the targeted time period (inclusive).

endTimeOfDay

object (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 (DayOfWeek)
  ]
}
Fields
dayOfWeek[]

enum (DayOfWeek)

Required. The targeted days of the week.