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 |
|
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-10-16 UTC.
[null,null,["Last updated 2024-10-16 UTC."],[[["\u003cp\u003eDay part targeting allows you to control when your ads are shown based on the user's local time or America/New York time zone.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify the days of the week and hours of the day for your ads to be served using the \u003ccode\u003edaysOfWeek\u003c/code\u003e and \u003ccode\u003ehoursOfDay\u003c/code\u003e fields.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDayOfWeek\u003c/code\u003e is a generic enumeration representing the days of the week, including \u003ccode\u003eSUNDAY\u003c/code\u003e, \u003ccode\u003eMONDAY\u003c/code\u003e, \u003ccode\u003eTUESDAY\u003c/code\u003e, \u003ccode\u003eWEDNESDAY\u003c/code\u003e, \u003ccode\u003eTHURSDAY\u003c/code\u003e, \u003ccode\u003eFRIDAY\u003c/code\u003e, and \u003ccode\u003eSATURDAY\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAds can be scheduled to run on specific days and within specific timeframes, such as Monday, Wednesday, and Friday from 9-10 AM and 3-5 PM.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003euserLocalTime\u003c/code\u003e field dictates whether the ad serving schedule is based on the user's local time or America/New York time.\u003c/p\u003e\n"]]],[],null,["# DayPartTargeting\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [DayOfWeek](#DayOfWeek)\n\nDay Part Targeting.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"userLocalTime\": boolean, \"daysOfWeek\": [ enum (/doubleclick-advertisers/rest/v4/DayPartTargeting#DayOfWeek) ], \"hoursOfDay\": [ integer ] } ``` |\n\n| Fields ||\n|---------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `user``Local``Time` | `boolean` Whether or not to use the user's local time. If false, the America/New York time zone applies. |\n| `days``Of``Week[]` | `enum (`[DayOfWeek](/doubleclick-advertisers/rest/v4/DayPartTargeting#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| `hours``Of``Day[]` | `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. |\n\nDayOfWeek\n---------\n\nGeneric enumeration for days in a week.\n\n| Enums ||\n|-------------|---|\n| `SUNDAY` | |\n| `MONDAY` | |\n| `TUESDAY` | |\n| `WEDNESDAY` | |\n| `THURSDAY` | |\n| `FRIDAY` | |\n| `SATURDAY` | |"]]