type DayPart (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
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\u003eThe \u003ccode\u003eDayPart\u003c/code\u003e object represents a specific time period within a week, defined by the day of the week and a start and end time.\u003c/p\u003e\n"],["\u003cp\u003eIt is used within the context of Google Ad Manager's YieldGroupService to manage and target ad inventory based on time.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDayPart\u003c/code\u003e utilizes enumerations for \u003ccode\u003eDayOfWeek\u003c/code\u003e, offering options from Monday to Sunday, and relies on the \u003ccode\u003eTimeOfDay\u003c/code\u003e object for specifying start and end times.\u003c/p\u003e\n"],["\u003cp\u003eSeveral other Google Ad Manager services, including AdRuleService, AdjustmentService, and others, also leverage \u003ccode\u003eDayPart\u003c/code\u003e for scheduling and targeting purposes.\u003c/p\u003e\n"]]],[],null,["# type DayPart (v202408)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202408/AdRuleService.DayPart) [AdjustmentService](/ad-manager/api/reference/v202408/AdjustmentService.DayPart) [ForecastService](/ad-manager/api/reference/v202408/ForecastService.DayPart) [LineItemService](/ad-manager/api/reference/v202408/LineItemService.DayPart) [NativeStyleService](/ad-manager/api/reference/v202408/NativeStyleService.DayPart) [ProposalLineItemService](/ad-manager/api/reference/v202408/ProposalLineItemService.DayPart) [ProposalService](/ad-manager/api/reference/v202408/ProposalService.DayPart) [PublisherQueryLanguageService](/ad-manager/api/reference/v202408/PublisherQueryLanguageService.DayPart) [TargetingPresetService](/ad-manager/api/reference/v202408/TargetingPresetService.DayPart) **YieldGroupService** **Dependencies** \n[DayPartTargeting](/ad-manager/api/reference/v202408/YieldGroupService.DayPartTargeting) \n▼\n**DayPart**\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\n\n| Field ----- ||\n|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `dayOfWeek` | ` `[DayOfWeek](/ad-manager/api/reference/v202408/YieldGroupService.DayOfWeek)` ` *** ** * ** *** **Enumerations** `MONDAY` : `TUESDAY` : `WEDNESDAY` : `THURSDAY` : `FRIDAY` : `SATURDAY` : `SUNDAY` : \u003cbr /\u003e |\n| ### `startTime` | ` `[TimeOfDay](/ad-manager/api/reference/v202408/YieldGroupService.TimeOfDay)` ` \u003cbr /\u003e |\n| ### `endTime` | ` `[TimeOfDay](/ad-manager/api/reference/v202408/YieldGroupService.TimeOfDay)` ` \u003cbr /\u003e |"]]