'ResourceExhausted Too many requests.' despite not exceeding request limit.

470 views
Skip to first unread message

Julia Bidak

unread,
Jun 23, 2023, 1:17:52 PM6/23/23
to Google Ads API and AdWords API Forum
Dear Google Ads Support Team,

We have been receiving an error message indicating that resource has been exhausted.
The exact error message we are getting is as follows:

google.api_core.exceptions.ResourceExhausted: 429 Resource has been exhausted (e.g. check quota). [type_url: "type.googleapis.com/google.ads.googleads.v13.errors.GoogleAdsFailure"
Too many requests. Retry in 49606 seconds. Number of operations for basic access.
 
According to our Basic Access level, we should have the capacity for up to 15,000 requests per day. Based on information about number of our used requests on Google Cloud, we did not exceed our limit. 

Could you please look into this matter and provide clarity on why we're encountering this issue? We'd appreciate it if you could also guide us through the steps to avoid such problems in the future. We've followed the guidelines for usage, and we are still unsure as to why this problem has arisen.

Thank you in advance for your help.

Google Ads API Forum Advisor

unread,
Jun 26, 2023, 9:00:06 AM6/26/23
to jbi...@minervasolutions.io, adwor...@googlegroups.com

Hi Julia,

Thank you for reaching out to Google Ads API Forum.

It appears that you are getting a RESOURCE_EXHAUSTED error, it means that a system frequency limit has been exceeded. Kindly prevent sending too many requests in a short period of time and also ensure to set up short delays between requests or combine more operations into fewer requests. You can check this documentation (https://developers.google.com/google-ads/api/docs/best-practices/common-errors?hl=en#quotaerror) for more details.

Additionally, kindly note that as per this documentation (https://developers.google.com/google-ads/api/docs/best-practices/quotas#daily_api_operation_limits), daily API usage limits are based on the number of API operations made per developer token. API operations are the total sum of get requests and mutate operations. The limits for daily API operations depend on the access level of the developer token. The Access Levels and Permissible Use Guide outlines the specific API operation limits for each access level. Requests that violate these limits are rejected with the error RESOURCE_EXHAUSTED. You may check the API Limits and Quotas (https://developers.google.com/google-ads/api/docs/best-practices/quotas?hl=en) for more information.

If the issue still persists after trying the suggestions from the above statement, kindly share with us the updated complete request and response logs with the request ID and request header generated on your end showing the error so our team can further investigate and provide appropriate guidance.

You may send the requested logs via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Reference Links:

This message is in relation to case "ref:_00D1U1174p._5004Q2mWqPf:ref"

Thanks,
 
Google Logo Google Ads API Team


Alex

unread,
Aug 17, 2023, 1:31:40 PM8/17/23
to Google Ads API and AdWords API Forum
why is this only happening now? why the extra cap? this has been working fine for years..

Google Ads API Forum Advisor

unread,
Aug 17, 2023, 3:45:59 PM8/17/23
to alexc...@gmail.com, adwor...@googlegroups.com
Hi Alex,

Thank you for reaching out to the Google Ads API Forum. I hope that you are doing well today.

Moving forward to your concern. If you are experiencing a RESOURCE_EXHAUSTED error, this usually happens if you exceed the number of 15,000 API operations per day and 1QPS for planning services. This only happens if you have a Developer Token Basic Access. As mentioned earlier in this thread, you may prevent sending too many requests in a short period of time and also ensure to set up short delays between requests or combine more operations into fewer requests. You may also try to upgrade your access level from Basic to Standard Access. Standard Access has unlimited operations per day. You may check this documentation about Access Levels.

In addition, the most common reason is that there are resources allotted at the Google Ads account level. It's still possible for a standard access developer token to overwhelm a Google Ads account's resources. Our system takes into account the requests that are being made from ALL interfaces Google Ads UI, Google Ads Editor, Google Ads scripts, Google Ads API (multiple developers at the same time on the same account), and other automated processes. If one of those interfaces is already making expensive requests, our system will push back with this error so that no one gets completely locked out. If we didn't do that, then an advertiser would be unable to log into the Google Ads UI because the account would be overwhelmed.
Reply all
Reply to author
Forward
0 new messages