Where to find the documentations for setFields for setReportType?

42 views
Skip to first unread message

Ken Dan Tinio

unread,
Jan 11, 2018, 3:45:24 PM1/11/18
to AdWords API Forum
Like for example 

'CampaignId', 'AdGroupId', 'Id', 'Criteria', 'CriteriaType', 'Impressions', 'Clicks', 'Cost'

this fields are for ACCOUNT_PERFORMANCE_REPORT

but when I tried to change it to CAMPAIGN_PERFORMANCE_REPORT it gives me an error Details: [fieldPath: ; trigger: Id; errorString: ReportDefinitionError.INVALID_FIELD_NAME_FOR_REPORT]

My thoughts are CAMPAIGN_PERFORMANCE_REPORT does not have a field name 'Id'.

Thats why Im looking for the documentations for performance report fields. If you have any idea on how to avoid this, it can help me big time.

Vincent Racaza (AdWords API Team)

unread,
Jan 11, 2018, 11:13:55 PM1/11/18
to AdWords API Forum
Hi Ken,

You are correct, the Id attribute is not a valid attribute in the Campaign Performance Report. You can use the CampaignId attribute instead. Please check this link for all the supported attributes, segments and metrics of this report type.

As additional information, you can refer to this link for the list of all supported report types in the AdWords API. You can check per report type the supported attributes/segments/metrics.

Hope this helps.

Thanks,
Vincent
AdWords API Team

Ken Dan Tinio

unread,
Jan 12, 2018, 5:18:53 AM1/12/18
to AdWords API Forum
I got it. The correct answer is this:

By getting all report fields in a specific report.
Reply all
Reply to author
Forward
0 new messages