RateExceededError

21 views
Skip to first unread message

András Révai

unread,
Oct 7, 2016, 3:25:15 PM10/7/16
to AdWords API Forum
Hi,

I'm using v201607 and keep getting RateExceededError. How exactly can I access the RateExceededError object? Now I have an exception $e where $e->getMessage() = '[RateExceededError ]'.

András

Shwetha Vastrad (AdWords API Team)

unread,
Oct 7, 2016, 5:15:06 PM10/7/16
to AdWords API Forum
Hi Andras,

The RateExceededError contains these three important fields:
  • rateScope - The scope of the rate that was exceeded, which can be ACCOUNT or DEVELOPER.
  • rateName - Contains the name of the rate limit that was exceeded. The value can be, for example,RequestsPerMinute.
  • retryAfterSeconds - Contains the suggested number of seconds your application should wait before retrying the request. 
You can decompose the RateExceededError object to get these details. For example, in the PHP client library you can use the code below to get error details. 

catch (SoapFault $fault) {
    $errors = ErrorUtils::GetApiErrors($fault);
}

Let me know if this works.

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages