Hi,
Thank you for raising your concern to the Google Ads API team.
It appears that you've encountered the PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE error, this happens when a metric incompatible with the main resource or other selected segmenting resources was included in the SELECT or WHERE clause.
To confirm, the following attributes below are not compatible with the campaign resource, you can refer here: https://developers.google.com/google-ads/api/fields/v14/campaign, these attributes are not available if you specify "campaign" on your FROM clause for your query. You can check this by setting the drop-down option to "Yes, it is" under "Is campaign specified in the FROM clause of your query?"
If the information you are trying to retrieve is shown in the Google Ads UI, kindly provide the Full and uncropped screenshot of the Google Ads UI showing the data that you want to get via API, so we can provide accurate guidance. Make sure to send this privately via the "Reply to Author" option or through our email (googleadsa...@google.com) instead.
![]() |
Google Ads API Team |