type AdRuleDateError (v202411)

  • The AdRuleDateError object provides information about errors related to ad rule start and end dates in Google Ad Manager.

  • It inherits from the ApiError object, which offers details about the error's cause and location.

  • AdRuleDateError includes a reason field that specifies the type of date error encountered, with possible values like START_DATE_TIME_IS_IN_PAST or END_DATE_TIME_NOT_AFTER_START_TIME.

  • This error is part of the Google Ad Manager API and is located within the https://www.google.com/apis/ads/publisher/v202411 namespace.

  • Developers can utilize the AdRuleDateError information to troubleshoot and resolve date-related issues when working with ad rules in their applications.

Lists all errors associated with ad rule start and end dates.


Namespace
https://www.google.com/apis/ads/publisher/v202411

Field

ApiError (inherited)

fieldPath

xsd:string

The OGNL field path to identify cause of error.

fieldPathElements

FieldPathElement[]

A parsed copy of the field path. For example, the field path "operations[1].operand" corresponds to this list: {FieldPathElement(field = "operations", index = 1), FieldPathElement(field = "operand", index = null)}.

trigger

xsd:string

The data that caused the error.

errorString

xsd:string

A simple string representation of the error and reason.

AdRuleDateError

reason

AdRuleDateError.Reason


Enumerations
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.