> For the complete documentation index, see [llms.txt](https://docs.adalysis.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.adalysis.com/meta-facebook/managing-meta-accounts/rules.md).

# Rules

Let rules check your campaigns, ad sets, and ads every night, then suggest or make changes

A rule looks at your campaigns, ad sets, or ads after each nightly update and finds the ones that meet your conditions. Then it does one thing with them: turns them off, turns them on, raises or lowers their daily budget, bid, or spending limit, adds or removes a [label](https://docs.adalysis.com/meta-facebook/managing-meta-accounts/labels.md), or simply tells you about them.

By default a rule only **suggests**: its changes wait for you to review, and nothing changes until you apply them. Once you trust a rule, you can let it apply its changes itself.

Rules belong to one ad account.

## The Rules screen

![Rules screen](https://3203600314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGlXujWJyreRidNjZDCw2%2Fuploads%2Fuol53ShYnTDUdD342pvP%2FRU-01.png?alt=media)

* ① **Rules**, under **Performance**
* ② **Create rule**
* ③ **Review changes**, with the number of changes waiting
* ④ the status dot: click it to turn the rule on or off
* ⑤ the pen, to edit the rule
* ⑥ **Details** of the rule's last run
* ⑦ the rule's mode
* A rule that is **On** runs every night. Turning it off drops any changes it has waiting for review.
* Team members with view-only access see the rules and what they found, but can't change or apply anything.

## Create a rule

![Create rule menu](https://3203600314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGlXujWJyreRidNjZDCw2%2Fuploads%2F98gmMgvGIIbYXzeVqKqW%2FRU-02.png?alt=media)

① Click **Create rule**, then ② **Define rule** to start from scratch, or **From a template** (see [Templates](#templates)).

![Create rule pop-up](https://3203600314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGlXujWJyreRidNjZDCw2%2Fuploads%2F8TFu6v6rEDxU9gAsDF8X%2FRU-03.png?alt=media)

* ③ **Name**: the rule's name.
* ④ **Applies to**: **Campaigns**, **Ad sets**, or **Ads**. Up to 5 filters (**Add filter**): on the item's own name, on the names of what it sits under, or on its labels (**Label** **has** or **doesn't have** a label).
* ⑤ **When**: up to 5 conditions (**Add condition**), and every one must hold. Figures: **Spend**, **Impressions**, **Outbound clicks**, **Outbound CTR**, **Conversions**, **Conversion rate**, **Cost per conversion**, **ROAS**. For campaigns only: **Spending limit used**. For ads only: **Fading (CTR or conversion rate falling)** and **Disapproved by Meta**.
* ⑥ **Over**: **Yesterday**, **Last 3 days**, **Last 7 days**, **Last 14 days**, or **Last 30 days**, each ending yesterday. Rules never use today's figures.
* ⑦ **Conversions**: which conversions the conversion figures count, **The account's default** unless you choose a custom conversion or an event. It shows only when a condition uses conversions.
* ⑧ **Then**: one action (see the table below).
* ⑨ **Mode**: **Suggest** (the default) or **Apply automatically** (see [Let a rule apply its changes](#let-a-rule-apply-its-changes)).
* ⑩ **Notify**: ticked (the default), what the rule finds is also sent out, by email or the other channels set for **Performance monitor alerts** in [Notifications](https://docs.adalysis.com/meta-facebook/managing-meta-accounts/notifications.md). Unticked, it shows in the app only.
* ⑪ **Save**.
* **Apply to other accounts** creates the same rule in up to 200 accounts. It's offered only when you create a rule, and only when you have other accounts. A rule that counts a custom conversion can't be copied, because a custom conversion belongs to one account.

The actions:

| Action                                                   | Applies to                  | Settings                                                               |
| -------------------------------------------------------- | --------------------------- | ---------------------------------------------------------------------- |
| **Turn off**, **Turn on**                                | Campaigns, ad sets, and ads |                                                                        |
| **Raise daily budget by**, **Lower daily budget by**     | Campaigns and ad sets       | 1% to 50%, with an optional **never above** / **never below** amount   |
| **Raise bid by**, **Lower bid by**                       | Ad sets                     | 1% to 50%, with an optional **never above** / **never below** amount   |
| **Raise spending limit by**, **Lower spending limit by** | Campaigns                   | 1% to 50%, with an optional **never above** / **never below** amount   |
| **Add label**, **Remove label**                          | Campaigns, ad sets, and ads | The label's name: pick one of the account's labels, or type a new name |
| **Notify only**                                          | Campaigns, ad sets, and ads |                                                                        |

Good to know:

* **Turn off** only finds items that are on, and **Turn on** only items that are off.
* An item with no delivery in the window has no figures, so it meets no condition. An item that delivered without converting counts as zero conversions, so **Conversions at most 0** finds it.
* The **Fading** condition uses the ad account's [Fading settings](https://docs.adalysis.com/meta-facebook/performance/ads/fading-ads.md), not the rule's **Over** days, so a rule finds the same ads the **Fading** column shows.

### Spending limit used

**Spending limit used** compares what a campaign has spent with its campaign spending limit, as a percentage: **at least** or **at most** a number, for example **Spending limit used at least 90%**.

* It isn't a figure over the **Over** days. It is the campaign's spend so far against its limit.
* A campaign without a spending limit never meets it.
* The rule's reason shows the figures, for example "Spending limit used 92.0% (£4,600.00 of £5,000.00)".

### Bid and spending limit actions

* **Raise bid by** and **Lower bid by** change ad sets that use **Bid cap** or **Cost per result goal**. Ad sets on **Highest volume** have no bid, and rules don't change a **ROAS goal**: both are skipped, with the reason.
* A lowered bid never goes below Meta's lowest bid.
* **Raise spending limit by** and **Lower spending limit by** only find campaigns that are on and already have a spending limit. A rule never adds a spending limit to a campaign that has none.
* A lowered spending limit never goes below what the campaign has spent plus a day's average spend. The day's average is the campaign's spend over the rule's **Over** days, divided by the number of days. If the limit is already at or below that, the campaign is skipped, with the reason.
* For an account in US dollars, a spending limit never goes below $100.00, Meta's lowest limit.

### Label rules

A rule whose action is **Add label** or **Remove label** changes Adalysis labels only, never anything in Meta.

* **It needs no condition.** Without one, it labels everything its **Applies to** filters find, so it needs at least one name or label filter. Its **When** column then reads "No condition: what Applies to finds".
* **Add label** only finds items that don't have the label yet, and **Remove label** only items that have it. Items that are on and items that are off are both found.
* Labels are matched by name, without regard to case. If the account has no label with that name, **Add label** creates it the first time it adds it. A rule copied with **Apply to other accounts** does the same in each account.
* It doesn't need a Meta login that can manage the account, in Suggest mode or Automatic mode.
* In **Review changes**, a label change reads "+ Brand" or "− Brand".

![Create rule pop-up, Add label](https://3203600314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGlXujWJyreRidNjZDCw2%2Fuploads%2Fq6lCphEF8hH6AuTqeyZZ%2FRU-08.png?alt=media)

① **Applies to** **Campaigns**, with a **Campaign name** **contains** "brand" filter. ② **Then**: **Add label**. ③ The label's name: type it, or pick one of the account's labels. ④ With a label action, the conditions are optional. ⑤ In **Apply automatically**, the rule adds or removes the label itself, up to 1,000 a night.

### Templates

Every template starts in Suggest mode. Spend amounts are in the account's currency, so adjust them to your account.

| Template                                         | Applies to | When                                                                     | Then                        |
| ------------------------------------------------ | ---------- | ------------------------------------------------------------------------ | --------------------------- |
| **Raise budget of converting ad sets**           | Ad sets    | Conversions at least 10, last 7 days                                     | Raise daily budget by 15%   |
| **Turn off ad sets that don't convert**          | Ad sets    | Spend at least 100 and Conversions at most 0, last 14 days               | Turn off                    |
| **Turn off fading ads**                          | Ads        | Fading                                                                   | Turn off                    |
| **Raise spending limit of converting campaigns** | Campaigns  | Spending limit used at least 90% and Conversions at least 1, last 7 days | Raise spending limit by 20% |
| **Report disapproved ads**                       | Ads        | Disapproved by Meta                                                      | Notify only                 |

![Start from a template pop-up](https://3203600314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGlXujWJyreRidNjZDCw2%2Fuploads%2FbwOLdC8wyI34D8Y8zRWA%2FRU-04.png?alt=media)

① **Use this template** opens the rule, filled in, for you to adjust and save. ② says what the template does, and ③ its settings.

## Review and apply suggestions

Each night a rule in Suggest mode replaces its earlier suggestions with what it finds. A suggestion waits until the rule's next run, two days at most. If the rule's **Notify** box is ticked, the "What your Meta rules found" email links straight to them.

Click **Review changes** to see them. Tick the changes you want, then click **Apply selected** or **Dismiss selected**. Each change shows the rule that suggested it, the change and why.

* Every change is ticked when the pop-up opens, except those with a **Warning**, such as **Last ad on in its ad set**. Tick those on purpose.
* A dismissed change comes back only if the rule's next run finds it again.
* Before each change is sent, Adalysis checks the account as it is now. If something changed since the rule ran, for example the budget, bid, or spending limit was edited in Ads Manager, the change is **Not changed**, with the reason. If Meta refuses it, you see Meta's message.
* A change that Meta's hourly limit held back stays waiting, so you can try again later.
* Label changes are made in Adalysis, so they apply even when the account's Meta login can only view it.

## Let a rule apply its changes

Run a rule in Suggest mode for a while first. When its suggestions are the ones you'd apply anyway, switch it to automatic.

![Edit rule pop-up, Mode](https://3203600314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGlXujWJyreRidNjZDCw2%2Fuploads%2FeC1adE9MBWDiSsm5ZCtj%2FRU-06.png?alt=media)

① Choose **Apply automatically**. ② **Notify**, as when you create a rule. ③ Click **Save**.

**Apply automatically** needs a Meta login that can manage the ad account, except for a label rule. It isn't offered for a **Notify only** rule.

### Safeguards

* Each rule changes at most 25 items a night, the most at stake first: the ads that faded most, otherwise the ones that spent most. A label rule changes at most 1,000.
* An automatic rule doesn't change the same item again for 3 days, and leaves an item another rule changed that night.
* A budget, bid, or spending limit changes by at most 50% in one step, and stays within the rule's own **never above** or **never below** amount. A budget also stays within the [daily budget limits](https://docs.adalysis.com/meta-facebook/budgets/manage-budgets.md#daily-budget-limits).
* A lowered bid never goes below Meta's lowest bid. A lowered spending limit never goes below what the campaign has spent plus a day's average spend.
* Label rules skip the 3-day wait and the check for another rule's change that night, and their changes don't count towards either for other rules.
* If that night's update of the ads' figures didn't finish, rules don't run that night.

### What rules skip

Budget rules change daily budgets only. They skip:

* lifetime budgets;
* ad set budgets in a campaign that carries the budget (CBO), and campaigns whose ad sets carry the budgets (ABO);
* budgets that [Auto manage](https://docs.adalysis.com/meta-facebook/budgets/auto-manage-and-auto-pause.md) sets;
* anything [Auto pause](https://docs.adalysis.com/meta-facebook/budgets/auto-manage-and-auto-pause.md#auto-pause) turned off. Auto pause turns it back on itself.

Bid rules skip ad sets on **Highest volume** or a **ROAS goal**, and spending limit rules only look at campaigns that have a spending limit (see [Bid and spending limit actions](#bid-and-spending-limit-actions)).

## Rule run result

The **Rule run result** column sums up each rule's last run. When a rule didn't run, it says why.

![Rule run result pop-up](https://3203600314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGlXujWJyreRidNjZDCw2%2Fuploads%2Fuxc3Pl2ZjEmfkoK77XSC%2FRU-07.png?alt=media)

① Click **Details** under a rule's result. Each line shows ② the campaign, ad set or ad, ③ the change, ④ its status, and ⑤ the reason, with the figures the rule saw.

| Status                     | Meaning                                                         |
| -------------------------- | --------------------------------------------------------------- |
| **Changed**                | The change was made: in Meta, or to the item's Adalysis labels. |
| **Waiting for review**     | The change waits under **Review changes**.                      |
| **Found**                  | A **Notify only** rule found it.                                |
| **Skipped**                | The rule couldn't act on it. The reason says why.               |
| **Meta did not accept it** | Meta refused the change.                                        |
| **Dismissed**              | Someone dismissed the change.                                   |
| **Expired**                | The rule's next run replaced it before anyone decided.          |

Every change a rule makes is listed in [Change history](https://docs.adalysis.com/meta-facebook/managing-meta-accounts/change-history.md), naming the rule.
