Hello Google Ads API Community,
I am working on a GAQL query and need to include an OR condition in the WHERE clause. My query looks like this:
SELECT
search_term_view.resource_name,
campaign.id,
metrics.clicks,
metrics.conversions,
FROM
search_term_view
WHERE
campaign.id IN ('xxxxxxxxx')
AND segments.date = '2024-01-01'
AND (metrics.clicks > 0 OR metrics.conversions > 0)
However, I am receiving an error indicating that the query is not valid. I want to confirm if using the OR operator in the WHERE clause is supported in GAQL, and if so, what the correct syntax would be.
Is it possible to use the OR operator in a GAQL query? If so, can you provide guidance or examples on the correct usage?
Thank you for your assistance!
![]() |
Google Ads API Team |