AI-generated Key Takeaways
-
UrlError represents common errors related to URLs.
-
It inherits from ApiError and includes fields like fieldPath, fieldPathElements, trigger, and errorString.
-
UrlError has a specific reason field which can indicate issues such as using reserved or Google URLs, or an invalid URL.
-
Possible reasons for a UrlError are listed in the UrlError.Reason enumeration.
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
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.

