Google Ads API, Python Library - how to implement Exponential Backoff?

229 views
Skip to first unread message

Mat

unread,
Mar 12, 2020, 2:56:49 AM3/12/20
to AdWords API and Google Ads API Forum
Hi,

I'd like to implement an "exponential backoff" for retryable errors like 'INTERNAL_ERROR', 'RESOURCE_EXHAUSTED', 'RESOURCE_TEMPORARILY_EXHAUSTED' into my Python Google Ads API scripts. I've found the solution you provide for the Analytics API, but I'm not sure how to implement this for the Google Ads API, using the Python library. 

Can you help me out?

Best regards
Mat



David Wihl

unread,
Mar 12, 2020, 8:28:21 AM3/12/20
to AdWords API and Google Ads API Forum
The current Python library already implements much of this for you, except for the new GoogleAdsService:SearchStream. There is an example in .NET of how to handle rate limit errors, which we will port to Python in the future. 

-David

Mat

unread,
Mar 12, 2020, 9:54:23 AM3/12/20
to AdWords API and Google Ads API Forum
Looking forward to it.

Thank you, David
Reply all
Reply to author
Forward
0 new messages