5 messages in com.googlegroups.adwords-apiRe: AdWords API Re: API to Display Im...
FromSent OnAttachments
mich...@sbcglobal.net16 Oct 2006 06:55 
Peer Jakobsen16 Oct 2006 12:41 
Mike17 Oct 2006 09:15 
Mike17 Oct 2006 10:31 
Richard Jones18 Oct 2006 02:14 
Subject:Re: AdWords API Re: API to Display Impressions
From:Richard Jones (r.@annexia.org)
Date:10/18/2006 02:14:22 AM
List:com.googlegroups.adwords-api

On Tue, Oct 17, 2006 at 09:15:45AM -0700, Mike wrote:

On Oct 16, 3:41 pm, "Peer Jakobsen" <peer@gmail.com> wrote:

There are two ways to get stats like that.

1. Schedule a keyword report using the report service or 2. Use the getCriterionStats method on the criterion service.

Best regards,

Peer Jakobsen

Fatal error: Call to undefined function getCriterionStats() in /var/www/htdocs/google/adwords/impressions.php on line 99

I get an undefined call when I try to use getCriterionStats(). I just downloaded the API a few days ago so I have the latest version. Any thoughts about where I am going wrong?

getCriterionStats definitely works, I've just tried it:

# getCriterionStats criterion_svc 408226864_l [257306284_L] today today false;; - : CriterionService_types.statsRecord list = [{statsRecord_averagePosition = 0.; statsRecord_clicks = 0L; statsRecord_conversionRate = 0.; statsRecord_conversions = 0L; statsRecord_cost = 0L; statsRecord_id = 257306284L; statsRecord_impressions = 0L}]

By the way, to Google (on a similar subject), thanks for adding getCreativeStats to v5/v6:

# getCreativeStats creative_svc 408226864_l [656484124_l] one_month_ago today
false;; - : CreativeService_types.statsRecord list = [{statsRecord_averagePosition = 0.; statsRecord_clicks = 1L; statsRecord_conversionRate = 0.; statsRecord_conversions = 0L; statsRecord_cost = 940000L; statsRecord_id = 656484124L; statsRecord_impressions = 3913L}]

Rich.