Retry for failued accounts using python api

56 views
Skip to first unread message

Tirtha Ghosh Dastidar

unread,
Dec 4, 2018, 2:00:28 PM12/4/18
to AdWords API and Google Ads API Forum
hi team,

I am using the google git code for downloading performance reports from adwords. I noticed that for some bigger accounts and bigger reports (eg keyword performance), some times the api times out and hence one account (out of say 500) fails and is missed in the final dataset. Is there a best practice / sample code on how to handle these cases?

Peter Oliquino (AdWords API Team)

unread,
Dec 4, 2018, 2:27:45 PM12/4/18
to AdWords API and Google Ads API Forum
Hi Tirtha,

For timeouts in API reports, you may try a shorter date range, use less columns or use predicates to reduce the file size of the report (refer here). 

Let me know if you have further clarifications.

Thanks,
Peter
AdWords API Team

Tirtha Ghosh Dastidar

unread,
Dec 4, 2018, 3:23:06 PM12/4/18
to AdWords API and Google Ads API Forum
Hi Peter,

What if its not an option to reduce the data volume. Does google adwords have a limit to the data being downloaded? We have large keyword set and we need all attributes.

Peter Oliquino (AdWords API Team)

unread,
Dec 4, 2018, 4:16:20 PM12/4/18
to AdWords API and Google Ads API Forum
Hi Tirtha,

There is no explicit data size limit, however, the server may return an error if the report is too large (refer here). You may try to split the reports using shorter date ranges and then do post-processing on your end to merge all of the reports generated into 1 report.

Let me know if you have further clarifications.  

Thanks,
Peter
AdWords API Team

Tirtha Ghosh Dastidar

unread,
Dec 13, 2018, 1:24:00 PM12/13/18
to AdWords API and Google Ads API Forum
Hey Peter,

One last question. I noticed there is a separate implementation  for downloading report - DownloadReportAsStream ..

Is this subject to the same timeout limitations as DownloadReport ??

Thanks
Tirtha

Peter Oliquino (AdWords API Team)

unread,
Dec 13, 2018, 4:50:24 PM12/13/18
to AdWords API and Google Ads API Forum
Hi Tirtha,

Yes, it is also subject to the same timeout limitations. Let me know if you have further clarifications.

Thanks,
Peter
AdWords API Team

Reply all
Reply to author
Forward
0 new messages