enum CurrencyCodeError.Reason (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
The reason behind the currency code error.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
Enumeration |
Description |
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
|
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."],[],["The provided content outlines currency code error handling within a service API, specifically detailing reasons for such errors. The key actions involve identifying errors related to currency codes across multiple services like Forecast, LineItem, Order, ProposalLineItem, and Report. Three error reasons are defined: `INVALID` (non-ISO 4217 format), `UNSUPPORTED` (valid but not accepted), and `DEPRECATED_CURRENCY_USED` (use of an outdated currency after deprecation). These errors are categorized under the `CurrencyCodeError.Reason` enumeration.\n"],null,["# enum CurrencyCodeError.Reason (v202502)\n\n**Service** \n[ForecastService](/ad-manager/api/reference/v202502/ForecastService.CurrencyCodeError.Reason) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.CurrencyCodeError.Reason) [LineItemTemplateService](/ad-manager/api/reference/v202502/LineItemTemplateService.CurrencyCodeError.Reason) [OrderService](/ad-manager/api/reference/v202502/OrderService.CurrencyCodeError.Reason) **ProposalLineItemService** [ProposalService](/ad-manager/api/reference/v202502/ProposalService.CurrencyCodeError.Reason) [ReportService](/ad-manager/api/reference/v202502/ReportService.CurrencyCodeError.Reason) **Dependencies** \n[CurrencyCodeError](/ad-manager/api/reference/v202502/ProposalLineItemService.CurrencyCodeError) \n▼\n**CurrencyCodeError.Reason**\n\nThe reason behind the currency code error.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Enumeration | Description |\n|----------------------------|----------------------------------------------------------------------|\n| `INVALID` | The currency code is invalid and does not follow ISO 4217. |\n| `UNSUPPORTED` | The currency code is valid, but is not supported. |\n| `DEPRECATED_CURRENCY_USED` | The currency has been used for entity creation after its deprecation |"]]