Unclear error message

29 views
Skip to first unread message

di...@easyleads.com

unread,
Oct 31, 2016, 8:42:55 AM10/31/16
to AdWords API Forum
Hi,

By mistake I've requested SearchImpressionShare (just two fields are enough - Id, SearchImpressionShare)  in AD_PERFORMANCE_REPORT, which is not supported. The problem is that there is a bug in the error message, it doesn't display the problematic fields, while it works OK with other fields. Just FYI

HTTP Response Code: 400, FieldPath: Id, Trigger: Cannot select a combination of Id and , Type: ReportDefinitionError.INVALID_FIELD_NAME_FOR_REPORT
at com.google.api.ads.adwords.lib.utils.v201605.DetailedReportDownloadResponseException$Builder.build(DetailedReportDownloadResponseException.java:35)
at com.google.api.ads.adwords.lib.utils.AdHocReportDownloadHelperImpl.handleResponse(AdHocReportDownloadHelperImpl.java:111)
at com.google.api.ads.adwords.lib.utils.AdHocReportDownloadHelperImpl.downloadReport(AdHocReportDownloadHelperImpl.java:55)
at sun.reflect.GeneratedMethodAccessor148.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.api.ads.common.lib.utils.AdsUtilityInvocationHandler.handleInvocation(AdsUtilityInvocationHandler.java:46)
at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:87)
at com.sun.proxy.$Proxy78.downloadReport(Unknown Source)
at com.google.api.ads.adwords.lib.utils.AdHocReportDownloadHelper.downloadReport(AdHocReportDownloadHelper.java:49)
at com.google.api.ads.adwords.lib.utils.v201605.ReportDownloader.downloadReport(ReportDownloader.java:88)

Shwetha Vastrad (AdWords API Team)

unread,
Oct 31, 2016, 5:52:17 PM10/31/16
to AdWords API Forum
Hi,

If you include fields that are available in a report, but not compatible with each other, the error response indicates that this combination of fields cannot be used. If you include fields which aren't available in a report, you'll encounter an INVALID_FIELD_NAME_FOR_REPORT error without this combination of fields. When you encounter this error, ensure that all specified field names are available for the report type you are using and are spelled correctly. In the meantime, I'll get in touch with the team to provide a clearer error message.

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages