enum DayPartTargetingError.Reason (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
The reasons for the target error.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
Enumeration |
Description |
INVALID_HOUR
|
Hour of day must be between 0 and 24, inclusive.
|
INVALID_MINUTE
|
Minute of hour must be one of 0, 15,30, 45.
|
END_TIME_NOT_AFTER_START_TIME
|
The DayPart.endTime cannot be after DayPart.startTime.
|
TIME_PERIODS_OVERLAP
|
Cannot create day-parts that overlap.
|
UNKNOWN
|
The value returned if the actual value is not exposed by the requested API version.
|
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."],[],["The document defines `DayPartTargetingError.Reason`, outlining potential errors in targeting. These errors include `INVALID_HOUR` (hour must be 0-24), `INVALID_MINUTE` (minute must be 0, 15, 30, or 45), `END_TIME_NOT_AFTER_START_TIME`, and `TIME_PERIODS_OVERLAP`. A value of `UNKNOWN` is returned if the specific error isn't exposed by the API. These errors apply to services such as Adjustment, Forecast, LineItem, and others.\n"],null,["# enum DayPartTargetingError.Reason (v202502)\n\n**Service** \n[AdjustmentService](/ad-manager/api/reference/v202502/AdjustmentService.DayPartTargetingError.Reason) [ForecastService](/ad-manager/api/reference/v202502/ForecastService.DayPartTargetingError.Reason) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.DayPartTargetingError.Reason) **LineItemTemplateService** [OrderService](/ad-manager/api/reference/v202502/OrderService.DayPartTargetingError.Reason) [ProposalLineItemService](/ad-manager/api/reference/v202502/ProposalLineItemService.DayPartTargetingError.Reason) [TargetingPresetService](/ad-manager/api/reference/v202502/TargetingPresetService.DayPartTargetingError.Reason) [YieldGroupService](/ad-manager/api/reference/v202502/YieldGroupService.DayPartTargetingError.Reason) **Dependencies** \n[DayPartTargetingError](/ad-manager/api/reference/v202502/LineItemTemplateService.DayPartTargetingError) \n▼\n**DayPartTargetingError.Reason**\n\nThe reasons for the target error.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Enumeration | Description |\n|---------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `INVALID_HOUR` | Hour of day must be between 0 and 24, inclusive. |\n| `INVALID_MINUTE` | Minute of hour must be one of 0, 15,30, 45. |\n| `END_TIME_NOT_AFTER_START_TIME` | The [DayPart.endTime](/ad-manager/api/reference/v202502/AdRuleService.DayPart#endTime) cannot be after [DayPart.startTime](/ad-manager/api/reference/v202502/AdRuleService.DayPart#startTime). |\n| `TIME_PERIODS_OVERLAP` | Cannot create day-parts that overlap. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]