enum ForecastError.Reason (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
Reason why a forecast could not be retrieved.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
Enumeration |
Description |
SERVER_NOT_AVAILABLE
|
The forecast could not be retrieved due to a server side
connection problem. Please try again soon.
|
INTERNAL_ERROR
|
There was an unexpected internal error.
|
NO_FORECAST_YET
|
The forecast could not be retrieved because there is not
enough forecasting data available yet. It may take up to one week before
enough data is available.
|
NOT_ENOUGH_INVENTORY
|
There's not enough inventory for the requested reservation.
|
SUCCESS
|
No error from forecast.
|
ZERO_LENGTH_RESERVATION
|
The requested reservation is of zero length. No forecast is returned.
|
EXCEEDED_QUOTA
|
The number of requests made per second is too high and has exceeded the
allowable limit. The recommended approach to handle this error is to wait
about 5 seconds and then retry the request. Note that this does not
guarantee the request will succeed. If it fails again, try increasing the
wait time.
Another way to mitigate this error is to limit requests to 2 per second.
Once again this does not guarantee that every request will succeed, but
may help reduce the number of times you receive this error.
|
OUTSIDE_AVAILABLE_DATE_RANGE
|
The request falls outside the date range of the available data.
|
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."],[],["The `ForecastError.Reason` enumeration outlines why a forecast retrieval might fail. Possible reasons include server issues (`SERVER_NOT_AVAILABLE`, `INTERNAL_ERROR`), insufficient data (`NO_FORECAST_YET`), inadequate inventory (`NOT_ENOUGH_INVENTORY`), zero-length reservations (`ZERO_LENGTH_RESERVATION`), exceeding request limits (`EXCEEDED_QUOTA`), out-of-range dates (`OUTSIDE_AVAILABLE_DATE_RANGE`), or unknown errors (`UNKNOWN`). A successful forecast is indicated by `SUCCESS`. Retries with a 5-second wait are recommended for `EXCEEDED_QUOTA` errors, and the namespace is specified.\n"],null,["# enum ForecastError.Reason (v202502)\n\n**Service** \n[AdjustmentService](/ad-manager/api/reference/v202502/AdjustmentService.ForecastError.Reason) [ForecastService](/ad-manager/api/reference/v202502/ForecastService.ForecastError.Reason) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.ForecastError.Reason) [LineItemTemplateService](/ad-manager/api/reference/v202502/LineItemTemplateService.ForecastError.Reason) **OrderService** [ProposalLineItemService](/ad-manager/api/reference/v202502/ProposalLineItemService.ForecastError.Reason) [ProposalService](/ad-manager/api/reference/v202502/ProposalService.ForecastError.Reason) **Dependencies** \n[ForecastError](/ad-manager/api/reference/v202502/OrderService.ForecastError) \n▼\n**ForecastError.Reason**\n\nReason why a forecast could not be retrieved.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Enumeration | Description |\n|--------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `SERVER_NOT_AVAILABLE` | The forecast could not be retrieved due to a server side connection problem. Please try again soon. |\n| `INTERNAL_ERROR` | There was an unexpected internal error. |\n| `NO_FORECAST_YET` | The forecast could not be retrieved because there is not enough forecasting data available yet. It may take up to one week before enough data is available. |\n| `NOT_ENOUGH_INVENTORY` | There's not enough inventory for the requested reservation. |\n| `SUCCESS` | No error from forecast. |\n| `ZERO_LENGTH_RESERVATION` | The requested reservation is of zero length. No forecast is returned. |\n| `EXCEEDED_QUOTA` | The number of requests made per second is too high and has exceeded the allowable limit. The recommended approach to handle this error is to wait about 5 seconds and then retry the request. Note that this does not guarantee the request will succeed. If it fails again, try increasing the wait time. Another way to mitigate this error is to limit requests to 2 per second. Once again this does not guarantee that every request will succeed, but may help reduce the number of times you receive this error. |\n| `OUTSIDE_AVAILABLE_DATE_RANGE` | The request falls outside the date range of the available data. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]