The PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE is encountered because a segment may have been included together with a metric that it is incompatible with in the SELECT or WHERE clause. For more information, you may see this document about segmentation.
With this, we verified the provided GAQL query and found that you are mentioning a few incompatible fields (metrics.average_cost, metrics.clicks, metrics.impressions, etc.) with segments.conversion_action_category. So remove these incompatible fields in the select clause and try again.
I highly recommend you utilize the Google Ads Query Builder and Query Validator to build and validate the queries before hitting the API.
I hope it helps. Please get back to us if you have any further questions or concerns related to the Google Ads API.
![]() |
Google Ads API Team |

.png?part=0.2&view=1)