type DayPartTargeting (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
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 specify the days and times when ads should be eligible to serve, using the \u003ccode\u003edayParts\u003c/code\u003e and \u003ccode\u003etimeZone\u003c/code\u003e fields.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003edayParts\u003c/code\u003e field utilizes the \u003ccode\u003eDayPart\u003c/code\u003e object to define specific time ranges for ad delivery.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003etimeZone\u003c/code\u003e field specifies the time zone for day-part targeting using the \u003ccode\u003eDeliveryTimeZone\u003c/code\u003e enum, which can be set to \u003ccode\u003ePUBLISHER\u003c/code\u003e or \u003ccode\u003eBROWSER\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDayPartTargeting is part of the YieldGroupService within the Google Ad Manager API.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace for DayPartTargeting is \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e.\u003c/p\u003e\n"]]],["The content details `DayPartTargeting` within the `v202411` namespace at `https://www.google.com/apis/ads/publisher/v202411`. It specifies that `DayPartTargeting` relies on multiple services such as AdRuleService, AdjustmentService, and others, including YieldGroupService. Key fields within `DayPartTargeting` are `dayParts`, which uses an array of `DayPart` objects, and `timeZone`, which uses a `DeliveryTimeZone`. It offers targeting dependencies. The available time zones are `PUBLISHER` and `BROWSER`.\n"],null,["# type DayPartTargeting (v202411)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202411/AdRuleService.DayPartTargeting) [AdjustmentService](/ad-manager/api/reference/v202411/AdjustmentService.DayPartTargeting) [ForecastService](/ad-manager/api/reference/v202411/ForecastService.DayPartTargeting) [LineItemService](/ad-manager/api/reference/v202411/LineItemService.DayPartTargeting) [NativeStyleService](/ad-manager/api/reference/v202411/NativeStyleService.DayPartTargeting) [ProposalLineItemService](/ad-manager/api/reference/v202411/ProposalLineItemService.DayPartTargeting) [ProposalService](/ad-manager/api/reference/v202411/ProposalService.DayPartTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202411/PublisherQueryLanguageService.DayPartTargeting) [TargetingPresetService](/ad-manager/api/reference/v202411/TargetingPresetService.DayPartTargeting) **YieldGroupService** **Dependencies** \n[Targeting](/ad-manager/api/reference/v202411/YieldGroupService.Targeting) \n▼\n**DayPartTargeting**\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `dayParts` | ` `[DayPart](/ad-manager/api/reference/v202411/YieldGroupService.DayPart)`[]` \u003cbr /\u003e |\n| ### `timeZone` | ` `[DeliveryTimeZone](/ad-manager/api/reference/v202411/YieldGroupService.DeliveryTimeZone)` ` *** ** * ** *** **Enumerations** `PUBLISHER` : `BROWSER` : \u003cbr /\u003e |"]]