Testing Opt-In Reward Ads in a Free-to-Play Mobile Game
Statistics & ExperimentsModel answerLast updated
Design an A/B test for opt-in reward ads in a free-to-play game: choose metrics, set randomization and duration, and measure whether ads cannibalize in-app purchases.
Scenario
You are the data scientist for a free-to-play mobile game. The product team wants to add opt-in reward ads: a player can choose to watch a roughly 30-second video and receives in-game currency in return. The goal is to increase monetization, and leadership wants an evidence-based answer on whether to launch to all players.
What you are asked to do
- Metrics. Define the primary metric, the secondary (diagnostic) metrics, and the guardrail metrics for the experiment.
- Experiment design. Describe the A/B test: the randomization unit, who is included, how you would size it, and how long it should run.
- Cannibalization. Explain how you would measure whether players who use ads buy less in-game currency with real money, and how you would avoid misleading conclusions.
Available data and assumptions
- Granular event logs: player sessions, ad-view events, and in-app purchase (IAP) transactions.
- User-level attributes (platform, country) and historical engagement (DAU, sessions per day, session length).
- The experiment observation window is 14 days.
Expected answer
A structured, prose answer that states a clear recommendation framework. Be explicit about trade-offs, such as short-term revenue versus long-term retention, and about the statistical pitfalls you would guard against.
Hints
Hint 1
Think about a single metric that already nets ad revenue against any lost purchase revenue, and compute it for everyone assigned to treatment, not only people who watched ads.
Hint 2
Ask what entity actually owns purchases, currency and progress. Players can have several devices, and some can gift to each other, so consider whether the randomization unit might leak between arms.
Hint 3
Comparing ad-watchers with non-watchers is biased by self-selection. Use random assignment itself (intent-to-treat, plus an instrumental variable for compliers) and look at effects within pre-treatment spend segments.
Hint 4
Revenue per user is very heavy-tailed. Think about stratification, variance reduction with pre-period data, capping, and analyzing conversion separately from spend per payer.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Framing
The decision is about net incremental value per player, not ad revenue in isolation. Ad income is easy to see; the harder questions are whether it replaces purchases and whether it hurts retention. The answer below handles both.
1. Metrics
Primary: net revenue per randomized user over 14 days
- Net revenue = IAP revenue (after store fees) + ad revenue.
- Use an intent-to-treat population: every user assigned to treatment counts, including those who never open an ad.
- Because it sums both streams, cannibalization is already netted out. Ad gains offset by lost purchases appear as roughly zero.
Secondary (diagnostic, explain why the primary moved)
- Ads: opt-in rate, ads watched per active user, eCPM, fill rate, ad revenue per user.
- IAP: payer conversion rate and revenue per payer, reported separately.
- Engagement: sessions per day, session length, level progression.
- Economy: currency earned, spent and held. Free currency can reduce the need to buy.
Guardrails (must stay within pre-set limits)
- D1, D7, D14 retention and DAU.
- Uninstalls, store rating, support contacts.
- Crash rate and ad load failures or latency. Ad SDKs are a frequent cause of crashes.
- Retention and spend of the highest spending tier, tracked on their own.
Pre-register the primary metric, minimum detectable effect and guardrail thresholds (for example, "D7 retention may not fall by more than 0.3 percentage points") before launch.
Why not ARPDAU? Its denominator changes if retention changes, so it can look good while the game loses players.
2. Experiment design
Randomization unit: account/user ID, hashed with an experiment salt for sticky assignment. Purchases, balances and progress live on the account, and players switch devices. Device-level assignment would expose one person to both arms and corrupt per-user attribution.
Interference. If there are guilds, gifting or trading, treated players can pass currency to controls. Consider cluster randomization by guild, or at least measure cross-arm transfers.
Stratification. Stratify by platform, country tier (ad eCPM varies enormously by region) and pre-period spend tier (non-payer, low, mid, whale). This balances the few high spenders who dominate revenue and reduces variance.
Population. Report existing players and new installs separately. New players build habits around the ad option from day one and matter most for lifetime value.
Sample size. Per arm, n ≈ 2(z₁₋α/₂ + z₁₋β)² σ² / δ². With σ = $4, δ = $0.10, α = 0.05 and 80% power: 2 × 7.84 × 16 / 0.01 ≈ 25,000 per arm. Use CUPED with pre-period revenue and engagement to cut variance, often by 30–50%. Ramp exposure gradually (1% → 5% → target) to catch crashes early.
Duration. 14 days covers two full weekly cycles and lets early cohorts reach D7 retention. Plot the daily treatment effect to detect novelty: opt-in often spikes then decays. Do not stop early on a good-looking p-value unless using a sequential testing method. After launch, keep a small (around 5%) long-term holdout to check effects beyond 14 days.
3. Measuring cannibalization
The wrong way: compare players who watch ads with those who don't. Watchers self-select, and are mostly non-payers, so this will "show" that ads reduce spend even when they don't.
Right way:
- ITT decomposition. ΔTotal = ΔAd + ΔIAP, each as treatment minus control. A negative ΔIAP is the cannibalization estimate. Net incremental revenue = ΔAd − |ΔIAP|. Split ΔIAP into payer conversion versus spend per payer.
- Complier effect (instrumental variables). Use random assignment as the instrument for "watched at least one ad." The effect on purchases per adopting player is ΔIAP_ITT divided by the difference in watch rates. This removes selection bias.
- Heterogeneity by pre-treatment segment. Estimate ΔIAP within spend tiers and predicted propensity to pay, defined before the test. Cannibalization typically concentrates in near-payers and small spenders who would have bought small currency packs. Non-payers are largely incremental ad revenue.
- Timing. Plot time-to-first-purchase curves by arm. Ads that delay the first purchase signal cannibalization that 14 days may understate.
- Policy arms. Extra variants (reward size, daily frequency caps such as 3 versus 10) trace the trade-off curve so you choose a policy, not just yes or no.
Handling skewed revenue
- Stratify and use CUPED.
- Winsorize at the 99th–99.5th percentile and report capped and uncapped results.
- Add bootstrap or rank-based robustness checks.
- Analyze payer conversion (binary, low variance) apart from revenue per payer.
Trade-off: revenue up, D7 retention slightly down
- Check whether the drop is significant and where it sits. Losing whales is far worse than losing non-payers.
- Convert it to money: lost active days × ARPDAU plus lost future purchases.
- Compare with the ad gain. Launch if projected net lifetime value is positive and guardrails hold.
- Otherwise iterate on frequency caps, placement (after a level rather than mid-session) or reward size, then re-test.
- If launched, keep the holdout to confirm the gap doesn't widen.
Common mistakes
- Using ad revenue or ARPDAU as the primary metric.
- Analyzing only exposed users or comparing watchers to non-watchers.
- Running t-tests on raw revenue without handling outliers.
- Randomizing by device.
- Ignoring economy effects and novelty decay.
- Declaring success from 14 days of data without a plan for long-term effects.