Is there any functions like DownloadReportFromUrl() available in API version201708

22 views
Skip to first unread message

silvester correya

unread,
Sep 27, 2017, 6:28:07 AM9/27/17
to AdWords API Forum
Hi support,
Is there any functions like DownloadReportFromUrl() available in  API version201708. such that I can get the csv/xml data in a variable and store it in DB.

Thanks,
Joseph

Bharani Cherukuri (AdWords API Team)

unread,
Sep 27, 2017, 3:47:53 PM9/27/17
to AdWords API Forum
Hello Joseph, 

Currently, our client libraries do not support reading the report data in a variable. You may refer to this reporting guide  which is an open source framework for large scale AdWords API Reporting. Let me know if you have any other questions. 

Thanks,
Bharani, AdWords API Team.

Zweitze

unread,
Sep 28, 2017, 6:12:47 AM9/28/17
to AdWords API Forum
Assuming you're using .NET:

ReportUtilities.GetResponse() retrieves a report into a stream. Note that the report is not downloaded yet. To do so, just copy that stream into a MemoryStream. Highly recommended as the API will not keep its connection open forever.

After that you can read from the MemoryStream and process its contents. No need for file systems anymore.
The seventies are finally over!
Reply all
Reply to author
Forward
0 new messages