hey
I am trying to get campaigns by api v201101 using php.I create a
Selector object and put 'fields' array in it - Everything is working
well until I try to get campaign stats. According to API docs (http://
code.google.com/intl/pl/apis/adwords/docs/reference/latest/
CampaignService.Selector.html), I add 'CampaignStats' to fields array
- my code below.

      $campaignService = $user->GetCampaignService('v201101');
      // Create selector.
      $selector = new Selector();
      $selector->fields = array('Id', 'Name', 'Status',
'ServingStatus', 'StartDate', 'EndDate', 'CampaignStats');
      $selector->ordering = array(new OrderBy('Name', 'ASCENDING'));
      // Get all campaigns.
      $page = $campaignService->get($selector);

When I run it, I get the following:

      [SelectorError.INVALID_FIELD_NAME @ serviceSelector;
trigger:'CampaignStats'; errorDetails:CampaignStats]

I tried putting campaignStats, Stats, campaign_stats, Stats, stats -
nothing works.

what am I doing wrong?

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

Reply via email to