why i am getting rate exceeded error

6,955 views
Skip to first unread message

asma batool

unread,
Nov 1, 2017, 7:24:34 AM11/1/17
to AdWords API Forum
I am getting an api exception
 how can handle it please suggest

 ApiException in Reflection.php line 39:

[RateExceededError <rateName=RATE_LIMIT, rateKey=null, rateScope=ACCOUNT, retryAfterSeconds=30>]

Bharani Cherukuri (AdWords API Team)

unread,
Nov 1, 2017, 2:18:10 PM11/1/17
to AdWords API Forum
Hello,

The RateExceededError is experienced when there are too many requests made to the API in a short period of time. Usually, this limit is applied when an application makes high number of requests on a single AdWords account and may return this error for exceeding the rate limit. You may want to check the number of API calls being made at the same time against his account. You'll need to wait for the amount of time specified in the retryAfterSeconds parameter before retrying the request. Additionally, you can refer to this document to handle the number of requests being made on their account. Let me know if you have any other questions.

Regards,
Bharani, AdWords API Team

asma batool

unread,
Nov 2, 2017, 1:58:15 AM11/2/17
to AdWords API Forum
Can any one provide me php example code to handle this error. or any best solution which will work for me
 
Thanks

Bharani Cherukuri (AdWords API Team)

unread,
Nov 2, 2017, 11:34:25 AM11/2/17
to AdWords API Forum
Hi there, 

I'm afraid, we do not have any sample apps which handles these Rate limits. However, you may refer to our client libraries which has some best illustrations. This said, the rate limits are added to the API to meter the requests and queries per second rate. When the client application makes a large number of API calls, the AdWords API servers return the RateExceededError requesting the application processes to slow down. There is no penalty for making a number of API calls, the RateExceededError is transient in nature and automatically resolves within 30 seconds of inactivity. You can mitigate the RateExccededError as much as possible by reducing the number of requests and throttling the QPS from the client side. You may refer to this document which illustrates some best strategies that can be implemented to reduce the error. 

Thanks,
Bharani, AdWords API Team

On Wednesday, November 1, 2017 at 7:24:34 AM UTC-4, asma batool wrote:
Reply all
Reply to author
Forward
0 new messages