type CurrencyCodeError (v202502)

  • CurrencyCodeError is an error related to currency codes that can occur in several Ad Manager services, including ForecastService, LineItemService, LineItemTemplateService, OrderService, ProposalLineItemService, ProposalService, and ReportService.

  • CurrencyCodeError inherits from ApiError and has a specific reason field indicating why the currency code is problematic.

  • Possible reasons for a CurrencyCodeError include an invalid currency code that doesn't follow ISO 4217, a valid but unsupported currency code, or the use of a deprecated currency.

  • The error provides fields such as fieldPath, fieldPathElements, trigger, and errorString to help identify the cause and location of the error within the API call.

Errors related to currency codes.


Namespace
https://www.google.com/apis/ads/publisher/v202502

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.

CurrencyCodeError

reason

CurrencyCodeError.Reason


Enumerations
INVALID
The currency code is invalid and does not follow ISO 4217.
UNSUPPORTED
The currency code is valid, but is not supported.
DEPRECATED_CURRENCY_USED
The currency has been used for entity creation after its deprecation