Hi, I am running an Adwords script in the scripting console which posts 
data to a spreadsheet.

I would like to obtain a total for conversions many per click, but the 
metric seems to be unavailable in the Stats class, which I am currently 
obtaining my totals from by iterating through the campaign object i.e.

  while (campaignIterator.hasNext()) {
    var campaign = campaignIterator.next();
    var clicks = campaign.getStatsFor('LAST_MONTH').getClicks();
    var impressions = campaign.getStatsFor('LAST_MONTH').getImpressions();
    var cost = campaign.getStatsFor('LAST_MONTH').getCost();
    //var conversions = 
campaign.getStatsFor('LAST_MONTH').getConversionsManyPerClick();//this 
doesn't work
    tot_clicks += clicks;
    tot_impressions += impressions;
    tot_cost += cost;
    //tot_conv += conversions;
    count++;
  }

I know it is possible to obtain the statistic by running 
a CAMPAIGN_PERFORMANCE_REPORT but the problem with this is I can't find a 
way to get the data from the object apart from exporting it to a 
spreadsheet, in which case it is segmented by campaign. I need to get hold 
of the data before this so I can sum it.

I ideally need to get the conversion count (many) in a variable to post to 
my spreadsheet, is there a way of doing this? Or a workaround with current 
metrics?

Thanks

Sarah

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to