Closed TAronee closed 4 years ago
Looks like the report might be gzipped, that's the default setting for DownloadReportToFile. You can change your extension to .csv.gz
or disable gzip compression on the downloader.
Thanks @christopherseeley. That did the trick :)
Hi,
I'm trying to pull a report through the Ad Manager API and save it as a csv file on my laptop using a service account. At the moment, I'm getting a report id, and also managing to save a csv file. However, the contents of the csv file are illegible. For example, below are the contents of my latest exported csv file:
‹ MÍ» ƒ0 DÑžoYÐîØkØ Å.(ò ŽÒR¥@ PDùÿ¸ŠÓ ÝÑÄu{îïõØ»8Þ Ž×gÛ»1.9Í 4/Óù6§œ§ë%7`p˾ G¢½°“JžÀj¦}%%H©D+ L†J}! ƒ¯4 Áฒ•G lø ¸Õ3þHÈy8 Í "ÑÖ
Below is the code I've written:
Thanks in advance for your help!