Hey, I am having similar issues on the same topic. We are using `KeywordPlanService.GenerateHistoricalMetrics`. We have standard access developer token. (So only 1QPS limit applies here.)
I am getting `RESOURCE_EXHAUSTED` (yesterday everything was working fine.) I am using rate limitting and I am calling the api every 10 seconds . Time of Calls (with <=9000 keywords in each req) 18:40:13 success ----> next : 18:40:32 success -----> next 18:40:52 fail Error Details: ``` Headers: Metadata(content-type=application/grpc,request-id=qwUXyYeO1kGLjvVZYRnN4g,date=Wed, 10 Jul 2024 16:40:52 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; ma=2592000) Body: null Failure message: errors { error_code { quota_error: RESOURCE_EXHAUSTED } message: "Too many requests. Retry in 30 seconds." } request_id: "qwUXyYeO1kGLjvVZYRnN4g" ``` Please let me know what is wrong ? Thank you. Parth Makadiya On Thursday 8 December 2022 at 20:58:30 UTC+1 Google Ads API Forum Advisor wrote: > Hi, > > Having standard access allows for unlimited operations per day. > However, you would still be subject to the rate limits or QPS limit > discussed here > <https://developers.google.com/google-ads/api/docs/best-practices/rate-limits> > . > > Encountering the RESOURCE_EXHAUSTED error when having standard access > indicates that you could be performing too many requests within a short > period of time, or that the API's servers are imposing a limit based on all > users traffic : > > - "The Google Ads API buckets requests for rate limiting by queries > per second (QPS) per client customer ID (CID) and developer token, meaning > that metering is enforced independently on both CIDs and developer tokens. > The Google Ads API uses a Token Bucket > <https://en.wikipedia.org/wiki/Token_bucket> algorithm to meter > requests and determine an appropriate QPS limit, so the exact limit will > vary depending on the overall server load at any given time." > > That said, we recommend mitigating the number of requests being made > within a short period of time, checking for any parallel processes that > also uses your account and developer token, as well as performing retries > and the methods mentioned in the guide > <https://developers.google.com/google-ads/api/docs/best-practices/rate-limits>, > > to avoid or manage this error. > > Best regards, > > [image: Google Logo] > Peter Laurence > Google Ads API Team > > > ref:_00D1U1174p._5004Q2giL6I:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/90ebb19e-d98b-4a48-9a90-dae1a4b879adn%40googlegroups.com.