Rate Exceed Error for TargetIdeas service

287 views
Skip to first unread message

bukaroo

unread,
Jan 16, 2018, 10:22:01 AM1/16/18
to AdWords API Forum
Hello, 
I have standard access. I'm trying to use the TargetIdeas/TrafficEstimate services, but I'm getting arate exceed error right on my first initial request, here is the error:

[16-Jan-2018 10:18:28 America/New_York] PHP Fatal error:  Uncaught exception 'Google\AdsApi\AdWords\v201710\cm\ApiException' with message '[RateExceededError <rateName=RATE_LIMIT, rateKey=null, rateScope=ACCOUNT, retryAfterSeconds=30>]' in /home/ideas/TargetIdeas/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:39
Stack trace:
#0 /home/ideas/TargetIdeas/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(39): ReflectionClass->newInstanceArgs(Array)
#1 /home/ideas/TargetIdeas/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(177): Google\AdsApi\Common\Util\Reflection->createInstance('Google\\AdsApi\\A...', '[RateExceededEr...')
#2 /home/ideas/TargetIdeas/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(142): Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault))
#3 /home/ideas/TargetIdeas/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201710/o/TargetingIdeaService in /home/ideas/TargetIdeas/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php on line 39


Please advise how to resolve this

Milind Sankeshware (AdWords API Team)

unread,
Jan 25, 2018, 3:31:52 PM1/25/18
to AdWords API Forum
Hi, 

The discussion on this issue happened offline. For the benefit of other users on the forum, please find the summary of the discussion below:

Rate limits with ACCOUNT scope occurs usually when there are too many requests against the account in a short duration of time. In that case you may need to slow down and make fewer requests against that account. You will need to wait for at least the seconds specified in retryAfterSeconds in the error log before you retry. You can refer to this guide to control the rate limit errors in your application. Making fewer requests that fetch more data is recommended compared to many requests for the same amount of data.

Thanks,
Milind, AdWords API Team.

cv

unread,
Feb 20, 2018, 12:08:44 AM2/20/18
to AdWords API Forum
Hi Milind,

I also facing same issue with TargetingIdeaService only and I am using exactly same account for clients to whom I have permission of the account.
I am also not using One Account for frequently request as you mentioned in the summary. I am using it for 3-4 times a day with getting idea of around 10 Keywords per request.

Still I faced the Issue with Rate Limit on Account Level. This is frequent now then It was working before.

Is that any criteria If I wants to target USA states or City and using account with INR currency can cause an issue?

[Feb 13 2018 18:30:15.000000 - ERROR] effectiveUser= XUSER service=TargetingIdeaService method=get operators={} responseTime=46 requestId=00056517930375e00abf6708970d190c operations=1 units= server=adwords.google.com isFault=true faultMessage=[RateExceededError <rateName=RATE_LIMIT, rateKey=null, rateScope=ACCOUNT, retryAfterSeconds=30>]
[Feb 15 2018 02:15:08.000000 - ERROR] effectiveUser= XUSER service=TargetingIdeaService method=get operators={} responseTime=171 requestId=000565322fd007700aa30c415f0dad71 operations=1 units= server=adwords.google.com isFault=true faultMessage=[RateExceededError <rateName=RATE_LIMIT, rateKey=null, rateScope=ACCOUNT, retryAfterSeconds=30>]
[Feb 15 2018 09:45:09.000000 - ERROR] effectiveUser= XUSER service=TargetingIdeaService method=get operators={} responseTime=183 requestId=00056538792856b00abfe1cc6705717e operations=1 units= server=adwords.google.com isFault=true faultMessage=[RateExceededError <rateName=RATE_LIMIT, rateKey=null, rateScope=ACCOUNT, retryAfterSeconds=30>]
[Feb 16 2018 00:45:10.000000 - ERROR] effectiveUser= XUSER service=TargetingIdeaService method=get operators={} responseTime=199 requestId=000565450bd061e00abf47168c00f8a3 operations=1 units= server=adwords.google.com isFault=true faultMessage=[RateExceededError <rateName=RATE_LIMIT, rateKey=null, rateScope=ACCOUNT, retryAfterSeconds=30>]
[Feb 19 2018 20:45:16.000000 - ERROR] effectiveUser= XUSER service=TargetingIdeaService method=get operators={} responseTime=153 requestId=0005659228d72bf00abf86ce46076187 operations=1 units= server=adwords.google.com isFault=true faultMessage=[RateExceededError <rateName=RATE_LIMIT, rateKey=null, rateScope=ACCOUNT, retryAfterSeconds=30>]
[Feb 20 2018 08:00:17.000000 - ERROR] effectiveUser=XUSER service=TargetingIdeaService method=get operators={} responseTime=172 requestId=0005659b96d50b500aa36b0a9b0f8904 operations=1 units= server=adwords.google.com isFault=true faultMessage=[RateExceededError <rateName=RATE_LIMIT, rateKey=null, rateScope=ACCOUNT, retryAfterSeconds=30>]



