type ParseError (v202411)

  • The ParseError object, within the Google Ad Manager API, is used to represent errors encountered during the parsing of API responses.

  • It provides information such as the error reason and a detailed field path to pinpoint the origin of the parsing problem.

  • ParseError inherits properties from the ApiError object, allowing it to provide a standardized error reporting structure.

  • This standardized error reporting makes it easier for developers to identify and troubleshoot issues within their interactions with the Google Ad Manager API.

  • Errors can arise from unparsable attributes or unexpected responses, and the provided details guide developers towards efficient solutions.

Lists errors related to parsing.


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

Field

ApiError (inherited)

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.

ParseError

reason

ParseError.Reason

The error reason represented by an enum.


Enumerations
UNPARSABLE
Indicates an error in parsing an attribute.
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.