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.
I have verified the GAQL that you have shared, and I could see that it is validated successfully in the Query Validator. Also, I tried to replicate your issue on my end and I'm able to fetch the data successfully while executing the given GAQL query with some random account without any errors. So, I request you try running the query again and let us know how it goes at your end. You can try making a request using the Method:customers.googleAds.search or Method:customers.googleAds.searchStream.
if you still face any issues, kindly provide us with the uncropped UI screenshot by highlighting the fields that you are trying to retrieve from the ad_group_ad report via the Google Ads API.
You can send the details via Reply privately to the author option, or direct private reply to this email.
![]() |
Google Ads API Team |
[2025-02-26 10:27:31Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH3zG:ref" (ADR-00289858)
![]() |
Google Ads API Team |
[2025-02-26 17:51:45Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH3zG:ref" (ADR-00289858)