I am trying to create a simple report in PHP using the sample code found here:
https://developers.google.com/doubleclick-publishers/docs/reportingI have built my report, and I am successfully able to download the report in .csv.gz format as shown in the example. If I manually unzip the gzipped file and open it in Excel I can see that the results are as I expect them to be. However, I need to manipulate this data in PHP. The documentation suggests the following code:
$report = fopen($filePath, 'r');
while (!feof($report)){
echo fgetcsv($report);
}
fclose($report);
However, this code of course doesn't work because the file is gzipped. Please could you advise if there is a way to get this data in a non compressed format, or to uncompress the file in PHP. I would also suggest your documentation should be updated to reflect this.