429 Errors Are Getting Ridiculous

3,891 views
Skip to first unread message

Nick

unread,
Dec 13, 2023, 4:19:59 PM12/13/23
to Google Ads API and AdWords API Forum
I've been using the Google Ads API for quite some time now.

FOR NOTE: I use the API the same amount (volume) of requests throughout the entire time period. 

I KNOW for a fact that I am not exhausting resources.

Okay, please keep that in mind, I am not exhausting my resources. I only make around a 20-100 requests per DAY. 

Yet, I keep going through periods where 50%-100% of requests are being rejected by the KeywordPlanIdeaService.GenerateKeywordHistoricalMetrics with a 429 error. 

Here is the error:
"grpc-status-details-bin": "\b\b\u0012/Resource has been exhausted (e.g. check quota).\u001a\u0001\nDtype.googleapis.com/google.ads.googleads.v14.errors.GoogleAdsFailure\u0012G\n-\n\u0002X\u0002\u0012'Too many requests. Retry in 30 seconds.\u0012\u0016aV38uYumnQH-5cXeegS5vw",

Host: googleads.googleapis.com, Method: /google.ads.googleads.v14.services.KeywordPlanIdeaService/GenerateKeywordHistoricalMetrics, RequestId: aV38uYumnQH-5cXeegS5vw, IsFault: True, FaultMessage: Resource has been exhausted (e.g. check quota).

This is sometimes happening on the VERY FIRST REQUEST in a 24 hour period.

The exact same behavior is happening for other users. So it has nothing to do with the actual volume of requests. 

Google, I ask you, PLEASE fix this.

PLEASE do not respond with the canned response of

"After reviewing your concern, I understand that you are getting the error “429 Resource has been exhausted” in the Google Ads API. I would kindly request you to provide us with the complete API logs (request and response with request-id and request header) generated at your end along with the uncropped UI screenshot to better assist you on this request. "

Attached is a screenshot showing the error rate for 24 hours.
As you can see, i made 24 requests and 58% were rejected for 429. 

That example shows that I am not exceeding the limit of requests yet still getting rejected. 

Why does the API work perfectly for weeks then all of a sudden start rejecting more than half of the requests? Regardless of the amount of requests. It's so frustrating. 


Screenshot 2023-12-13 at 4.14.56 PM.png

Google Ads API Forum Advisor

unread,
Dec 13, 2023, 5:41:10 PM12/13/23
to nickol...@gmail.com, adwor...@googlegroups.com
Hi,

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

Kindly note that RESOURCE_EXHAUSTED error generally occurs when you are sending too many requests in a short period of time. The server throws this error once it detects that your request has exceeded the system frequency limit. I would recommend setting up short delays between requests or combining more operations in fewer requests. I would recommend you please refer to the “Batch operations” documentation for more information. Additionally, I would suggest you refer to the "Usage flow" guide for insights on incorporating batch processing into your API requests.

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 please refer to this “Access Levels and Permissible Use” documentation for more information.

If the issue persists after trying with the provided suggestion, then provide us with the complete updated API logs (request and response with request-id and request header) generated at your end and uncropped UI screenshot of the Google Ads account where you are facing the issue.

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.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02r1gdK:ref"

Thanks,
 
Google Logo Google Ads API Team


Ian Campbell

unread,
Dec 14, 2023, 10:56:14 AM12/14/23
to Google Ads API and AdWords API Forum
I'm getting the same on this service. 
Including on making the first request in a 24 hour period.
I am getting the error to try again in 30 seconds
If I do try again, even after 1 hour gap, I get the same message.
I realise there is a 10,000 keyword limit on this call, which I presume is in a 24 hour period, which I have not exceeded.
Do we have a link to what the quota's are on this?
Both on
- the number of keywords we can request in a period
- the number of calls we can make to this service in a period

Google Ads API Forum Advisor

unread,
Dec 14, 2023, 5:15:47 PM12/14/23
to iancamp...@gmail.com, adwor...@googlegroups.com
Hi,

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

