How to avoid "Resource has been exhausted (e.g. check quota)."

100 views
Skip to first unread message

秦润辉

unread,
May 28, 2025, 8:53:20 AMMay 28
to Google Ads API and AdWords API Forum
hello,DearFriends:
We called the Google API to retrieve historical consumption data this afternoon, but triggered an alarm:
[{"error":{"code":429,"message":"Resource has been exhausted (e.g. check quota).","status":"RESOURCE_EXHAUSTED","details":[{"@type":"type.googleapis.com\/google.ads.googleads.v18.errors.GoogleAdsFailure","errors":[{"errorCode":{"quotaError":"RESOURCE_EXHAUSTED"},"message":"Too many requests. Retry in 56913 seconds.","details":{"quotaErrorDetails":{"rateScope":"DEVELOPER","rateName":"Number of operations for basic access","retryDelay":"56913s"}}}],
We want to know:
1. Where can we find out our quota information;
2. How to avoid this problem in the future
3. Is there a way to quickly restore access so as not to affect data judgment
I think your answer would be better if there were relevant detailed guidance.

Google Ads API Forum Advisor

unread,
May 28, 2025, 10:31:56 AMMay 28
to qinr...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team. 

Based on the information provided, I understand that you are encountering the RESOURCE_EXHAUSTED error while making the Google Ads API calls. The RESOURCE_EXHAUSTED error generally occurs when you are sending too many requests in a short period of time. The server displays this error once it detects that your request has exceeded the system frequency limit. I would recommend giving short delays between requests or combining more operations in fewer requests. Also, please refer to the “Batch operations” documentation for more information. Additionally, you may refer to the "Usage flow" guide for insights on incorporating batch processing into your API requests. The Google Ads API enforces limits on API operations, such as the number of operations that can be sent to a single mutate request. I would recommend you to kindly refer to the API Limits and Quotas documentation for more information. 

Please find the answers for your questions below: 



1. Where can we find out our quota information;

  • To view the quotas, open Google Cloud Console > In the navigation menu, go to IAM & Admin > Quotas. You will find the quotas depending upon the API that you are using. 

2. How to avoid this problem in the future

  • Upon checking your error message, I could see that your developer token is having basic access. Also, this error may occur if you have already exceeded the daily limit of 15,000 API operations per day. Kindly note that the "RESOURCE_EXHAUSTED" error can be mitigated by increasing the number of operations per day. If you would like to apply for unlimited Google Ads API operations, fill out the standard access application form. I would suggest you to kindly refer to this “Access Levels and Permissible Use” documentation for more information.

3. Is there a way to quickly restore access so as not to affect data judgment

  • The only way to restore the basic access level is to wait and make an API call after the provided interval of time or to check this sample code for how to Handle a Rate Exceeded Error for more information. 

If you still encounter the same issues even after following the provided suggestion, I would request you to share the complete updated API logs (request and response logs with request-id and request header) generated at your end to further assist you better. 

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.


Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-05-28 14:31:10Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01qYOKf:ref" (ADR-00308797)



Reply all
Reply to author
Forward
0 new messages