title: How to get all campaigns details with google adwords api?
body: <p>i can get the list of campaigns using the google adwords api ( with a test account ) , i would like to get all the details for each campaigns ( impressions , clicks , budget , cost , cpc , ... ) using the api , how to do that ?
  Trying with this :</p>
  
  <pre><code>  // Get the service, which loads the required classes.
    $campaignService = $user-&gt;GetService('CampaignService', ADWORDS_VERSION);
  
    // Create selector.
    $selector = new Selector();
    $selector-&gt;fields = array('Id', 'Name','Impressions', 'Clicks');
    $selector-&gt;ordering[] = new OrderBy('Name', 'ASCENDING');
  
    // Create paging controls.
    $selector-&gt;paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE);
  
    do {
      // Make the get request.
      $page = $campaignService-&gt;get($selector);
  
      // Display results.
      if (isset($page-&gt;entries)) {
        foreach ($page-&gt;entries as $campaign) {
          printf("Campaign with name '%s' and ID '%s' and Impressions %s was found.\n",
              $campaign-&gt;name, $campaign-&gt;id,$campaign-&gt;impressions);
        }
      } else {
        print "No campaigns were found.\n";
      }
  
      // Advance the paging index.
      $selector-&gt;paging-&gt;startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE;
    } while ($page-&gt;totalNumEntries &gt; $selector-&gt;paging-&gt;startIndex);
  </code></pre>
  
  <p>But getting this error :</p>
  
  <pre><code>An error has occurred: [SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'Impressions', SelectorError.INVALID
  _FIELD_NAME @ serviceSelector; trigger:'Clicks']
  </code></pre>
  
  <p>Thanks.</p>