Hi Team, Thanks for your feedback. I'v added the retry mechanism and wait for at least 900secs to process rest apis.
Actually I'm still curious about the < RESOURCE_EXHAUSTED error>, actually our project even didn't exceed the maximum quota(15,000) for this case. Anyway, let me proceed it firstly then give you feedback later. Regards, Aaron. On Thursday, December 22, 2022 at 4:51:03 PM UTC+8 adsapi wrote: > 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* > <https://developers.google.com/google-ads/api/reference/rpc/v12/GoogleAdsFailure> > > still count against the user's daily operation quota. > > On the other hand, requests that fail but don't return a > *GoogleAdsFailure* > <https://developers.google.com/google-ads/api/reference/rpc/v12/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* > <https://developers.google.com/google-ads/api/reference/rpc/v12/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, > [image: Google Logo] > 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 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/75a5c684-ab81-49e2-85c2-132796e14af1n%40googlegroups.com.