Send report format .html

58 views
Skip to first unread message

My Name

unread,
Sep 17, 2014, 6:03:26 AM9/17/14
to adwor...@googlegroups.com
Dear all,

I'm looking API send AdWords reports in .html format. Is there any available resource to help me with this? 

Thank you

Ray Tsang (AdWords API Team)

unread,
Sep 17, 2014, 2:10:02 PM9/17/14
to adwor...@googlegroups.com
Hi,

You will need to download the report in a pre-defined format, and then reformat it as HTML, for example.

Thanks,

Ray

Sage Lewis

unread,
Sep 28, 2014, 12:58:25 PM9/28/14
to adwor...@googlegroups.com
I'm successfully creating a csv file for my report and displaying it in html format with this code:
<?php
echo "<table>\n\n";
$f = fopen("report.csv", "r");
while (($line = fgetcsv($f)) !== false) {
        echo "<tr>";
        foreach ($line as $cell) {
                echo "<td>" . htmlspecialchars($cell) . "</td>";
        }
        echo "</tr>\n";
}
fclose($f);
echo "\n</table></body></html>";
?>

The issue I'm running into is: 'returnMoneyInMicros'. 

All my monetary data is displaying in microformats.

Do you think there is any way I can solve this by simply converting my csv file to html. Or do you think I'm going to need to pull the data into something like mysql and parse it there?

Thanks!

Anash P. Oommen (AdWords API Team)

unread,
Sep 29, 2014, 3:25:48 PM9/29/14
to adwor...@googlegroups.com
Hi Sage,

You can divide the value by 1000000 before printing the html. Also, php has pretty good support for parsing csv.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

Sage Lewis

unread,
Sep 29, 2014, 4:38:59 PM9/29/14
to adwor...@googlegroups.com
That's easy for you to say :)

I'm still pretty new to parsing csv files. But I am getting closer.

I'll keep working on that.

Thanks for your help!

Anash P. Oommen (AdWords API Team)

unread,
Sep 30, 2014, 10:21:03 AM9/30/14
to adwor...@googlegroups.com
Hi Sage,

Feel free to ask on this thread if you have more questions.

Cheers,
Anash P. Oommen,
AdWords API Advisor

Reply all
Reply to author
Forward
0 new messages