> For the complete documentation index, see [llms.txt](https://docs.amply.tools/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.amply.tools/user-guide/campaigns.md).

# Campaigns

The dashboard campaign reference: how the list view is organized, the per-type options each campaign exposes, the When-step mechanics for repeat rules, frequency limits and Show after, and Built-in campaigns.

> Reference for the dashboard. For the model — what a campaign is, how it composes into a scenario, the lifecycle — see [Scenarios and campaigns](https://docs.amply.tools/concepts/scenarios-and-campaigns.md). For step-by-step creation, see [Creating a campaign](https://docs.amply.tools/user-guide/creating-a-campaign.md).

## The campaign list

Open **Campaigns** in a project. The list shows every campaign in any state and offers four filter tabs:

* **All**
* **Draft**
* **Active**
* **Stopped**

<figure><img src="https://1054862905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNVDwzd9ZLJgvvnIADl8D%2Fuploads%2Fgit-blob-dc21c3cb64cdf82855fa0a84f9cfe26a25df9ffe%2Fcampaign-list.png?alt=media" alt="The campaign list with four campaigns: three Active, one Draft, each with its type under the name"><figcaption><p>The campaign list, filtered by state with the tabs on top.</p></figcaption></figure>

Open a campaign to view, edit, change state, or delete it. The new-campaign action is **New campaign** at the top right.

What you can do per state:

| State   | State-change button on the detail screen | Other actions |
| ------- | ---------------------------------------- | ------------- |
| Draft   | **Start campaign** (moves to Active)     | edit, delete  |
| Active  | **Stop campaign** (moves to Stopped)     | edit          |
| Stopped | **Start campaign** (re-activates)        | edit, delete  |

A state change propagates to every device on the next configuration fetch — see [Campaign delivery](https://docs.amply.tools/concepts/campaign-delivery.md).

## Campaign types and their options

### Rate & Review

Prompts the user to rate your app using the platform's native review dialog — the App Store review prompt on iOS, the Play Store in-app review on Android.

Use it for:

* Asking satisfied users to leave a review after a positive moment (completing a purchase, finishing onboarding, earning an achievement).

Options the form exposes:

* **Who** — audience rules. See [Targeting an audience](https://docs.amply.tools/user-guide/targeting-an-audience.md).
* **When** — triggering event, optional event-parameter filters, repeat rules, frequency limits.
* No **What** step — the platform dialog is fixed.

Notes:

* On Android, the Play Store's in-app review API only produces a real prompt in release builds distributed through Play. Debug builds show a simulated dialog.
* The platforms cap how often the prompt actually shows, regardless of your repeat rules. Treat "asked" as best-effort.

### Deep Link

Opens a URL when the campaign fires. The URL can be:

* A standard `https://` link (opens in the browser or an in-app web view, depending on how the app handles it).
* A custom URL scheme (for example, `yourapp://promo/spring`) handled by your app's deep-link code.

Use it for:

* Routing users into a specific in-app screen (paywall, offer, onboarding variant, feature tour).
* Sending users to a web destination (blog post, survey, support article).
* Triggering an in-app flow that's already wired up to a scheme your app owns.

Options the form exposes:

* **Who** — audience rules.
* **When** — triggering event, event parameters, repeat rules, frequency limits.
* **What** — the **DeepLink** URL to open.

For the URL to do anything useful, your app needs a deep-link handler registered via the SDK. See [Android integration](https://docs.amply.tools/developer-guide/android-integration.md) and [iOS integration](https://docs.amply.tools/developer-guide/ios-integration.md).

### Mini-app

Shows a published [mini-app](https://docs.amply.tools/mini-apps/overview.md): screens built in the Builder, such as a bottom sheet, a centred card, a story or a full-screen flow. They don't have to exist in your app build, and you change them by publishing a new version.

Options the form exposes:

* **Who** — audience rules.
* **When** — triggering event, event parameters, repeat rules, frequency limits.
* **What** — the **Document** (the mini-app) and its **Published version**. The campaign keeps showing that version until you pick another one. See [Publishing and versions](https://docs.amply.tools/mini-apps/publishing-and-versions.md).

Needs Amply SDK 0.12.0 or later. Devices on older versions skip the campaign; the form shows what share of your devices that is.

### Blocking

Marked **Soon** in the dashboard. Not available yet.

## The When step — repeat rules, frequency limits and Show after

Every campaign is triggered by an event. The When step lets you control how often a single user is eligible to see it, beyond the audience filter.

**Triggering Event.** Pick an event name — system events like `SessionStarted` or any custom event your app sends. Optionally filter by **event parameters** ("only when `screen_name` equals `paywall`").

**Repeat Rules.** How often the campaign is allowed to fire for one user:

* **every** N events — "every 3rd purchase".
* **on** the Nth event — "on the 1st purchase only".

Scope: **globally** (across sessions, across time) or **in session** (this session only).

**Frequency Limits.** Overall caps, independent of the repeat rules. Each one is optional:

* **Total cap** — at most N showings on the device, ever.
* **Frequency** — at most N times per **session**, or per **device**.
* **Interval** — at least this long between two showings (seconds, minutes, hours, or days).

The total cap, the interval and "once per session" count showings, so an occasion the campaign was skipped on is not spent. A per-device frequency, and a per-session frequency above one, count the triggering event instead. For "at most N times on this device", use the total cap.

A campaign that fires too often is almost always a repeat-rules or limits problem, not a targeting one.

### Show after

**SDK 0.15.0+.** By default a campaign appears the moment its triggering event happens. **Show after** adds a short pause between the event and the campaign: from **0.0 s** to **3.0 s**, in steps of 0.1 s. The default, **0.0 s · immediately**, behaves exactly as campaigns always have.

Use it when the moment of the event isn't quite the moment to interrupt:

* **Let a screen settle.** The trigger is `HomeOpened`, but the screen is still animating in. A 0.5–1 s pause lets it finish before a sheet slides over it.
* **Pause after an achievement.** The user finishes a level or a workout and your app plays its own celebration. Wait 1.5–2 s so the campaign follows the moment instead of covering it.
* **Don't interrupt a tap.** The trigger fires on a tap that already starts something — opening a screen, playing a sound. A short pause keeps the campaign from landing in the middle of it.

Who and when are still decided **at the event**. Just before showing, the SDK checks once more that the campaign still applies.

It still shows when:

* **The same event happens again.** If the triggering event happens again while the campaign is waiting, the first pause keeps running and the campaign shows once, on time.
* **The moment is gated.** When the app is waiting for the campaign's answer before an action goes through (a [gated action](https://docs.amply.tools/concepts/gating-an-action.md)), the campaign shows immediately whatever **Show after** says, because the user is already waiting.

It doesn't show when:

* **Another campaign takes the screen.** If, during the pause, another event triggers a campaign created earlier, or a gated campaign shows, that campaign takes the screen and this one is skipped.
* **A campaign created later triggers during the pause.** That campaign doesn't show this time, and this one keeps waiting. The later one is not queued; it gets its next chance on its next triggering event.
* **The user leaves the app.** If the app goes to the background or the session ends before the pause is over, the campaign does not show.
* **The campaign no longer applies.** If the user no longer matches the campaign's audience when the pause ends, its content can't be shown right now, or you edited or stopped the campaign in the meantime, it does not show.

A campaign skipped during its pause is **not counted as shown**, so it doesn't use up a total-shows limit, a minimum interval or "once per session". A per-device frequency cap, and a per-session cap above one, count the triggering event instead, so a skipped show still uses them. Repeat rules count the event, not the show: if an "every 3rd" campaign is skipped on the 3rd event, its next chance is the 6th. Each skip is recorded with its reason as a `CampaignResolved` system event; see [Events](https://docs.amply.tools/reference/events.md#campaignresolved).

**Older app versions.** Apps on an SDK earlier than 0.15.0 ignore **Show after** and show the campaign immediately. Nothing breaks. The pause takes effect as users update.

## Built-in

**SDK 0.16.0+.** Normally a new user sees campaigns only after the app has reached Amply once. A **Built-in** campaign ships inside your app build instead, so the app can show it on its very first launch, even with no internet. Mini-app screens are included.

Use it for what has to be there from the first second:

* **Onboarding** that new users should see even if they open the app offline.
* **A first-launch paywall or offer.**
* **A consent or terms screen.**

The **Built-in** switch is on the campaign's first step, under the campaign type. Built-in campaigns carry a **Built-in** badge in the campaign list.

**Turning it on is half the job.** Your developer runs one command, `npx @amplytools/cli bundle`, before the next app build, and the campaign reaches users with that build. Ask them to run it before every release, so each build carries your latest version. See [Built-in campaigns](https://docs.amply.tools/developer-guide/built-in-campaigns.md) in the developer guide.

What to know:

* **Only active campaigns are bundled**, and not while the campaign is running an A/B test.
* **A build keeps the version it was made with.** Until a device first loads campaigns from Amply, it shows the campaign as it was when the developer ran the command. Edits and stops reach that device with its first successful download from Amply.
* **Once the app has downloaded campaigns from Amply, the bundle is not used again.** From then on the campaign behaves like any other.
* **Impressions and frequency limits count the same** as for any campaign. A user who saw it from the bundle is not shown it again because the live version arrived.

## Choosing a type — quick table

| Goal                                               | Type                       |
| -------------------------------------------------- | -------------------------- |
| Ask users to rate the app                          | Rate & Review              |
| Open a paywall variant in-app                      | Deep Link (custom scheme)  |
| Send users to a web offer or survey                | Deep Link (`https://`)     |
| Route marketing cohorts into different onboardings | Deep Link (custom scheme)  |
| Block a flow until something happens               | (Blocking, when available) |

## Related

* [Scenarios and campaigns (concepts)](https://docs.amply.tools/concepts/scenarios-and-campaigns.md) — what a campaign is and how it fits a scenario
* [Creating a campaign](https://docs.amply.tools/user-guide/creating-a-campaign.md) — step-by-step walk-through
* [Targeting an audience](https://docs.amply.tools/user-guide/targeting-an-audience.md) — the Who step in depth
* [Sessions and events](https://docs.amply.tools/user-guide/sessions-and-events.md) — events the When step can listen for
* [Campaign delivery](https://docs.amply.tools/concepts/campaign-delivery.md) — how a campaign is evaluated
