Re: Keyword Stats in Sandbox

2011-07-25 Thread AdWords API Advisor
Hi Doug,

To test stats, try making a call to a test production account; your code 
seems fine to me.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Keyword Stats in Sandbox

2011-07-22 Thread Doug
I wanted to make sure that I am receiving the correct stats before I move to 
production,

I create my selector like this:

// Create selector.
$selector = new Selector();
$selector->fields = array('Id', 'AdGroupId', 'Text', "Cost", 
"Conversions", "Clicks", "Impressions");
$selector->ordering = array(new OrderBy('AdGroupId', 'ASCENDING'));

And then I grab the stats like this:

$row = array("keyword" => 
$adGroupCriterion->criterion->text,
 "cost" => $adGroupCriterion->stats->cost,
 "conversions" => 
$adGroupCriterion->stats->conversions,
 "clicks" => 
$adGroupCriterion->stats->clicks,
 "impressions" => 
$adGroupCriterion->stats->impressions);

But I am receiving all zeros:

{"keyword":"myspecialkeyword","cost":{"microAmount":0,"ComparableValueType":"Money"},"conversions":0,"clicks":0,"impressions":0}

I thought that I remembered reading somewhere that sandbox generates random 
values for this type of data. If I move to production will these values come 
in as real values? Or does "0" come through even if the selector is 
incorrect?

Thanks!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en