type ApiVersionError (v202502)Stay organized with collectionsSave and categorize content based on your preferences.
Page Summary
ApiVersionError is a type of ApiError related to issues with the API version used in a request.
ApiVersionError includes fields for field path, trigger, error string, and a specific reason for the version error.
The primary reason for an ApiVersionError is that the operation is not allowed in the requested API version, or the value is unknown to the requested API version.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-06 UTC."],[],["This content details numerous services within an ad management API, including AdRule, Adjustment, AdsTxt, AudienceSegment, and many more, each with version-specific endpoints (v202502). It outlines error types under \"ApiError\", which includes \"ApiVersionError\", related to incompatible API versions. The \"ApiVersionError\" has a \"reason\" field, with options like `UPDATE_TO_NEWER_VERSION` or `UNKNOWN`, specifying if operations are incompatible with the requested version. The namespace for these API calls is provided as `https://www.google.com/apis/ads/publisher/v202502`.\n"]]