Send feedback
DayPartTargeting
Stay organized with collections
Save and categorize content based on your preferences.
JSON representation
{
"userLocalTime" : boolean ,
"daysOfWeek" : [
enum (DayOfWeek
)
] ,
"hoursOfDay" : [
integer
]
}
Fields
userLocalTime
boolean
Whether or not to use the user's local time. If false, the America/New York time zone applies.
daysOfWeek[]
enum (DayOfWeek
)
Days of the week when the ad will serve. Acceptable values are:
"
SUNDAY
"
"
MONDAY
"
"
TUESDAY
"
"
WEDNESDAY
"
"
THURSDAY
"
"
FRIDAY
"
"
SATURDAY
"
hoursOfDay[]
integer
Hours of the day when the ad will serve, where
0
is midnight to 1 AM and
23
is 11 PM to midnight. Can be specified with days of week, in which case the ad would serve during these hours on the specified days. For example if Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours
9
,
15
, and
16
) is specified, the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are
0
to
23
, inclusive.
DayOfWeek
Generic enumeration for days in a week.
Enums
SUNDAY
MONDAY
TUESDAY
WEDNESDAY
THURSDAY
FRIDAY
SATURDAY
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-19 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-19 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-19 UTC."]]