enum AdRuleDateError.Reason (v202411)

  • AdRuleDateError.Reason describes the reasons for AdRuleDateErrors.

  • AdRuleDateError can occur if the start date is in the past or the end date is not after the start date.

  • Updating an existing ad rule with an end date that is still in the past after it has completely passed will cause an AdRuleDateError.

  • Dates after January 1, 2037 are not supported for ad rules.

Describes reasons for AdRuleDateErrors.


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 DateTimes after 1 January 2037 are not supported.
UNKNOWN The value returned if the actual value is not exposed by the requested API version.