type ExchangeRateError (v202402)
Lists all errors associated with ExchangeRate
objects.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202402
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.
|
ExchangeRateError
|
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.refreshRate is
ExchangeRateRefreshRate.FIXED , the ExchangeRate.exchangeRate should be larger
than 0. Otherwise it is invalid.
-
EXCHANGE_RATE_NOT_FOUND
- The exchange rate value is not found. When the
ExchangeRate.refreshRate is
ExchangeRateRefreshRate.DAILY or ExchangeRateRefreshRate.MONTHLY , the
ExchangeRate.exchangeRate should 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.
|
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 2024-02-13 UTC.
[null,null,["Last updated 2024-02-13 UTC."],[[["This document lists errors related to `ExchangeRate` objects, which occur when there are issues with currency codes or exchange rate values in the system."],["`ExchangeRateError` objects inherit properties from `ApiError`, offering context on the error."],["Errors can arise from invalid currency codes, unsupported or duplicate codes, invalid exchange rate values, or missing rates."],["The `reason` field within `ExchangeRateError` provides a specific code explaining the issue, categorized as an `ExchangeRateError.Reason` enum."],["Common reasons include `INVALID_CURRENCY_CODE`, `UNSUPPORTED_CURRENCY_CODE`, `CURRENCY_CODE_ALREADY_EXISTS`, `INVALID_EXCHANGE_RATE`, `EXCHANGE_RATE_NOT_FOUND`, and `UNKNOWN`."]]],["The core content outlines the `ExchangeRateError` within the `ProposalService`, detailing its relationship to other services like `ProposalLineItemService` and `PublisherQueryLanguageService`. `ExchangeRateError` inherits from `ApiError` and lists various error types, including `INVALID_CURRENCY_CODE`, `UNSUPPORTED_CURRENCY_CODE`, `CURRENCY_CODE_ALREADY_EXISTS`, `INVALID_EXCHANGE_RATE`, `EXCHANGE_RATE_NOT_FOUND`, and `UNKNOWN`. These errors indicate issues with currency codes, exchange rate values, or the availability of exchange rates. The errors are further described by `fieldPath`, `fieldPathElements`, `trigger`, `errorString`, and the `reason`.\n"]]