QuotaError.EXCEEDED_QUOTA

Skip to first unread message

Luke Eller

unread,
Jun 24, 2010, 12:21:05 AM6/24/10
to Google's DoubleClick for Publishers API Forum
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!


DFP API Advisor

unread,
Jun 24, 2010, 3:15:57 PM6/24/10
to Google's DoubleClick for Publishers API Forum
Hi Luke,

Typically, you would be able to look up the reference documentation of
the error, but I see it is currently omitted.

http://code.google.com/apis/dfp/docs/reference/v201004/ForecastService.QuotaError.Reason.html

Thanks for pointing this out to us and I'll have it fixed.

This error means that you are making too many requests per second
against our servers.

Usually, we would recommend batching your requests, but since
ForecastService only provides single operation requests, the only
alternative is to pause briefly between requests. In this case, I am
not sure of the exact numbers, but you should be able to play around
with using a Thread.sleep() to see what works.

Also, if you have any feature requests for the Java client library,
please do not hesitate to add them here: http://code.google.com/p/google-api-dfp-java/issues/list

Thanks,
Adam Rogal, DFP API Team

Anand Raman

unread,
Oct 29, 2011, 7:23:06 AM10/29/11
to dfpapi-...@google.com, Google's DoubleClick for Publishers API Forum
Hello,

We have started receiving QuotaError.EXCEEDED_QUOTA since last night
(10/28/2011 9:00PM EDT). We already pause between making requests (like 3
seconds) and batch like 10 requests. This happens when we make API call to
create a line item.

Any idea / help on how to resolve this?

Thanks for help!

Anand

Reply all
Reply to author
Forward
0 new messages