Dear all,


I am a newbie in using AdWords API. I would like to develop a PHP code
for account reporting (not more, for the time being). As far as I have
understood, v13 is still needed for ReportService.



Here is my config:  PHP Version 5.3.2 & apility v13.

I also have v200909 ready and working with (e.g.) GetAllCampaigns.php
from example/

  $> php GetAllCampaigns.php

  Campaign with name "Interplanetary Cruise #1272524178" and id
"194814" was found.

  Campaign with name "Interplanetary Cruise #1272873677" and id
"199168" was found.

  Campaign with name "Interplanetary Cruise #1273036983" and id
"202730" was found.



I would like to use the Sandbox for my developments.

When I try a "getAccountXmlReport" (see code below), I receive an
empty report while I was expecting a filled-in report with random
data.

Should I then first add data in some way (with v200909) in the SandBox
or is it simply my way to get the report that is bad?



Thanks a lot in advance for your replies!



------test.php----------------------

<?php

require_once dirname(__FILE__).'/apility.php';



$apilityUser = new APIlityUser();

print_r($apilityUser->getManagersClientAccounts());

echo 'Header = ' . $apilityUser->getHeader() . "\n";



$report = $apilityUser->getCampaignXmlReport(

      'Interplanetary Cruise #1272524178',

      '2008-04-01',

      '2010-05-01',

      array('Account','clicks','imps'),

      array("monthly")

);

file_put_contents("report.xml", $report);

?>





------terminal_output.php-------------

Array

(

    [0] => [email protected]

    [1] => [email protected]

    [2] => [email protected]

    [3] => [email protected]

    [4] => [email protected]

)

Header = <email>[email protected]</email>

              <password>azerty123</password>

              <clientEmail>[email protected]</clientEmail>

              <developerToken>[email protected]++eur</developerToken>

              <applicationToken>doesnotmatter</applicationToken>

              <useragent>Google APIlity PHP Library for AdWords</
useragent>



------report.xml----------------------

<?xml version="1.0" standalone="yes"?>

<report><table><columns><column name="campaign"/><column
name="adgroup"/><column name="agStatus"/><column name="imps"/><column
name="clicks"/><column name="ctr"/><column name="cpc"/><column
name="cost"/><column name="pos"/></columns><rows/></
table><totals><grandtotal imps="0" clicks="0" ctr="0.0" cpc="0"
cost="0" pos="0.0"/></totals></report>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to