Hi,
-- You can retrieve the InputStream and use the Guava I/O utilities to read the response from the InputStream as follows:
ReportDownloadResponse response =
new ReportDownloader(session).downloadReport(reportDefinition);
CharSource source = new CharSource() {
@Override
public Reader openStream() throws IOException {
return new InputStreamReader(response.getInputStream());
}
};
ImmutableList<String> report = source.readLines();
You can use InputStream to store or display the contents as needed.
Regards,
Shwetha, AdWords API Team.
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/35521701-b753-4740-8dba-37e29036ae7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment