title: AdWords API PHP - Click Performance Report
body: <p>I am trying to download a click performance report from the AdWords-API. For my example I am only selecting the Date field.</p>
  
  <pre><code>function DownloadCriteriaReportExample(AdWordsUser $user, $filePath) {
    // Load the service, so that the required classes are available.
    $user-&gt;LoadService('ReportDefinitionService', ADWORDS_VERSION);
  
    // Create selector.
    $selector = new Selector();
    $selector-&gt;fields = array('Date');
  
    // Filter out deleted criteria.
    $selector-&gt;predicates[] = new Predicate('Status', 'NOT_IN', array('DELETED'));
  
    // Create report definition.
    $reportDefinition = new ReportDefinition();
    $reportDefinition-&gt;selector = $selector;
    $reportDefinition-&gt;reportName = 'Criteria performance report #' . uniqid();
    $reportDefinition-&gt;dateRangeType = 'YESTERDAY';
    $reportDefinition-&gt;reportType = 'CLICK_PERFORMANCE_REPORT';
    $reportDefinition-&gt;downloadFormat = 'CSV';
  
    // Exclude criteria that haven't recieved any impressions over the date range.
    $reportDefinition-&gt;includeZeroImpressions = FALSE;
  
    // Set additional options.
    $options = array('version' =&gt; ADWORDS_VERSION, 'returnMoneyInMicros' =&gt; TRUE);
  
    // Download report.
    ReportUtils::DownloadReport($reportDefinition, $filePath, $user, $options);
  
    printf("Report with name '%s' was downloaded to '%s'.\n",
        $reportDefinition-&gt;reportName, $filePath);
  }
  </code></pre>
  
  <p>The error I get ist: "ReportDefinitionError.INVALID_FIELD_NAME_FOR_REPORT".
  The same script runs with no problems for the Criteria Performance Report.</p>
  
  <p><a href="https://developers.google.com/adwords/api/docs/appendix/reports#click" rel="nofollow">https://developers.google.com/adwords/api/docs/appendix/reports#click</a></p>