An error has occurred: Report download failed. Underlying errors are Type = 'ReportDefinitionError.INVALID_FIELD_NAME_FOR_REPORT', Trigger = '', FieldPath = 'Conversions'.

122 views
Skip to first unread message

Gavin Wu

unread,
Oct 12, 2015, 8:35:42 AM10/12/15
to AdWords API Forum
I set the fields like this $selector->fields = array('CampaignId', 'CampaignName', 'Conversions') in v201506/Reporting/DownloadCriteriaReport.php

and more code there:
$selector->predicates[] = new Predicate('Status', 'NOT_IN', array('PAUSED'));

  // Create report definition.
  $reportDefinition = new ReportDefinition();
  $reportDefinition->selector = $selector;
  $reportDefinition->reportName = 'Criteria performance report #' . uniqid();
  $reportDefinition->dateRangeType = 'LAST_7_DAYS';
  $reportDefinition->reportType = 'CAMPAIGN_PERFORMANCE_REPORT';
  $reportDefinition->downloadFormat = 'CSV';

and error return back:

An error has occurred: Report download failed. Underlying errors are Type = 'ReportDefinitionError.INVALID_FIELD_NAME_FOR_REPORT', Trigger = '', FieldPath = 'Conversions'.

Umesh Dengale

unread,
Oct 12, 2015, 2:23:26 PM10/12/15
to AdWords API Forum
Hello,

The Conversions field is newly added to the reports in the v201509. You are getting INVALID_FIELD_NAME_FOR_REPORT error as you are using the v201502 and this field is only available in the v201509. When you upgrade to v201509 then you will be able to use this reporting field. Please check out conversion reporting section of the release notes. Please also note that you can check the fields available for a specific version by using the ReportDefinitionService. Just make the call using the version you'd like information for.

Thanks,
Umesh, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages