AI-generated Key Takeaways
-
ExchangeRateError lists all errors associated with ExchangeRate objects.
-
ExchangeRateError inherits from ApiError and includes fields like fieldPath, fieldPathElements, trigger, and errorString.
-
ExchangeRateError has a specific field called reason, which is an enum representing various error reasons related to exchange rates.
-
Enumerations for ExchangeRateError reason include invalid or unsupported currency codes, existing currency codes, invalid exchange rate values, and exchange rates not being found.
-
An "UNKNOWN" enumeration is present for cases where the actual value is not exposed by the requested API version.
Lists all errors associated with ExchangeRate
objects.
- 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
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.
ExchangeRateError
reason
The error reason represented by an enum.
Enumerations
-
INVALID_CURRENCY_CODE - The currency code is invalid and does not follow ISO 4217.
-
UNSUPPORTED_CURRENCY_CODE - The currency code is not supported.
-
CURRENCY_CODE_ALREADY_EXISTS - The currency code already exists. When creating an exchange rate, its currency should not be associated with any existing exchange rate. When creating a list of exchange rates, there should not be two exchange rates associated with same currency.
-
INVALID_EXCHANGE_RATE - The exchange rate value is invalid. When the
ExchangeRate.refreshRateisExchangeRateRefreshRate.FIXED, theExchangeRate.exchangeRateshould be larger than 0. Otherwise it is invalid. -
EXCHANGE_RATE_NOT_FOUND - The exchange rate value is not found. When the
ExchangeRate.refreshRateisExchangeRateRefreshRate.DAILYorExchangeRateRefreshRate.MONTHLY, theExchangeRate.exchangeRateshould be assigned by Google. It is not found if Google cannot find such an exchange rate. -
UNKNOWN - The value returned if the actual value is not exposed by the requested API version.

