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!



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/824b6de0-74be-43f5-bdad-ea3a3054adf0n%40googlegroups.com.
  • Us... Cantare John
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to