type InventoryClientApiError (v202411)

  • InventoryClientApiError is a type of ApiError used for common exceptions when accessing AdSense InventoryClient.

  • It includes inherited fields from ApiError such as fieldPath, fieldPathElements, trigger, and errorString.

  • InventoryClientApiError has its own specific field called reason, which is an enumeration with various possible values indicating the cause of the error.

ApiError for common exceptions thrown when accessing AdSense InventoryClient.


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.

InventoryClientApiError

reason

InventoryClientApiError.Reason


Enumerations
ACCESS_DENIED
ADSENSE_AUTH_ERROR
ADSENSE_RPC_ERROR
DOMAIN_NO_SCHEME
DOMAIN_INVALID_HOST
DOMAIN_INVALID_TLD
DOMAIN_ONE_STRING_AND_PUBLIC_SUFFIX
DOMAIN_INVALID_INPUT
DOMAIN_NO_PUBLIC_SUFFIX
UNKNOWN_ERROR