type UrlError (v202411)

  • NetworkService.UrlError indicates common errors encountered with URLs in the system.

  • It inherits from ApiError and provides details like field path, trigger, and error string for debugging.

  • UrlError includes a "reason" field specifying the cause, such as reserved URLs, invalid URLs, or Google-owned URLs.

  • This error utilizes a namespace designated as https://www.google.com/apis/ads/publisher/v202411.

Common errors for URLs.


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.

UrlError

reason

UrlError.Reason


Enumerations
CANNOT_USE_RESERVED_URL
The URL has been reserved, and not available for usage.
CANNOT_USE_GOOGLE_URL
The URL belongs to Google, and not available for usage.
INVALID_URL
The URL is invalid.
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.