AWQL: Possible to use IN operator for matching strings that contains a phrase?

60 views
Skip to first unread message

Jonas Bolin

unread,
Jan 2, 2018, 8:07:07 AM1/2/18
to AdWords API Forum
Hello guys,

I would like to run a report where which returns all search terms and their corresponding cost where the query contains one of the following: ['football', 'soccer','rugby']

var query = "select Query, Cost from SEARCH_QUERY_PERFORMANCE_REPORT where Query IN ['football', 'soccer','rugby'] during 20171201,20171231"

Now the above query returns exact matches, but I would like it to return broad matches, where the Query CONTAINS any of the words in the list.

Is this possible in AWQL somehow?

Dhanya Sundararaju (AdWords API Team)

unread,
Jan 2, 2018, 2:00:59 PM1/2/18
to AdWords API Forum
Hi Jonas,

You will be able to use CONTAINS or CONTAINS_IGNORE_CASE to return broad matches for each value. The closest you may be able to get to, is to include all possible search terms in your IN StringSet. Let me know if you have further questions.

Regards,
Dhanya, API AdWords Team
Reply all
Reply to author
Forward
0 new messages