enum UrlError.Reason (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Reasons for inventory url errors.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Enumeration |
Description |
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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[[["\u003cp\u003e\u003ccode\u003eUrlError.Reason\u003c/code\u003e identifies the cause of inventory URL errors within Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003ePotential reasons include reserved or Google-owned URLs, invalid URL formats, or an unknown error state.\u003c/p\u003e\n"],["\u003cp\u003eEach error reason is represented by a specific enumeration value within the \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use these reasons to diagnose and resolve inventory URL issues encountered through the NetworkService.\u003c/p\u003e\n"]]],["The core content details the `UrlError.Reason` enumeration within the `NetworkService`'s `SiteService`. This enumeration outlines the reasons why a URL might be invalid for usage. The defined reasons include `CANNOT_USE_RESERVED_URL` (reserved), `CANNOT_USE_GOOGLE_URL` (belongs to Google), `INVALID_URL` (structurally incorrect), and `UNKNOWN` (value not exposed by API). The namespace for this service is `https://www.google.com/apis/ads/publisher/v202411`.\n"],null,["# enum UrlError.Reason (v202411)\n\n**Service** \n**NetworkService** [SiteService](/ad-manager/api/reference/v202411/SiteService.UrlError.Reason) **Dependencies** \n[UrlError](/ad-manager/api/reference/v202411/NetworkService.UrlError) \n▼\n**UrlError.Reason**\n\nReasons for inventory url errors.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Enumeration | Description |\n|---------------------------|-------------------------------------------------------------------------------------|\n| `CANNOT_USE_RESERVED_URL` | The URL has been reserved, and not available for usage. |\n| `CANNOT_USE_GOOGLE_URL` | The URL belongs to Google, and not available for usage. |\n| `INVALID_URL` | The URL is invalid. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]