type ExchangeRateError (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
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
|
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 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eThis page lists all errors associated with \u003ccode\u003eExchangeRate\u003c/code\u003e objects in Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eExchangeRateError\u003c/code\u003e objects contain information about the error, including a reason code and a field path.\u003c/p\u003e\n"],["\u003cp\u003eCommon reasons for \u003ccode\u003eExchangeRateError\u003c/code\u003e include invalid currency codes, unsupported currency codes, and invalid exchange rate values.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use the information in \u003ccode\u003eExchangeRateError\u003c/code\u003e objects to troubleshoot and resolve issues with exchange rates in their Ad Manager integrations.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace for \u003ccode\u003eExchangeRateError\u003c/code\u003e is \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e.\u003c/p\u003e\n"]]],["The core content outlines error types and details associated with the `ExchangeRateError` within the Ad Manager API. This error is linked to `ProposalService`, `ProposalLineItemService`, and `PublisherQueryLanguageService`. The document defines various error reasons including `INVALID_CURRENCY_CODE`, `UNSUPPORTED_CURRENCY_CODE`, and `INVALID_EXCHANGE_RATE`. Additionally, it specifies fields within `ApiError`, such as `fieldPath`, `fieldPathElements`, `trigger`, and `errorString`, which are used to identify the cause of errors, detailing the error location and nature.\n"],null,[]]