Hi Robert, I think your request isn't working for a couple of reasons. First, there is no "criterionId" field on the AdGroupCriterionSelector, you must use the "idFilters" field:
http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupCriterionService.AdGroupCriterionSelector.html#statsSelector In the AdGroupCriterionIdFilter object you need to set both the adGroupId and the criterionId field, since both are required to pinpoint the keyword: http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupCriterionService.AdGroupCriterionIdFilter.html Lastly, to get statistics you must pass in a StatsSelector object with a date range: http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupCriterionService.StatsSelector.html Best, - Eric Koleda, AdWords API Team On Jan 13, 5:38 pm, "robert.johans...@adwire.se" <robert.johans...@adwire.se> wrote: > Hi, > > I'm trying to retrieve statistics for a keyword using the criterion > service, but for some reason I'm unable to make it work. My request > looks like this: > > '<get xmlns="' . $namespace . '">' . > '<selector>' . > '<criterionId>' . $keyword_id . '</criterionId>' . > '<criterionUse>' . $criterion_use . '</criterionUse>' . > '<userStatuses>' . $userStatuses . '</userStatuses>' . > '</selector>' . > '</get>'; > > Am I missing something here? > > Thanks in advance! > > Best Regards, > > Robert
-- 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-...@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.