Hi Aaron, Thanks for getting back to us.
Could you confirm if you again hit the RESOURCE_EXHAUSTED error after implementing the exponential back off policy and rate limiter? If yes, our team requires the most recent complet logs in order to investigate the issue further. When receiving a RESOURCE_EXHAUSTED error, you must wait for the duration stated in the error description, or else the API will start increasing the wait time, which is likely why you see it up to 900 seconds. Continuing to retry before that time is going to cause many, many more errors, which will generally ruin your throughput. Most likely what happened is you got one error, didn't wait, and then it escalated until all or most of your requests were rejected by not abiding by the rate limit. Kindly see below responses to your questions: a. If no data for API request return, does it still mean one API operation and count into maximum requests? >> API operations are the total sum of get requests and mutate operations. If >> you have sent one API request for the search or searchStream and the API >> request did not return any response, then it will be considered as 1 >> operation consumed. A request that is not a Get, Mutate, Search, or >> SearchStream request counts as one operation against the user's daily >> operation quota. Requests that are rejected with a GoogleAdsFailure still >> count against the user's daily operation quota. On the other hand, requests that fail but don't return a GoogleAdsFailure, such as from an error at the network level, won't count against the user's daily operation quota since the requests would never reach the service. An example of this is a network connectivity failure. b. How to calculate the API requests total count from my side to check if hit the 15,000 API operations per day? >> Kindly note that the API request and operation are different. 1 request can >> have many operations such as >> OfflineUserDataJobService.AddOfflineUserDataJobOperations can consume 10,000 >> operations in one request. However, using Google Ads API there is no way to >> calculate the consumed API operations count. Regards, Yasar Google Ads API Team ref:_00D1U1174p._5004Q2gQH50: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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/6muxa000000000000000000000000000000000000000000000RNAB8L001NEjWgRHSX25ys5fGqF-rw%40sfdc.net.
