5 messages in com.googlegroups.adwords-apiError/Bug getCreativeStats
FromSent OnAttachments
Steven12 Jan 2007 06:16 
Steven22 Jan 2007 01:26 
Andy24 Jan 2007 04:15 
Steven24 Jan 2007 09:29 
Andy25 Jan 2007 00:42 
Subject:Error/Bug getCreativeStats
From:Steven (i.@webtrekk.de)
Date:01/12/2007 06:16:15 AM
List:com.googlegroups.adwords-api

Hello,

i use the getCreativeStats function and when I compare the results from this function with the results in the adwords account they are really different. Have anybody the same problem ? Is it possible that it is a API bug ?

In my accounts, I have my timezone set at GMT+1, and when i use the function the inPST flag is set to false.

I wrote a small test script in php: (It cant' be easyer)

<?php require_once('apility.php');

echo "<h3> Test getCreativeStats </h3>" ;

$yesterday = gmdate("Y-m-d", mktime(date("H"), date("i"), date("s"), date("m") , date("d") - 1 , date("Y")));

echo "Start Date: ".$yesterday."<br /><br />" ; echo "End Date: ".$yesterday."<br /><br />" ;

$creativeObject = createCreativeObject(369564407, 561631667, false); print_r($creativeObject->getCreativeStats($yesterday, $yesterday));

echo "<br />" ; echo "<br />" ;

$creativeObject = createCreativeObject(369564407, 597280187, false); print_r($creativeObject->getCreativeStats($yesterday, $yesterday)); ?>

That gives me this output in a browser:

Test getCreativeStats Start Date: 2007-01-10

End Date: 2007-01-10

Array ( [averagePosition] => 0.0 [clicks] => 1 [conversionRate] => 0.0 [conversions] => 0 [cost] => 0.03 [id] => 561631667 [impressions] => 4 )

Array ( [averagePosition] => 0.0 [clicks] => 0 [conversionRate] => 0.0 [conversions] => 0 [cost] => 0 [id] => 597280187 [impressions] => 4 )

... Ok and now a screenshot from the google adwords account: http://s148762700.onlinehome.fr/screen.png

You can see the the dates are the same, but not the values, and it's very annoying. I never had the right values.

It's the same problem in different accounts.