AI-generated Key Takeaways
-
Various Ad Manager services, including AdjustmentService, CdnConfigurationService, and CompanyService, utilize the InvalidUrlError.Reason enumeration.
-
The InvalidUrlError.Reason enumeration in the
https://www.google.com/apis/ads/publisher/v202411namespace provides specific reasons for invalid URLs, such as illegal characters, invalid format, insecure scheme, or missing scheme. -
Possible reasons for an InvalidUrlError include the URL containing invalid characters, having an invalid format (like an unsupported scheme or unnecessary port/query), using an insecure scheme, or lacking a scheme entirely.
-
The UNKNOWN enumeration value indicates that the actual reason for the invalid URL is not exposed in the requested API version.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
| Enumeration | Description |
|---|---|
ILLEGAL_CHARACTERS
|
The URL contains invalid characters. |
INVALID_FORMAT
|
The format of the URL is not allowed. This could occur for a number of reasons. For example, if an invalid scheme is specified (like "ftp://") or if a port is specified when not required, or if a query was specified when not required. |
INSECURE_SCHEME
|
URL contains insecure scheme. |
NO_SCHEME
|
The URL does not contain a scheme. |
UNKNOWN
|
The value returned if the actual value is not exposed by the requested API version. |