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.
|
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 2025-09-02 UTC.
[null,null,["Last updated 2025-09-02 UTC."],[],[],null,["- [JSON representation](#SCHEMA_REPRESENTATION)\n\nDay Part Targeting.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"userLocalTime\": boolean, \"daysOfWeek\": [ enum (/doubleclick-advertisers/rest/Shared.Types/DayOfWeek) ], \"hoursOfDay\": [ integer ] } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `userLocalTime` | `boolean` Whether or not to use the user's local time. If false, the America/New York time zone applies. |\n| `daysOfWeek[]` | `enum (`[DayOfWeek](/doubleclick-advertisers/rest/Shared.Types/DayOfWeek)`)` Days of the week when the ad will serve. Acceptable values are: - \"\u003cbr /\u003e `SUNDAY` \" - \"\u003cbr /\u003e `MONDAY` \" - \"\u003cbr /\u003e `TUESDAY` \" - \"\u003cbr /\u003e `WEDNESDAY` \" - \"\u003cbr /\u003e `THURSDAY` \" - \"\u003cbr /\u003e `FRIDAY` \" - \"\u003cbr /\u003e `SATURDAY` \" \u003cbr /\u003e |\n| `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. |"]]