enum ApiVersionError.Reason (v202411)

  • This documentation details the ApiVersionError.Reason enumeration for the TargetingPresetService in Google Ad Manager API.

  • ApiVersionError.Reason helps identify issues related to the API version used in requests, like incompatibility.

  • It defines two reasons: UPDATE_TO_NEWER_VERSION and UNKNOWN to signal specific version problems.

  • The UPDATE_TO_NEWER_VERSION reason indicates that the request is incompatible with the API version being used.

  • The UNKNOWN reason is a generic indicator for when the API version doesn't expose the actual error reason.


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.