abstract type ApiError (v202508)

  • ApiError is the base class for errors that occur during service requests, providing details to help identify the cause.

  • It includes fields such as fieldPath, fieldPathElements, trigger, and errorString to pinpoint the problematic data element and describe the error.

  • Numerous specific error types inherit from ApiError, covering issues like authentication, collection size, limits, permissions, and parsing.

The API error base class that provides details about an error that occurred while processing a service request.

The OGNL field path is provided for parsers to identify the request data element that may have caused the error.


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

Field

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.