Hello, I've installed the AdWords API php library and I was trying to
modify the GetAllCampaigns example in order to retrieve also the
budget of the campaign. I've tried this method but I get an error:

// Create selector.
  $selector = new Selector();
  $selector->fields = array('Id', 'Name','Status', 'Budget');
  $selector->ordering = array(new OrderBy('Name', 'ASCENDING'));

  // Get all campaigns.
  $page = $campaignService->get($selector);

  // Display campaigns.
  if (isset($page->entries)) {
    foreach ($page->entries as $campaign) {
      print 'Campaign with name "' . $campaign->name . '" and id "'
          . $campaign->id . "\" was found.\n Campaign budget is ".
$campaign->budget;
    }
  }
can someone please help me with this? Thank you!

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

Reply via email to