Api via python DownloadReportAsString totalNumResults?

46 views
Skip to first unread message

d.axe...@gmail.com

unread,
Aug 8, 2016, 6:23:12 AM8/8/16
to AdWords API Forum
I am looking for documentation on the total number of results I can bring per DownloadReportAsString call.

I create different thread that query at most one day for the report, however, I am looking at edge cases when more than 150k results should be returned.

My question is how to use pagination if no ReportDownload object returns the totalNumResults? Am I missing something?

Example python code (incomplete on purpose):

while more_results:
  res = DownloadReportAsString(def, headers)
  offset += some_constant
  totalNum = ???????
  more_results = offset < totalNum

Thanks!

Joyce Lava

unread,
Aug 8, 2016, 6:40:46 AM8/8/16
to AdWords API Forum
Hi,

Based on the doc, pagination is not supported in report downloads and will be ignored when added in the request. Additionally, as far as I know, the DownloadReportAsString is used to return the report data as string. Could you please provide more details on the data you need so that I can take a look further? Please use reply privately to author when sending confidential information. Please check out our forum posting guidelines.

Thanks and Regards,
Joyce, AdWords API Team
Reply all
Reply to author
Forward
0 new messages