Google Ads API V1.0 - CONTAINS operator

422 views
Skip to first unread message

ja...@searchkings.ca

unread,
Mar 26, 2019, 4:59:30 PM3/26/19
to AdWords API and Google Ads API Forum
Hi Google Ads team,

I keep on running into an 'invalid argument' error whenever I try to build a query using the CONTAINS operator (https://developers.google.com/google-ads/api/docs/query/grammar).

e.g. WHERE campaign.name CONTAINS NONE ('Example')

Referring to the interactive query builder, the filters don't seem to support it (https://developers.google.com/google-ads/api/docs/query/interactive-gaql-builder). Is this feature available?

Regards,

googleadsapi...@google.com

unread,
Mar 27, 2019, 2:27:49 AM3/27/19
to AdWords API and Google Ads API Forum
Hi Jason,

To better investigate this, could you provide the complete request and response logs when requesting using the Google Ads Query Language with CONTAINS NONE operator? Please reply via Reply privately to author. Also, I'm afraid the CONTAINS NONE operator is not available in the Interactive Google Ads Query Builder.

Thanks and regards,
Luis
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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 "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/a31215d8-69a1-48b2-9034-2bb0b6cafc8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Martin

unread,
Mar 28, 2019, 11:51:40 AM3/28/19
to AdWords API and Google Ads API Forum
If you want to get campaigns whose names don't contain "Example", then you want to use:

 `WHERE campaign.name NOT LIKE "%Example%"`
Reply all
Reply to author
Forward
0 new messages