InputStream size coming as 20 bytes even when no data is present

16 views
Skip to first unread message

pradeep s

unread,
Jun 3, 2015, 2:30:33 PM6/3/15
to adwor...@googlegroups.com
Hi,
I am using java client version v201502 for downloading adwords report. Download format used in GZIPPED_CSV. Eventhough the data is null for some client ids , i am getting a 20 byte file.
ReportDownloadResponse.getInputStream().available() returns 20 for these calls.
Is there any way we can avoid writing these files.
Regards
Pradeep S

Josh Radcliff (AdWords API Team)

unread,
Jun 4, 2015, 9:40:26 AM6/4/15
to adwor...@googlegroups.com, sreekuma...@gmail.com
Hi Pradeep S,

My guess is that you still get a 20 byte file because you are including report headers, column headers, or the report summary. You can exclude all of these (if it works for your use case) by setting the appropriate skip... attributes on your ReportingConfiguration to true (see lines 91-93 of the example).

Cheers,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages