AdWords API Exception handling in Python

2014-01-16 Thread Martin
Hi, I am getting the RateExceededError and according to the suggestions I want to catch this exception and respect the 'retryAfterSeconds' attribute. However I am failing to catch just this particular exception and leaving the rest to be handled with my generic error handler. I tried to do somet

Re: AdWords API Exception handling in Python

2014-01-23 Thread Danial Klimkin
Hello Martin, It looks like you are excepting a wrong exception class. Let me check with the python library author to confirm. -Danial, AdWords API Team. On Thursday, January 16, 2014 9:45:22 PM UTC+4, Martin wrote: > > Hi, > I am getting the RateExceededError and according to the suggestion

Re: AdWords API Exception handling in Python

2014-01-24 Thread Danial Klimkin
Hi Martin, Please see this example as a reference: try: page = campaign_service.get(selector) except AdWordsGoogleInternalError, e: inner_error = e.errors[0] if 'RateExceededError.RATE_EXCEEDED' == inner_error.errorString: // do something with inner_error.retryAfterSeconds -Danial, A