I cannot find any suggestion in the RESOURCE_EXHAUSTED_EXCEPTION in regards 
to how long to wait to retry in the similar fashion of handling the 
RateExceededError in this article 
https://developers.google.com/adwords/api/docs/guides/rate-limits


try {
  ...
} catch (ApiException e) {
  for (ApiError error : e.getErrors()) {
    if (error instanceof RateExceededError) {
      RateExceededError rateExceeded = (RateExceededError) error;
      Thread.sleep(rateExceeded.getRetryAfterSeconds() * 1000);
    }
  }
  ...
}



I am keep getting following error from the Beta Google Ads API, other than 
randomly delaying the consecutive call what is a good way to handle this? 
io.grpc.StatusRuntimeException: RESOURCE_EXHAUSTED: Quota exceeded for 
quota metric 'googleads.googleapis.com/get_requests' and limit 
'GetsPerMinutePerProject' of service 'googleads.googleapis.com' for 
consumer 'project_number:XXXXXXXXXXX'.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/313334b0-1729-44e8-9469-d239363325fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How do ... darshan
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to