Skip to main content

How to combine conditions with AND, OR and groups

This article will guide you through building a rule that only acts when several things are true at once, using groups.

Written by Team adnova

Most rules test one thing. The useful ones test several, and not always with the same logic. Groups let you write "this and that, or this other thing" without creating four separate rules.

Groups work the same way in the Filter section and on a task's conditions.

Switch between AND and OR

Every group has a green bar down its left side showing its join. Click it to switch the whole group between AND and OR.

  • AND means every row in the group has to be true.

  • OR means any one row is enough.

Add a group inside a group

Click + Add Group and you get a second group nested inside the first, with its own AND/OR. That is what lets one rule hold two different kinds of logic.

A worked example. You want to raise the budget on an ad set that is proven, but only once it has enough data to trust:

Level

Join

Rows

Outer group

AND

Spend today is over 50

Purchases today is at least 3

Inner group

OR

ROAS today is above 3

Cost per purchase today is below 20

Read as a sentence: spend over 50 and at least 3 purchases and (good ROAS or cheap purchases). The outer AND is the safety net; the inner OR is the reason to scale.

Put the "has it run long enough" rows in the outer AND group. If you put them in an OR, a brand-new ad set with no data can satisfy the rule on a zero.

Check what you wrote

Click Preview Conditions under the group to read the whole thing back as a sentence. This is the fastest way to catch a group that says something other than what you meant.

Add Description beside it lets you leave a note on the group for whoever opens the rule next.

Tidy the rows

Each row has a drag handle on the left, so you can move rows between groups, and a duplicate and a delete icon on the right.

Common questions

How deep can I nest? Deep enough that the sentence stops being readable first. If Preview Conditions is hard to follow, split the rule in two.

Does the filter work the same way? Yes. The Filter section has the same AND bar and + Add Group. See How to choose which ads a rule watches.

Next

Did this answer your question?