enum ApiVersionError.Reason (v202411)

  • This documentation details the ApiVersionError.Reason enumeration within the Google Ad Manager API.

  • ApiVersionError.Reason indicates why a specific operation might be disallowed due to the API version being used.

  • It includes two potential reasons: UPDATE_TO_NEWER_VERSION and UNKNOWN.

  • The UPDATE_TO_NEWER_VERSION reason signals that the requested operation requires a newer API version.

  • The UNKNOWN reason is a fallback for cases where the specific reason for the error is not exposed by the API.


Namespace
https://www.google.com/apis/ads/publisher/v202411
Enumeration Description
UPDATE_TO_NEWER_VERSION Indicates that the operation is not allowed in the version the request was made in.
UNKNOWN The value returned if the actual value is not exposed by the requested API version.