By reviewing your concern, I understand that I understand that you are encountering the RESOURCE_EXHAUSTED error. Kindly note that RESOURCE_EXHAUSTED error generally occurs when you are sending too many requests in a short period of time. The server throws this error once it detects that your request has exceeded the system frequency limit. I would recommend setting up short delays between requests or combining more operations in fewer requests. I would recommend you please refer to the “Batch operations” documentation for more information. Additionally, I would suggest you refer to the "Usage flow" guide for insights on incorporating batch processing into your API requests.


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 please refer to this “Access Levels and Permissible Use” documentation for more information.

If the issue persists after trying with the provided suggestion, then provide us with the complete API logs (request and response with request-id and request header) generated at your end and uncropped UI screenshot of the Google Ads account where you are facing the issue.


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, .NetPHPPythonRuby 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.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02r1p1V:ref"


Thanks,
 
Google Logo Google Ads API Team


Amine Achergui

unread,
Dec 25, 2023, 11:10:17 PM12/25/23
to Google Ads API and AdWords API Forum
HI Team,

We are seeing the same problem recently ( starting from last week) , we dont exceed 600 API calls a day between Queries and mutations (no BatchJob operations) and we are getting  Resource has been exhausted, check Quota . We are getting that error almost all the time when we start doing  conccurent calls which is very limiting and disturbing because.
It worked fine before.
Our developer token we are on a Basic Access.
Here are some graphs from google console for the data :
Starting from 19 of December the error started to pop up more frequently. (ref 428-2-ration-last-30)
Today for example at a certain point 429 were 66% of the total responses  (ref 428-2-ration-25-10) even if the total requests were around 600 (ref request-count-25-12).

Thank you,

Amine
429-200-ratio-last-30.png
429-200-ratio-25-12.png
request-count-25-12.png

Google Ads API Forum Advisor

unread,
Dec 25, 2023, 11:27:59 PM12/25/23
to amine.ache...@gmail.com, adwor...@googlegroups.com
Hi Amine,

Thank you for getting back to us.

I would like to inform you that the logs which you have provided are not in the correct format and are incomplete. In order to investigate further, kindly provide us with the updated complete API logs in .txt format (request and response with request-id and request header) generated at your end to assist you better.

Amine Achergui

unread,
Dec 26, 2023, 10:01:24 AM12/26/23
to Google Ads API and AdWords API Forum
Hi Team,

Thank you for answer.

Here is an excerpt of the logs that produced 429.

Regards,

Amine
429-requests.txt

Google Ads API Forum Advisor

unread,
Dec 26, 2023, 3:40:28 PM12/26/23
to amine.ache...@gmail.com, adwor...@googlegroups.com
Hi,


Thank you for getting back to us.

By reviewing your query, I understand that you are getting the error "RESOURCE_EXHAUSTED", 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 in fewer requests. Also, please check this sample code for how to Handle a Rate Exceeded Error for more information.

Additionally, we also have daily API operation limits where requests that violate these limits are rejected with the error: RESOURCE_EXHAUSTED. You may check out API Limits and Quotas for more information.

If you are still encountering an error, kindly provide us with the complete API logs (request and response with request-id and request header) generated at your end to assist you better.

Amine Achergui

unread,
Dec 27, 2023, 2:22:59 AM12/27/23
to Google Ads API Forum Advisor, adwor...@googlegroups.com
Hi Team, 
Thank you for your answer.
With regards to  API Limits and Quotas I haven't exceeded the daily limit any time but if there is a rate limit that is expressed in terms of  requests per second or per minute, where can I find it in the documentation?
Regards,
Amine

Google Ads API Forum Advisor

unread,
Dec 27, 2023, 3:41:59 AM12/27/23
to amine.ache...@gmail.com, adwor...@googlegroups.com
Hi Amine,


Thank you for getting back to us.

Please note that 1 QPS (Quota per second) is calculated as 60 requests per 60 seconds. For documentation related to Google Ads API Quotas, I would suggest you to refer to this link for more information.
Reply all
Reply to author
Forward
0 new messages