type UrlError (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
Field
|
ApiError (inherited)
|
fieldPath
|
xsd:string
|
fieldPathElements
|
FieldPathElement[]
|
trigger
|
xsd:string
|
errorString
|
xsd:string
|
UrlError
|
reason
|
UrlError.Reason
Enumerations
-
CANNOT_USE_RESERVED_URL
-
CANNOT_USE_GOOGLE_URL
-
INVALID_URL
-
UNKNOWN
|
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\u003eThis documentation details the \u003ccode\u003eUrlError\u003c/code\u003e object within the \u003ccode\u003eSiteService\u003c/code\u003e of the Google Ad Manager API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUrlError\u003c/code\u003e is a subclass of \u003ccode\u003eApiError\u003c/code\u003e and provides specific error information related to site URLs.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ereason\u003c/code\u003e field within \u003ccode\u003eUrlError\u003c/code\u003e indicates the specific cause of the error, such as reserved or invalid URLs.\u003c/p\u003e\n"],["\u003cp\u003ePossible reasons for \u003ccode\u003eUrlError\u003c/code\u003e include using reserved URLs, using Google URLs, having an invalid URL format, or encountering an unknown issue.\u003c/p\u003e\n"],["\u003cp\u003eThis information helps developers understand and resolve URL-related errors when interacting with the Ad Manager API for site management.\u003c/p\u003e\n"]]],["The core content outlines the `SiteService` and its `UrlError` within the `v202408` API. `ApiError` is a base class inherited by various specific error types, including `AdSenseAccountError`, `AuthenticationError`, and `SiteError`. The `ApiError` class contains `fieldPath`, `fieldPathElements`, `trigger`, and `errorString` fields. `UrlError` has a `reason` field which is defined by an enumeration of `CANNOT_USE_RESERVED_URL`, `CANNOT_USE_GOOGLE_URL`, `INVALID_URL`, or `UNKNOWN`.\n"],null,["# type UrlError (v202408)\n\n**Service** \n[NetworkService](/ad-manager/api/reference/v202408/NetworkService.UrlError) **SiteService** **Inheritance** \n[ApiError](/ad-manager/api/reference/v202408/SiteService.ApiError) \n▼\n[AdSenseAccountError](/ad-manager/api/reference/v202408/SiteService.AdSenseAccountError) [ApiVersionError](/ad-manager/api/reference/v202408/SiteService.ApiVersionError) [AuthenticationError](/ad-manager/api/reference/v202408/SiteService.AuthenticationError) [CollectionSizeError](/ad-manager/api/reference/v202408/SiteService.CollectionSizeError) [CommonError](/ad-manager/api/reference/v202408/SiteService.CommonError) [EntityLimitReachedError](/ad-manager/api/reference/v202408/SiteService.EntityLimitReachedError) [FeatureError](/ad-manager/api/reference/v202408/SiteService.FeatureError) [InternalApiError](/ad-manager/api/reference/v202408/SiteService.InternalApiError) [NotNullError](/ad-manager/api/reference/v202408/SiteService.NotNullError) [NullError](/ad-manager/api/reference/v202408/SiteService.NullError) [ParseError](/ad-manager/api/reference/v202408/SiteService.ParseError) [PermissionError](/ad-manager/api/reference/v202408/SiteService.PermissionError) [PublisherQueryLanguageConte...](/ad-manager/api/reference/v202408/SiteService.PublisherQueryLanguageContextError \"PublisherQueryLanguageContextError\") [PublisherQueryLanguageSynta...](/ad-manager/api/reference/v202408/SiteService.PublisherQueryLanguageSyntaxError \"PublisherQueryLanguageSyntaxError\") [QuotaError](/ad-manager/api/reference/v202408/SiteService.QuotaError) [RequiredCollectionError](/ad-manager/api/reference/v202408/SiteService.RequiredCollectionError) [RequiredError](/ad-manager/api/reference/v202408/SiteService.RequiredError) [ServerError](/ad-manager/api/reference/v202408/SiteService.ServerError) [SiteError](/ad-manager/api/reference/v202408/SiteService.SiteError) [StatementError](/ad-manager/api/reference/v202408/SiteService.StatementError) [StringFormatError](/ad-manager/api/reference/v202408/SiteService.StringFormatError) [StringLengthError](/ad-manager/api/reference/v202408/SiteService.StringLengthError) **UrlError**\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\n\n| Field ----- ||\n|-------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **`ApiError` (inherited)** ||\n| ### `fieldPath` | ` `xsd:`string` \u003cbr /\u003e |\n| ### `fieldPathElements` | ` `[FieldPathElement](/ad-manager/api/reference/v202408/SiteService.FieldPathElement)`[]` \u003cbr /\u003e |\n| ### `trigger` | ` `xsd:`string` \u003cbr /\u003e |\n| ### `errorString` | ` `xsd:`string` \u003cbr /\u003e |\n| **`UrlError`** ||\n| ### `reason` | ` `[UrlError.Reason](/ad-manager/api/reference/v202408/SiteService.UrlError.Reason)` ` *** ** * ** *** **Enumerations** `CANNOT_USE_RESERVED_URL` : `CANNOT_USE_GOOGLE_URL` : `INVALID_URL` : `UNKNOWN` : \u003cbr /\u003e |"]]