type DayPart (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\u003eDayPart objects specify a time period using a combination of day of the week and start and end times.\u003c/p\u003e\n"],["\u003cp\u003eDayPart objects are used within \u003ccode\u003eDayPartTargeting\u003c/code\u003e to specify when yield groups should be active.\u003c/p\u003e\n"],["\u003cp\u003eValid \u003ccode\u003edayOfWeek\u003c/code\u003e values range from \u003ccode\u003eMONDAY\u003c/code\u003e to \u003ccode\u003eSUNDAY\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003estartTime\u003c/code\u003e and \u003ccode\u003eendTime\u003c/code\u003e fields utilize the \u003ccode\u003eTimeOfDay\u003c/code\u003e object to denote specific times within the selected day.\u003c/p\u003e\n"],["\u003cp\u003eDayPart objects belong to the \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e namespace.\u003c/p\u003e\n"]]],["The core content outlines the `DayPart` dependency within various services, including `AdRuleService`, `AdjustmentService`, `ForecastService`, `LineItemService`, and others. It specifies that `DayPart` belongs to the namespace `https://www.google.com/apis/ads/publisher/v202411` and is used within `DayPartTargeting`. Key fields of `DayPart` are `dayOfWeek` (enumerated from MONDAY to SUNDAY), `startTime`, and `endTime`, both using `TimeOfDay`. The relevant services and the targeting dependencies are listed.\n"],null,["# type DayPart (v202411)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202411/AdRuleService.DayPart) [AdjustmentService](/ad-manager/api/reference/v202411/AdjustmentService.DayPart) [ForecastService](/ad-manager/api/reference/v202411/ForecastService.DayPart) [LineItemService](/ad-manager/api/reference/v202411/LineItemService.DayPart) [NativeStyleService](/ad-manager/api/reference/v202411/NativeStyleService.DayPart) [ProposalLineItemService](/ad-manager/api/reference/v202411/ProposalLineItemService.DayPart) [ProposalService](/ad-manager/api/reference/v202411/ProposalService.DayPart) [PublisherQueryLanguageService](/ad-manager/api/reference/v202411/PublisherQueryLanguageService.DayPart) [TargetingPresetService](/ad-manager/api/reference/v202411/TargetingPresetService.DayPart) **YieldGroupService** **Dependencies** \n[DayPartTargeting](/ad-manager/api/reference/v202411/YieldGroupService.DayPartTargeting) \n▼\n**DayPart**\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `dayOfWeek` | ` `[DayOfWeek](/ad-manager/api/reference/v202411/YieldGroupService.DayOfWeek)` ` *** ** * ** *** **Enumerations** `MONDAY` : `TUESDAY` : `WEDNESDAY` : `THURSDAY` : `FRIDAY` : `SATURDAY` : `SUNDAY` : \u003cbr /\u003e |\n| ### `startTime` | ` `[TimeOfDay](/ad-manager/api/reference/v202411/YieldGroupService.TimeOfDay)` ` \u003cbr /\u003e |\n| ### `endTime` | ` `[TimeOfDay](/ad-manager/api/reference/v202411/YieldGroupService.TimeOfDay)` ` \u003cbr /\u003e |"]]