Hi,

Thank you for reaching out to the Google Ads API support team.

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.

Thanks,

Google Ads API Team


Feedback
How was our support today?


[2025-02-26 10:27:31Z GMT] This message is in relation to case 
"ref:!00D1U01174p.!5004Q02vH3zG:ref" (ADR-00289858)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/adwords-api/JHKRW000000000000000000000000000000000000000000000SSAD1V007x9ostmRQ8yy1M0Fo-4Lpg%40sfdc.net.
  • Se... Álvaro Pineda
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Álvaro Pineda

Reply via email to