AI-generated Key Takeaways
-
UrlError is a common error type for URLs within the NetworkService, inheriting from ApiError.
-
Key fields for UrlError include inherited fields like fieldPath, fieldPathElements, trigger, and errorString, plus its own field, reason.
-
The reason field specifies why a URL error occurred, with possible values like CANNOT_USE_RESERVED_URL, CANNOT_USE_GOOGLE_URL, INVALID_URL, and UNKNOWN.
Common errors for URLs.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202505
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.

