enum AdRuleDateError.Reason (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Describes reasons for AdRuleDateError
s.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Enumeration |
Description |
START_DATE_TIME_IS_IN_PAST
|
Cannot create a new ad rule with a start date in the past.
|
END_DATE_TIME_IS_IN_PAST
|
Cannot update an existing ad rule that has already completely passed with
a new end date that is still in the past.
|
END_DATE_TIME_NOT_AFTER_START_TIME
|
End date must be after the start date.
|
END_DATE_TIME_TOO_LATE
|
DateTime s after 1 January 2037 are not supported.
|
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."],[[["\u003cp\u003e\u003ccode\u003eAdRuleDateError\u003c/code\u003e outlines potential issues with start and end dates when managing ad rules within Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eSpecific reasons for errors include start dates in the past, end dates preceding start dates, and dates exceeding the supported range.\u003c/p\u003e\n"],["\u003cp\u003eThis information helps to ensure ad rules are set up correctly with valid date and time parameters, avoiding potential conflicts or delivery issues.\u003c/p\u003e\n"]]],["The content defines the `AdRuleDateError` within the `AdRuleService`, detailing the reasons for these errors. Key actions involve creating or updating ad rules. Errors occur when the start date is in the past, the end date is in the past (for updates), the end date is not after the start date, or the `DateTime` is after January 1, 2037. An `UNKNOWN` value is returned if the error is not exposed by the current API version.\n"],null,["# enum AdRuleDateError.Reason (v202411)\n\n**Service** \n**AdRuleService** **Dependencies** \n[AdRuleDateError](/ad-manager/api/reference/v202411/AdRuleService.AdRuleDateError) \n▼\n**AdRuleDateError.Reason**\n\nDescribes reasons for `AdRuleDateError`s.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Enumeration | Description |\n|--------------------------------------|---------------------------------------------------------------------------------------------------------------------|\n| `START_DATE_TIME_IS_IN_PAST` | Cannot create a new ad rule with a start date in the past. |\n| `END_DATE_TIME_IS_IN_PAST` | Cannot update an existing ad rule that has already completely passed with a new end date that is still in the past. |\n| `END_DATE_TIME_NOT_AFTER_START_TIME` | End date must be after the start date. |\n| `END_DATE_TIME_TOO_LATE` | `DateTime`s after 1 January 2037 are not supported. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]