type InvalidUrlError (v202411)

  • The InvalidUrlError object in the Google Ad Manager API highlights issues related to URL structures.

  • It provides specific reasons for URL invalidity, such as illegal characters, format issues, insecure schemes, and missing schemes.

  • This error typically arises when interacting with the ContentService and other services listed, indicating a problem with a provided URL.

  • Developers can use the detailed error information, including reason and inherited fieldPath properties, to diagnose and rectify the URL problems in their Ad Manager integrations.

Lists all errors associated with 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

FieldPathElement[]

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.

InvalidUrlError

reason

InvalidUrlError.Reason


Enumerations
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.