type DayPart (v202408)
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/v202408
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 allows targeting specific time periods within a day of the week for a LineItem.\u003c/p\u003e\n"],["\u003cp\u003eIt requires specifying the \u003ccode\u003edayOfWeek\u003c/code\u003e, \u003ccode\u003estartTime\u003c/code\u003e, and \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, defining the targeted time range.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDayOfWeek\u003c/code\u003e enumeration provides options for all seven days of the week.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTimeOfDay\u003c/code\u003e objects represent the start and end times of the targeted period.\u003c/p\u003e\n"]]],["The core content describes the `DayPart` entity, used for time-based targeting within a week for a `LineItem`. It specifies a time period using `dayOfWeek`, `startTime`, and `endTime`. `dayOfWeek` uses an enumeration for each day (Monday-Sunday) and is required. `startTime` and `endTime` define the period's start and end times respectively. The namespace is provided, and this content is within the context of ad service functionalities. The services that are associated to this information are : AdRuleService, AdjustmentService, ForecastService, LineItemService, NativeStyleService, ProposalLineItemService, ProposalService, PublisherQueryLanguageService, TargetingPresetService and YieldGroupService.\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** [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](/ad-manager/api/reference/v202408/YieldGroupService.DayPart) **Dependencies** \n[DayPartTargeting](/ad-manager/api/reference/v202408/ForecastService.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/v202408/ForecastService.LineItem).\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/ForecastService.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/v202408/ForecastService.TimeOfDay)` ` Represents the start time of the targeted period (inclusive). |\n| ### `endTime` | ` `[TimeOfDay](/ad-manager/api/reference/v202408/ForecastService.TimeOfDay)` ` Represents the end time of the targeted period (exclusive). |"]]