enum AdRuleDateError.Reason (v202508)

  • AdRuleDateError.Reason describes why AdRuleDateErrors occur within the AdRuleService.

  • Common reasons for AdRuleDateErrors include start or end dates being in the past, the end date not being after the start date, and dates after 2037 being unsupported.

  • The UNKNOWN reason is returned when the actual error value is not exposed by the API version.

Describes reasons for AdRuleDateErrors.


Namespace
https://www.google.com/apis/ads/publisher/v202508
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 DateTimes after 1 January 2037 are not supported.
UNKNOWN The value returned if the actual value is not exposed by the requested API version.