Thanks,

Vincent Racaza (AdWords API Team)

unread,
Feb 20, 2018, 1:15:51 AM2/20/18
to AdWords API Forum
Hi,

I am a teammate of Milind and I will be providing support.

For the TargetingIdeaService, you may sometimes receive RateExceededError with rateScope=ACCOUNT as this service is more expensive compared to other AdWords API services. The rate limits for this service does not depend on your account's QPS alone, but the rate limits can vary based on time of the day, overall volume of API usage by all users, and other factors. So in regards to your question regarding if targeting USA or the cities on it with INR currency in your account can cause the RateExceededError, the answer is no. 

This said, the only way to minimize this issue is to slow down and retry your request based on the number of seconds specified in the retryAfterSeconds field of your response.

Thanks,
Vincent
AdWords API Team

cv

unread,
Feb 20, 2018, 1:52:04 AM2/20/18
to AdWords API Forum
Hello Vincent,

Yes, I got you. I have also read same on this group other questions as well, but as mentioned over here https://developers.google.com/adwords/api/docs/guides/rate-limits the ACCOUNT scope will be depend on the No of request per account, also Milind said same. In my case I am not using same account for multiple requests.

I am doing for first Request of the day, and getting RateExceedLimit error?
You can clearly see that I have made first request on the day today and got the rateExceedLimit error.I also tried the request in after few minutes, but same error.

Also you mentioned that The rate limits for this service does not depend on your account's QPS alone, but the rate limits can vary based on time of the day, overall volume of API usage by all users.
So what is the meaning of overall volume of API Usage? Is this all the changes I made using API across all the accounts for same Developer Token for different services as well?

I am little confusing, as I am getting this error randomly and frequently sometimes on first request itself and sometimes after retry for few times then also.

How I can overcome same? Can you guide me?

Thanks,

Vincent Racaza (AdWords API Team)

unread,
Feb 20, 2018, 3:14:10 AM2/20/18
to AdWords API Forum
Hi,

For TargetingIdeaService, it does not depend on your usage alone, but on the usage of all users on a certain time of the day, and other factors. So if there are other users who are making a request using this service at the same time when you made your request, then this sums up to the overall volume of the API usage for this service which may generate the RateExceededError. The rate limits here is not per developer token, but per QPS across all AdWords users on a certain period. 

However, so I can further investigate this on our end, can you provide your SOAP request and response logs via Reply privately to author option?

shubha...@octro.com

unread,
Feb 1, 2019, 6:16:29 AM2/1/19
to AdWords API and Google Ads API Forum
PHP Fatal error:  Uncaught exception 'Google\\AdsApi\\AdWords\\v201809\\cm\\ApiException' with message '[RateExceededError <rateName=OperationsPerDay, rateKey=basic_access_operations, rateScope=DEVELOPER, retryAfterSeconds=86400>]' in /var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:43\nStack trace:\n#0 /var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(43): ReflectionClass->newInstanceArgs(Array)\n#1 /var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(203): Google\\AdsApi\\Common\\Util\\Reflection->createInstance('Google\\\\AdsApi\\\\A...', '[RateExceededEr...')\n#2 /var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(164): Google\\AdsApi\\Common\\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault))\n#3 /var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201809/cm/OfflineConversionFeedService.php(92): Google\\AdsApi\\Common\\AdsSoapClient->__soapCall in /var/www/html/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php on line 43

googleadsapi...@google.com

unread,
Feb 1, 2019, 12:40:53 PM2/1/19
to shubha...@octro.com, AdWords API and Google Ads API Forum
Hello Shubham,

The RateExceededError with the trigger "Basic Access Operations Quota" indicates that you have reached the daily quota of report downloads associated with your basic access developer token. Please note that the daily operational limit is based on the access level of your developer token and not at the user level. If your use case requires to make more than 10,000 API operations and 1000 report downloads per day, you can apply for Standard access by filling out this application form. The AdWords API Compliance team will review your request and reply you back within a business day. Let me know if you have any further questions

Thanks,
Milind, AdWords API Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_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/5ef17ac1-e1e0-4146-a18c-0bf64e25d34d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages