ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)

852 views
Skip to first unread message

data all

unread,
Nov 17, 2022, 9:35:58 AM11/17/22
to Google Ads API and AdWords API Forum
Hello,

We've started to used the API not very long time ago, we had only tested it on a test account so far, and we have basic access.
Yesterday we started to launch our project in production, we had to change the status of about 12k adgroups. After about 10k adgroups updated we got the resource exhausted error, saying we had to try again in 17 hours. The quota should be 15000 operations/day but I'm pretty sure we didn't reach it.
Today I was able to update only 2 adgroups. Now I get the error again, telling me to try again in 30s this time, but even a while later, I can't update even a single adgroup. I really don't understand how this quota works. Is it daily as in at some time of the day it will reset or it it like 15000 operations over a rolling 24 hours period ?
And again, I don't think we reached those 15k operations yesterday.

Any help would be appreciated, thanks !

Google Ads API and AdWords API Forum

unread,
Nov 18, 2022, 4:49:18 AM11/18/22
to Google Ads API and AdWords API Forum
Re-posting the last inquiry  [https://groups.google.com/g/adwords-api/c/HX6BOQd3yYs] from the forum as it wasn't routed to our support queue.

Regards,
Carmela
Google Ads API Team

Google Ads API Forum Advisor

unread,
Nov 18, 2022, 10:44:39 AM11/18/22
to adwor...@googlegroups.com
Hi,

Thank you for raising this concern to the Google Ads API Forum.

With regard to your concern, the "429 Resource has been exhausted", please note that all of the Google Ads API client libraries use gRPC for generating requests and responses. By default, gRPC has a message size of 4 MB, but our client libraries set the max message size to 64 MB in order to increase efficiency.

Responses must not exceed this limit. For example, a search request that includes a lot of fields may generate a response that exceeds 64 MB in size. To avoid this limit, you can reduce the number of selected fields, reduce the page size, or use streaming. For mutates, send fewer operations per request. Requests that violate this limitation will not generate a GoogleAdsError, but will generate a 429 Resource Exhausted gRPC error. Refer to the list of gRPC error codes and messages.

Please note that the Google Ads API enforces limits on API operations, such as the number of operations that can be sent in a single mutate request, kindly check this documentation to see the API Limits and Quotas.

In the event that you've done considering the above information and still the persisting the error, it would be helpful if you can provide the complete request and response logs with requestID and request header that generated on your end where we can see the error. If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.

For privacy purposes, you can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsapi-support@google.com.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2gQHaR:ref
Reply all
Reply to author
Forward
0 new messages