AI-generated Key Takeaways
-
UrlError represents common errors encountered when working with URLs in the NetworkService.
-
UrlError inherits from ApiError, including fields like fieldPath, fieldPathElements, trigger, and errorString.
-
Specific reasons for a UrlError are enumerated, such as CANNOT_USE_RESERVED_URL, CANNOT_USE_GOOGLE_URL, INVALID_URL, and UNKNOWN.
-
The UrlError class includes a 'reason' field of type UrlError.Reason to specify the cause of the error.
Common errors for URLs.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202508
Field
ApiError
(inherited) fieldPath
xsd:
string
The OGNL field path to identify cause of error.
fieldPathElements
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
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.

