Hi Forum,
I've recently began using the DFP API Sandbox and the Java Client
Library to develop an automated report application. I am trying to get
a forecast for each ad unit.
My first attempt makes use of code from the examples provided with the
Java Client Library: GetForecastExample.java and GetAllAdUnits.java.
After getting all of the ad units in the sandbox environment, I am
running similar logic to that in GetForecastExample.java to get a
forecast for each of them.
The code worked at first but recently it began failing on either the
3rd or 4th call to
forecastService.getForecast(lineItem);
The error message printed to the console reads as follows:
AxisFault
faultCode: {
http://schemas.xmlsoap.org/soap/envelope/}Server
faultSubcode:
faultString: [QuotaError.EXCEEDED_QUOTA @ ]
faultActor:
faultNode:
faultDetail:
{
https://www.google.com/apis/ads/publisher/v201004}
ApiExceptionFault:<message>[QuotaError.EXCEEDED_QUOTA @ ]</
message><ApplicationException.Type>ApiException</
ApplicationException.Type><errors xmlns:xsi="
http://www.w3.org/2001/
XMLSchema-instance" xsi:type="QuotaError"><fieldPath/><trigger/
><errorString>QuotaError.EXCEEDED_QUOTA</
errorString><ApiError.Type>QuotaError</
ApiError.Type><reason>EXCEEDED_QUOTA</reason></errors>
[QuotaError.EXCEEDED_QUOTA @ ]
(stack trace)
Occasionally it will still work and run through the 5 ad units in the
environment.
I haven't found much information about what the error message
QuotaError.EXCEEDED_QUOTA means or how to avoid it, but judging from
the name, it seems like there is some restriction on the use of the
API. Is that correct? If so you could you point me to some
documentation that describes the restrictions.
Any help in overcoming this error would be appreciated.
Thanks!