Re: Handling exceptions that occur in the API

2017-02-12 Thread 'Joyce Lava' via AdWords API Forum
Hi, I will provide support to you on behalf of Peter. Could you please confirm if you tried to run the example code to get keyword ideas from the Python client library? I asked this because the error

Re: Handling exceptions that occur in the API

2017-02-10 Thread newmccacc
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 Her

Re: Handling exceptions that occur in the API

2017-02-08 Thread 'Peter Oliquino' via AdWords API Forum
Hi, Based on the error message, you are experiencing a rate limit error at the account level . One possible cause is that you are making too many requests per second on a single account. This said, you may w

Handling exceptions that occur in the API

2017-02-08 Thread newmccacctest
Hello, I'm using TargetingIdeaService from Adwords API. I'm trying to catch any exception happening during the requests, sleep for 31 seconds, then retry. However, it seems that there are some exceptions occurring in the library files that I wonder how can I handle them? Here is a snippet of my