type DayPart (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
DayPart
represents a time-period within a day of the week which is
targeted by a LineItem.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Field
|
dayOfWeek
|
DayOfWeek
Day of the week the target applies to. This field is required.
Enumerations
-
MONDAY
- The day of week named Monday.
-
TUESDAY
- The day of week named Tuesday.
-
WEDNESDAY
- The day of week named Wednesday.
-
THURSDAY
- The day of week named Thursday.
-
FRIDAY
- The day of week named Friday.
-
SATURDAY
- The day of week named Saturday.
-
SUNDAY
- The day of week named Sunday.
|
startTime
|
TimeOfDay
Represents the start time of the targeted period (inclusive).
|
endTime
|
TimeOfDay
Represents the end time of the targeted period (exclusive).
|
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\u003e\u003ccode\u003eDayPart\u003c/code\u003e objects represent time periods within a specific day of the week, used for targeting line items to control ad delivery.\u003c/p\u003e\n"],["\u003cp\u003eThey require defining the day of the week (\u003ccode\u003edayOfWeek\u003c/code\u003e), start time (\u003ccode\u003estartTime\u003c/code\u003e), and end time (\u003ccode\u003eendTime\u003c/code\u003e) for the targeted period.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003estartTime\u003c/code\u003e is inclusive, while the \u003ccode\u003eendTime\u003c/code\u003e is exclusive, determining the precise duration of the \u003ccode\u003eDayPart\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDayPart\u003c/code\u003e is used by various services in Ad Manager for scheduling and forecasting ad delivery.\u003c/p\u003e\n"]]],["The content defines `DayPart`, a time-period within a day of the week targeted by a `LineItem`. It specifies the `dayOfWeek`, which is required and uses the `DayOfWeek` enumeration (Monday-Sunday). It also includes `startTime` and `endTime`, defined by `TimeOfDay`, representing the inclusive start and exclusive end times of the targeted period. `DayPart` is found within several services such as `AdRuleService` and `ProposalLineItemService` and is linked to `DayPartTargeting`.\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** [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](/ad-manager/api/reference/v202411/YieldGroupService.DayPart) **Dependencies** \n[DayPartTargeting](/ad-manager/api/reference/v202411/ProposalLineItemService.DayPartTargeting) \n▼\n**DayPart**\n\n\n`DayPart` represents a time-period within a day of the week which is\ntargeted by a [LineItem](/ad-manager/api/reference/v202411/ForecastService.LineItem).\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/ProposalLineItemService.DayOfWeek)` ` Day of the week the target applies to. This field is required. *** ** * ** *** **Enumerations** `MONDAY` : The day of week named Monday. `TUESDAY` : The day of week named Tuesday. `WEDNESDAY` : The day of week named Wednesday. `THURSDAY` : The day of week named Thursday. `FRIDAY` : The day of week named Friday. `SATURDAY` : The day of week named Saturday. `SUNDAY` : The day of week named Sunday. \u003cbr /\u003e |\n| ### `startTime` | ` `[TimeOfDay](/ad-manager/api/reference/v202411/ProposalLineItemService.TimeOfDay)` ` Represents the start time of the targeted period (inclusive). |\n| ### `endTime` | ` `[TimeOfDay](/ad-manager/api/reference/v202411/ProposalLineItemService.TimeOfDay)` ` Represents the end time of the targeted period (exclusive). |"]]