Api quota & response code

52 views
Skip to first unread message

Can Kivanc

unread,
Oct 10, 2022, 6:20:49 AM10/10/22
to Google Ads API and AdWords API Forum
Hi,
Is there any screen or resources that we can analyze api quota that our app requested?
We get this this response code and blocked? 
Does this related with the api quota?

errors { error_code { quota_error: RESOURCE_EXHAUSTED } message: "Too many requests. Retry in 22968 seconds." details { quota_error_details { rate_scope: DEVELOPER rate_name: "Number of operations for basic access" retry_delay { seconds: 22968 } } } }

Thanks,
Can


Zweitze

unread,
Oct 10, 2022, 9:19:02 AM10/10/22
to Google Ads API and AdWords API Forum
Sure:
Activate the Google Cloud project where you enabled the Google Ads API, and set up the OAuth consent screen etc.etc.
In the hamburger menu top left, select APIs & Services > Enabled APIs & Services.
Scroll down a bit, to the list with APIs, en click on Google Ads API.

There you get graphs of all API calls, their dates and times, number of error responses etc.

Google Ads API Forum Advisor

unread,
Oct 10, 2022, 3:05:45 PM10/10/22
to c...@adsbot.co, adwor...@googlegroups.com

Hi Can,

Thanks for reaching out to the Google Ads API Forum.

Since you encountered the quota error, and the response asked to retry after ​​6.38 hours, could you confirm if your developer token used in the API request has Basic access level, and sent operations more than 15,000 per day?

Kindly note that if you’re having the Basic Access level developer token, and you’re exceeding the daily 15,000 API operations per day limit, then you would encounter a RESOURCE_EXHAUSTED error.

Moreover, this error may occur if you send 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. 

That being said, I would recommend setting up short delays between requests or combine more operations in fewer requests. Also, setting a reasonable upper bound for the total number of concurrent tasks that are going to make requests (across all processes and machines), and adjusting upward to optimize your throughput without exceeding the rate limit is recommended.

Also, please refer to the Best practices guide to optimize the efficiency and performance. Furthermore, you can consider throttling QPS from the client side (check out Throttling and rate limiters). Daily API usage limits are based on the number of API operations made per developer token. API operations are the total sum of get requests and mutate operations. The limits for daily API operations depends on the access level of the developer token. Standard access allows the developer token to execute an unlimited number of operations per day for most services. This includes (but is not limited to) GoogleAdsService Search and SearchStream. If you currently have basic access level and you would like to apply for unlimited Google Ads API operations, then you may fill out the standard access application form

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2f4KYh:ref

Google Ads API Forum Advisor

unread,
Oct 10, 2022, 3:07:28 PM10/10/22
to zwe...@gmail.com, adwor...@googlegroups.com

Hi Zweitze,

Thank you very much for providing the insights on the Can concern. This is really appreciated. It is true that the GCP API dashboard, after selecting APIs & Services > Enabled APIs & Services, you should be able to see the list with APIs, and number of requests sent over, however, in my observations, there is no way to get the total number of operations utilized in the given requests. 

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2f4POL:ref
Reply all
Reply to author
Forward
0 new messages