Every ad placement trades user attention for revenue. The revenue appears in your dashboard the next morning. The cost comes later and is harder to see: people open the app less often, finish fewer sessions and leave worse reviews. Because revenue is easy to see and retention loss is not, most indie apps end up showing more ads than is good for them.

This post is a practical playbook for placing ads so that the trade stays in your favour. It covers where ads belong, where they never should go, how to cap them, and how to measure the retention cost before you commit.

Start with a map of your sessions

Before choosing placements, write down what a typical session looks like. Not the one you imagine, but the one your analytics show. For most small apps it fits in a few lines:

  • Entry: cold start, a notification tap, or a widget.
  • Core loop: the thing people came for, such as a level, a lookup, a note or a timer.
  • Natural breaks: moments where the user has just finished something and has not yet started the next thing.
  • Exit: backgrounding the app, usually right after the job is done.

Ads that land on natural breaks feel like a pause. Ads that interrupt the core loop or block entry feel like a toll. Most retention damage comes from a few placements in the wrong column, not from the total number of ads.

Where ads belong, and where they do not

Good candidates

  • After a completed unit of work. A finished level, a saved export, a completed workout. The user has just got what they came for.
  • Opt-in rewarded moments. The user chooses to watch in exchange for something they want. Design matters here; see Rewarded Ads Design Patterns That Respect Your Players.
  • Banners on browse screens. Lists, settings and history screens where the user is reading rather than doing precise taps.

Placements to avoid

  • On cold start. An interstitial before the first screen tells users the app is slow and in the way. It also tends to break your first-launch flow, including consent prompts.
  • Mid-task. Anything that appears while the user is typing, dragging, timing or playing.
  • Next to primary controls. Banners right beside a high-traffic button produce accidental clicks. Those clicks annoy users and can get you into trouble with your ad network's policies on invalid traffic.
  • On the way out. An ad triggered by the back button or by leaving a screen feels like a trap.
  • Inside your paywall or onboarding. You are asking for trust in those moments. Do not spend it on an impression.

Every network publishes placement policies, and AdMob's interstitial and banner guidance is worth reading in full. Treat those rules as the minimum, not as the target.

Frequency caps you control

Network-side frequency caps exist, but they apply per ad unit and you cannot see them from your code. Keep your own cap in the app so that one function decides whether an interstitial may show. It should combine three rules:

  1. A grace period at the start of a user's life (first sessions or first days) with no interstitials at all.
  2. A minimum gap in time between interstitials.
  3. A minimum amount of real activity between interstitials, such as completed units rather than screen views.

Here is a compact version in Kotlin. The same shape works in Swift.

data class AdPolicy(
    val graceSessions: Int,
    val minSecondsBetween: Long,
    val minUnitsBetween: Int,
    val maxPerSession: Int
)

class InterstitialGate(private val policy: AdPolicy, private val store: AdStateStore) {

    fun mayShow(nowSec: Long): Boolean {
        val s = store.load()
        if (s.isSubscriber) return false
        if (s.sessionCount <= policy.graceSessions) return false
        if (s.shownThisSession >= policy.maxPerSession) return false
        if (nowSec - s.lastShownSec < policy.minSecondsBetween) return false
        if (s.unitsSinceLastAd < policy.minUnitsBetween) return false
        return true
    }

    fun recordShown(nowSec: Long) = store.update {
        it.copy(lastShownSec = nowSec, unitsSinceLastAd = 0,
                shownThisSession = it.shownThisSession + 1)
    }

    fun recordUnitCompleted() = store.update {
        it.copy(unitsSinceLastAd = it.unitsSinceLastAd + 1)
    }
}

Two details are easy to miss. First, call recordShown only after the ad actually displays, not when you request it, or a failed load will silently use up the user's quota. Second, the subscriber check belongs here, in one place, and not scattered across screens. If you sell an ad-free tier, Combining Subscriptions and Ads in a Small App covers how to wire entitlements so this check stays reliable.

Put the numbers in remote config

Do not hard-code the policy. Load it from whatever remote config you already use, with safe defaults bundled in the app:

{
  "ad_policy": {
    "grace_sessions": 3,
    "min_seconds_between": 180,
    "min_units_between": 2,
    "max_per_session": 3,
    "holdout_percent": 10
  }
}

The values above are placeholders to show the format, not recommendations. The right numbers depend on how long your sessions are and what a "unit" means in your app. That is why they need to be adjustable without a release.

Measure the retention cost with a holdout

You cannot judge a placement by its revenue alone. You need to know what it costs in retention, and the cleanest way to find out is a holdout group.

  1. Assign a stable bucket on first launch, for example by hashing an install ID into 0 to 99. Store it so the bucket never changes.
  2. Put a small slice in the holdout, which either sees no interstitials or uses your old policy. Everyone else gets the new policy.
  3. Log the bucket as a user property on every analytics event so you can split any report by it.
  4. Compare cohorts by install date, not by calendar date. Look at day-1, day-7 and day-30 retention, sessions per user, and completed units per session.
  5. Compare total value, not just ad revenue. For each group, add up ad revenue and subscription revenue per install over the same window. A placement that earns more per impression but lowers subscription conversion may be a net loss.
fun bucketFor(installId: String): Int =
    (installId.hashCode().toLong() and 0x7fffffff).rem(100).toInt()

val inHoldout = bucketFor(installId) < policy.holdoutPercent

Small apps rarely have enough traffic for statistically tidy results within a few days. Run the test long enough for the day-7 cohorts of several install weeks to mature. Be suspicious of small differences, and look for consistent direction across cohorts rather than one dramatic week.

Signals worth watching between tests

Holdouts answer the big questions. Between them, a few cheap signals catch regressions early:

  • Session end within a few seconds of an ad closing. Log it. If many sessions end right after a particular placement, that placement is pushing people out.
  • Accidental-click patterns. A click-through rate that jumps after a layout change usually means a banner moved closer to a button, not that users suddenly became interested.
  • Review text. Search new reviews for "ads" every week. A rising share is an early warning that arrives before the retention curves do.
  • Uninstalls by app version, available in the Play Console and in App Store Connect analytics. Line them up with your ad-policy changes.

A pre-ship checklist for any new placement

  • Does it appear only at a natural break, never during the core loop?
  • Is it gated by the shared frequency cap and the subscriber check?
  • Is it skipped during onboarding, the paywall and the first-session grace period?
  • Is it far enough from primary controls to avoid accidental taps on small screens?
  • Does the app recover cleanly if the ad fails to load, without a spinner and without a blank gap?
  • Is it behind a remote flag so you can switch it off without a release?
  • Is a holdout in place so you can measure what it costs?

Conclusion

Placing ads well is mostly a matter of restraint, followed by measurement. Put ads at natural breaks, keep one gate in your code that decides when they may appear, move the numbers into remote config, and keep a holdout running so the retention cost shows up in your reports next to the revenue. Then add placements one at a time and keep only the ones that increase total value per install.