type DayPartTargeting (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
Modify the delivery times of line items for particular days of the week. By default, line items
are served at all days and times.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
Field
|
dayParts
|
DayPart[]
Specifies days of the week and times at which a LineItem will be delivered.
If targeting all days and times, this value will be ignored.
|
timeZone
|
DeliveryTimeZone
Specifies the time zone to be used for delivering
LineItem
objects. This attribute is optional and defaults to
DeliveryTimeZone.BROWSER.
Setting this has no effect if targeting all days and times.
Enumerations
-
PUBLISHER
- Use the time zone of the publisher.
-
BROWSER
- Use the time zone of the browser.
|
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-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eDayPartTargeting allows you to control the delivery times of line items based on specific days and times of the week.\u003c/p\u003e\n"],["\u003cp\u003eBy default, line items are served at all times, but DayPartTargeting enables you to modify this default behavior.\u003c/p\u003e\n"],["\u003cp\u003eDayPartTargeting utilizes \u003ccode\u003edayParts\u003c/code\u003e to specify delivery days and times and \u003ccode\u003etimeZone\u003c/code\u003e to indicate the relevant time zone for delivery.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003etimeZone\u003c/code\u003e can be set to either \u003ccode\u003ePUBLISHER\u003c/code\u003e (publisher's time zone) or \u003ccode\u003eBROWSER\u003c/code\u003e (user's browser time zone) with \u003ccode\u003eBROWSER\u003c/code\u003e as the default.\u003c/p\u003e\n"]]],["The content details the `DayPartTargeting` feature, which allows modification of line item delivery times for specific days and times. Key actions include setting `dayParts`, which define the days and times for line item delivery, and choosing a `timeZone`. The `timeZone` dictates the reference time for delivery, with options being the publisher's or the browser's time zone; defaulting to `BROWSER`. It also references multiple services that utilize the `DayPartTargeting`.\n"],null,["# type DayPartTargeting (v202408)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202408/AdRuleService.DayPartTargeting) [AdjustmentService](/ad-manager/api/reference/v202408/AdjustmentService.DayPartTargeting) [ForecastService](/ad-manager/api/reference/v202408/ForecastService.DayPartTargeting) [LineItemService](/ad-manager/api/reference/v202408/LineItemService.DayPartTargeting) [NativeStyleService](/ad-manager/api/reference/v202408/NativeStyleService.DayPartTargeting) [ProposalLineItemService](/ad-manager/api/reference/v202408/ProposalLineItemService.DayPartTargeting) [ProposalService](/ad-manager/api/reference/v202408/ProposalService.DayPartTargeting) **PublisherQueryLanguageService** [TargetingPresetService](/ad-manager/api/reference/v202408/TargetingPresetService.DayPartTargeting) [YieldGroupService](/ad-manager/api/reference/v202408/YieldGroupService.DayPartTargeting) **Dependencies** \n[Targeting](/ad-manager/api/reference/v202408/PublisherQueryLanguageService.Targeting) \n▼\n**DayPartTargeting**\n\nModify the delivery times of line items for particular days of the week. By default, line items\nare served at all days and times.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\n\n| Field ----- ||\n|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `dayParts` | ` `[DayPart](/ad-manager/api/reference/v202408/PublisherQueryLanguageService.DayPart)`[]` Specifies days of the week and times at which a `LineItem` will be delivered. If targeting all days and times, this value will be ignored. \u003cbr /\u003e |\n| ### `timeZone` | ` `[DeliveryTimeZone](/ad-manager/api/reference/v202408/PublisherQueryLanguageService.DeliveryTimeZone)` ` Specifies the time zone to be used for delivering [LineItem](/ad-manager/api/reference/v202408/ForecastService.LineItem) objects. This attribute is optional and defaults to [DeliveryTimeZone.BROWSER](/ad-manager/api/reference/v202408/PublisherQueryLanguageService.DeliveryTimeZone#BROWSER). Setting this has no effect if targeting all days and times. *** ** * ** *** **Enumerations** `PUBLISHER` : Use the time zone of the publisher. `BROWSER` : Use the time zone of the browser. \u003cbr /\u003e |"]]