type ApiVersionError (v202502)Stay organized with collectionsSave and categorize content based on your preferences.
Page Summary
ApiVersionError is a type of error related to the usage of API versions.
ApiVersionError inherits from the ApiError class.
The ApiVersionError includes a 'reason' field which can indicate if an operation is not allowed in the requested API version or if the actual value is unknown.
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 document outlines various services within an ad management API, including `AdRuleService`, `ContactService`, `ForecastService`, and `ReportService`. It details the structure of `ApiError`, a base class for errors, with fields like `fieldPath`, `trigger`, and `errorString`. `ApiVersionError`, a specific error type, includes a `reason` field with possible values like `UPDATE_TO_NEWER_VERSION` or `UNKNOWN`, indicating API version compatibility issues. The namespace of the API is provided.\n"]]