I'm referring to the example of policy violation error, and tried to apply
it to my case as follows:
except suds.WebFault as e:
for error in e.fault.detail.ApiExceptionFault.errors:
if error['ApiError.Type'] == 'RateExceededError':
print "Sleeping RateExceededError"
time.sleep(31)
continue
Here is the error I'm having:
TypeError: tuple indices must be integers, not str
and the variable error has the value of: ('fieldPath', )
Could you please advise me how to handle the exception correctly?
I know that I need to retry according to suggested time returned in as a
field in RateExceededErro
<https://developers.google.com/adwords/api/docs/common-errors#RateExceededError.RATE_EXCEEDED>r,
but my concern know is know correct name of the exception to handle it
Thank you
On Wednesday, February 8, 2017 at 11:09:25 PM UTC-5, Peter Oliquino wrote:
>
> Hi,
>
> Based on the error message, you are experiencing a rate limit error at
> the account level
> <https://developers.google.com/adwords/api/docs/guides/rate-limits#account_rate_scope>.
>
> One possible cause is that you are making too many requests per second on a
> single account. This said, you may want to check the number of API calls
> being done at the same time against the account in question.
>
> I also recommend that you refer to the tips mentioned here
> <https://developers.google.com/adwords/api/docs/guides/rate-limits#take_control>
> to
> minimize the number of request being made per second by your account.
> Additionally, you could use the exponential backoff policy when retrying
> your requests as stated in this section
> <https://developers.google.com/adwords/api/docs/guides/bestpractices#distinguish_error_types>
> of
> our best practices guide
> <https://developers.google.com/adwords/api/docs/guides/bestpractices>. I
> hope this helps and please let me know if you encounter any other issues.
>
> Best regards,
> Peter
> AdWords API Team
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
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/9f8436e7-8f3f-4465-a8e4-543046a0f015%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.