Page Summary
-
Targeting settings define when and where ads are played.
-
AdUnitTargeting specifies the targeted inventory or ad units.
-
DayPartTargeting defines targeting for specific week days and times.
-
DayPart specifies if an ad can be shown during certain parts of the day and on certain days of the week.
Targeting settings that specify when and where ads are played.
| JSON representation |
|---|
{ "adUnitTargeting": { object ( |
| Fields | |
|---|---|
adUnitTargeting |
Specifies what inventory is targeted. If omitted, all ad units supported by the products referenced from the line are targeted. |
dayPartTargeting |
Specifies the targeted week days and times. |
AdUnitTargeting
Which ad units are targeted.
| JSON representation |
|---|
{ "adUnits": [ string ] } |
| Fields | |
|---|---|
adUnits[] |
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 ( |
| Fields | |
|---|---|
dayParts[] |
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 ( |
| Fields | |
|---|---|
startTime |
Specifies the targeted start time of day (inclusive). If either start or end time are omitted, any time of day is targeted. |
endTime |
Specifies the targeted end time of day (exclusive). If either start or end time are omitted, any time of day is targeted. |
targetedDays |
Specifies the targeted day of the week. If omitted, all days of the week is targeted. |