Targeting

Targeting settings that specify when and where ads are played.

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

object (AdUnitTargeting)

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

dayPartTargeting

object (DayPartTargeting)

Specifies the targeted week days and times.

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

Defines targeting for a period of time on a specific week day.

JSON representation
{
  "dayParts": [
    {
      object (DayPart)
    }
  ]
}
Fields
dayParts[]

object (DayPart)

A List of DayPart.

DayPart

Daypart specifies if the ad can be shown only during certain parts of the day of the week.

JSON representation
{
  "startTime": {
    object (TimeOfDay)
  },
  "endTime": {
    object (TimeOfDay)
  },
  "targetedDays": enum (DayOfWeek)
}
Fields
startTime

object (TimeOfDay)

Specifies the targeted start time of day (inclusive). If either start or end time are omitted, any time of day is targeted.

endTime

object (TimeOfDay)

Specifies the targeted end time of day (exclusive). If either start or end time are omitted, any time of day is targeted.

targetedDays

enum (DayOfWeek)

Specifies the targeted day of the week. If omitted, all days of the week is targeted.