Page Summary
-
Targeting settings define when and where ads are played.
-
AdUnitTargeting specifies the targeted inventory using ad unit names.
-
DayPartTargeting allows targeting specific times of the day with a start and end time.
-
WeekPartTargeting enables targeting specific days of the week.
Targeting settings that specify when and where ads are played.
| JSON representation |
|---|
{ "adUnitTargeting": { object ( |
| Fields | |
|---|---|
adUnitTargeting |
Optional. Specifies what inventory is targeted. If omitted, all ad units supported by the products referenced from the line are targeted. |
dayPartTargeting |
Optional. Specifies the targeted time of day. If omitted, any time of day is targeted. |
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[] |
Required. The names of the targeted ad units. Format = adUnits/456 |
DayPartTargeting
Which times of the day are targeted.
| JSON representation |
|---|
{ "startTimeOfDay": { object ( |
| Fields | |
|---|---|
startTimeOfDay |
Required. Represents the start time of the targeted time period (inclusive). |
endTimeOfDay |
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 ( |
| Fields | |
|---|---|
dayOfWeek[] |
Required. The targeted days of the week. |