SEARCH_QUERY_PERFORMANCE_REPORT: ReportDefinitionError.INVALID_FIELD_NAME_FOR_REPORT

1,593 views
Skip to first unread message

Akoudad Marvin

unread,
Oct 28, 2014, 1:43:28 PM10/28/14
to adwor...@googlegroups.com
Hello !

I just begin to use Adwords API and more specifically the reports.

But  SEARCH_QUERY_PERFORMANCE_REPORT doesn't work, in fact i want to get Query, Clicks, etc... but i've got this error: ReportDefinitionError.INVALID_FIELD_NAME_FOR_REPORT (I verified this fields are in the report and for information,  KEYWORDS_PERFORMANCE_REPORT works)

Log:

<reportDefinition>
  <selector>
    <fields>Query</fields>
    <fields>Clicks</fields>
    <fields>Impressions</fields>
    <fields>Ctr</fields>
    <fields>AverageCpc</fields>
    <fields>Cost</fields>
    <fields>AveragePosition</fields>
    <fields>ConversionsManyPerClick</fields>
    <predicates>
      <field>Status</field>
      <operator>NOT_IN</operator>
      <values>REMOVED</values>
    </predicates>
    <dateRange>
      <min>20141024</min>
      <max>20141024</max>
    </dateRange>
  </selector>
  <reportName>Search_query_performance_report_2014_10_24</reportName>
  <reportType>SEARCH_QUERY_PERFORMANCE_REPORT</reportType>
  <dateRangeType>CUSTOM_DATE</dateRangeType>
  <downloadFormat>CSV</downloadFormat>
  <includeZeroImpressions>false</includeZeroImpressions>
</reportDefinition>

Response Code: 400
Error Message: Report download failed. Underlying errors are 
Type = 'ReportDefinitionError.INVALID_FIELD_NAME_FOR_REPORT', Trigger = 'Status', FieldPath = ''. 

Any idea for help ?

Thanks and good day.

Akoudad Marvin

unread,
Oct 29, 2014, 6:35:34 AM10/29/14
to adwor...@googlegroups.com
Resolve ! I remove filter STATUS (i forget because i used for another Report).

Michael Cloonan (AdWords API Team)

unread,
Oct 29, 2014, 9:31:53 AM10/29/14
to adwor...@googlegroups.com
Hello,

If you look at the error message you will see that the "Trigger" is the field named "Status". If you look at the report definition for this report, you will see that there is no field named "Status". You are not selecting this field, but you are trying to filter on it. You can only select or filter on fields that exist within the report definition.

Regards,
Mike, AdWords API Team

Akoudad Marvin

unread,
Oct 29, 2014, 9:42:03 AM10/29/14
to adwor...@googlegroups.com
You're right and that work  !

Thank's for your response.
Reply all
Reply to author
Forward
0 new messages