Can I match any campaign whose name contains "sale" without listing them all?
We spin up a lot of campaigns and the names all include a keyword, for example everything with "sale" in it. I do not want to reopen an audience and add a new value every time a campaign launches.
Can CQL match on a pattern in the campaign name instead of exact values, so I can optimise the workflow and stop babysitting the list?
2 answers
Use matches instead of is:
campaign's name matches "sale"That catches "summer-sale", "flash-sale-2026", anything containing the substring, so new campaigns are covered the moment they launch as long as they follow the naming pattern. is requires the whole value to be equal, which is why the exact list kept needing updates. The matches vs is thread has the rule of thumb for when to use each.
That saved me the manual updates entirely, the audience just picks up new launches now. Exactly what I was after.
If you ever need to narrow it further, campaign also exposes source, medium, content and term, so you can pattern-match the name and still pin the source, e.g. combine it with campaign's source is "google". Same approach as the UTM campaign audience.