Rate Limit Key

62 views
Skip to first unread message

and...@myadvocado.com

unread,
May 7, 2019, 11:52:34 AM5/7/19
to AdWords API and Google Ads API Forum
Hi,

Many of our requests are failing with a rate limit error for rate key "shasta" and rateScope "ACCOUNT" when retrieving from the adgroup criterion service.  What is the meaning of the rate key? This is only happening for one of our customers accounts, is there a way to increase the rate limit for that customer?  Our service handles time sensitive requests so we would like to avoid delaying if possible.

Thanks,
Andrew Ellison

googleadsapi...@google.com

unread,
May 7, 2019, 3:12:39 PM5/7/19
to and...@myadvocado.com, AdWords API and Google Ads API Forum
Hi Andrew,

The rate error you are receiving happens when the same application makes a high number of requests per second on a single Google Ads account managed by a manager account. You will need to reduce the number of requests you have at once.

Regards,
Anthony
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@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/8dc3c860-254c-4858-aac6-9495e5c8ae14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

and...@myadvocado.com

unread,
May 7, 2019, 3:14:37 PM5/7/19
to AdWords API and Google Ads API Forum
I understand, do you have any information about the specific "shasta" key?  Is there any way to increase this limit for a customer's account?

Thanks,
Andrew Ellison

googleadsapi...@google.com

unread,
May 7, 2019, 4:47:34 PM5/7/19
to and...@myadvocado.com, AdWords API and Google Ads API Forum
Hi Andrew,

I am not sure what the "shasta" key you are referring to is. Can you provide more details?

You can increase the number of operations an API token can have by applying for Standard access. However, you should note that even with Standard access, you will need to keep an eye on the number of operations per second you do.

Regards,
Anthony
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.

Andrew Ellison

unread,
May 7, 2019, 5:41:16 PM5/7/19
to AdWords API and Google Ads API Forum
Hi,

We already have standard access and implement throttling.  As I understand this is an account scope rate limit, not a developer token limit.  I'll paste a copy of the error below.

<ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809"><message>[RateExceededError &lt;rateName=Requests, rateKey=shasta, rateScope=ACCOUNT, retryAfterSeconds=30&gt;]</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="RateExceededError"><fieldPath></fieldPath><trigger></trigger><errorString>RateExceededError.RATE_EXCEEDED</errorString><ApiError.Type>RateExceededError</ApiError.Type><reason>RATE_EXCEEDED</reason><rateName>Requests</rateName><rateScope>ACCOUNT</rateScope><retryAfterSeconds>30</retryAfterSeconds></errors></ApiExceptionFault>

As you can see the error shows no indication of which limit was exceeded though I am assuming requests per minute given the retry time.  What is your recommended request rate?

Thanks,
Andrew Ellison

googleadsapi...@google.com

unread,
May 8, 2019, 3:08:34 PM5/8/19
to and...@myadvocado.com, AdWords API and Google Ads API Forum
Hi Andrew,

I don't have a recommended request rate but you should take steps in making fewer requests and to wait between requests. The guide I provided earlier gives guidelines you can use to avoid these errors. You should also have a look at our Best Practices guide. 

Regards,
Anthony
Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Andrew Ellison

unread,
May 8, 2019, 3:14:35 PM5/8/19
to AdWords API and Google Ads API Forum
Yes, we have reviewed your best practices. But how am I supposed to know what to limit the request rate to without some guideline? 1 request per second? 10? 100?  Even a ballpark number would be better than guessing and hoping it works.  We have functionality in place that pauses requests when a rate limit is encountered, but it would be much better if we could limit ourselves before that happens to avoid the 30 second penalty (Our specific application is very time sensitive and by that time our window of opportunity has passed).

googleadsapi...@google.com

unread,
May 8, 2019, 5:43:26 PM5/8/19
to and...@myadvocado.com, AdWords API and Google Ads API Forum
Hi Andrew,

Thank you for the question and for sending along all of this information.

Unfortunately, as Anthony mentioned, it's not possible to make a specific recommendation on the best request rate. That's because that rate actually fluctuates based on a number of variables, such as the overall server load at a given moment - see this rate limiting guide. The best strategy really is to follow the best practices guide, implement exponential back off and find a pattern that works best. I know it's frustrating to hear, but from our standpoint we also wouldn't want to recommend a limit that's lower than what someone could potentially get.

As for the error you received - is that the only time you've seen this type of error, or does it happen frequently? I'm going to look into it to get some further details and will follow up with you as soon as possible.

Best,
Ben Karl, Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Reply all
Reply to author
Forward
0 new messages