Skip to main content

A/B testing ad placements: how to measure revenue and retention

Choose a unit of assignment, set stopping rules, and decide what to roll out after an ad placement change.

R
Written by Reiko

A reading app shows a native ad after the fifth card. The team wants to move it after the eighth. The test can measure the effect on article completion and revenue per participant. Changing the ad network, banner frequency, and font size at the same time would make the placement effect impossible to isolate.

​

Write the experiment plan before launch

Assign variants by user. Every new session for a given user gets the same variant while the test is active. Assigning 50% of sessions to each variant weakens the comparison: one person can see both, and the previous visit can influence the next.

Field

Decision

Control

Native card after the fifth item

Variant

Native card after the eighth item

Primary metric

Ad revenue per assigned participant over an equal observation window

Guardrails

Article completion, next-day return, and UI errors

Exposure event

First time the ad or eligible slot enters the viewport

Stopping rules

Prespecified sample size and runtime, with early stopping for a serious failure

Set acceptable revenue and quality changes according to the team's goals. The product might accept up to a 3% decline in revenue per user if article completion improves. That threshold applies to this decision. Sample size also depends on the baseline and variability. Rare, large values matter especially for revenue metrics.

​

Launch and validate the data

  1. Assign test devices to the control and variant. Expect three events for each: assignment, configuration applied, and first arrival at the placement.

  2. Roll out to a small share of traffic. Expand after checking UI failures, event completeness, and the group ratio. Keep to the schedule set in advance.

  3. After collecting the data, compare assigned groups. Treat the report for users who actually saw an ad as diagnostic. Exposure depends on scrolling and can differ between variants.

Firebase A/B Testing supports experiments with Remote Config parameters and lets teams select metrics in the console. Still verify that the value applies at the expected point in the user journey. The app might receive a parameter in the middle of reading. Activating it the next time the feed opens avoids shifting visible cards and keeps the session predictable.

​

Calculate the result in product terms

Both groups have 20,000 assigned participants and the same one-day observation window. The control earns $160 in ad revenue and the variant earns $156. Revenue per user falls from $0.008 to $0.0078, or 2.5%. A rise in completion from 46% to 48% is 2 percentage points, or roughly 4.35% relative to control. Those units answer different questions. Apply a percentage revenue threshold to the relative change, and state which unit you use when reporting completion.

​

Report uncertainty intervals with the estimates. Before comparing completion, inspect the event trace at both positions. Moving an ad changes feed height and can affect a scroll-based completion rule. For an article, anchor the event to the end of the text. Otherwise, moving the card can shift the threshold and distort the comparison.

​

Decide what to do with an inconclusive result

A 1% revenue decline can look acceptable while its confidence interval still includes losses well beyond the agreed tolerance. Follow the plan: finish collecting the sample or design a follow-up with a sharper hypothesis. Stopping on the first favorable daily reading or changing the primary metric after seeing results undermines interpretation.

​

Use OS version, format, and country to explore the mechanism. A striking result in a subgroup discovered after the fact needs another test. Before permanent rollout, save the variant configuration, rollback rules, and monitoring metrics. After rollout, confirm that the agreed placement appears at all supported screen sizes.

​

Define the hypothesis, assignment, and observation window

Make a prediction the test can disprove: moving the card from fifth to eighth will improve completion while keeping the decline in ad revenue per participant within the agreed range. Define the audience, placement, format, and alternative in the protocol. A variant that changes both position and loading time measures the combined effect. The test cannot tell you what each change contributed.

​

Assign a variant before the action it could affect. For a feed experiment, a stable assignment when a user first becomes eligible works well. Track configuration application with its own event. A participant may be assigned, retain an older cached configuration, and see the new variant later. Assignment and application records expose that gap when it happens systematically.

​

Specify how long you will measure revenue and retention. Give each assigned participant seven days from enrollment, for instance, and decide after the last participant completes that window. This avoids comparing late arrivals with people who already spent a week in the experiment. If you use ARPDAU for assigned groups, define active days and observation windows identically. For the primary result, revenue per assigned participant can include everyone even if some never see an ad.

​

Make sure there is only one difference between variants

Send both configurations to the same test device in separate runs. Keep format, provider, topic, close control, frequency cap, and privacy state identical. Variant B should contain exactly one card after the eighth item. A Remote Config parameter that adds a slot while the old template still inserts its own can accidentally give B two placements.

Failure

What analytics will show

How to confirm it

Cache stays stale until the next session

Many assignments but little visible change

Compare parameter version with the application event

Analytics depends on an impression

One group emits fewer events despite equal assignment

Count assignment independently of ads

A parallel release changed the feed

The effect appears only in some app versions

Check version and rollout timing

Position changes during scrolling

More navigation errors and accidental taps

Check configuration activation on a slow connection

Run an A/A test when these measurements are new. Both groups get the same behavior. Check group proportions, stable assignment of one variant per participant, and equal event coverage. Random differences are expected. A systematic imbalance shows what to fix in the experiment before introducing a real change.

​

Avoid deciding from too short a window

Feed traffic varies by day of week. Weekday sessions may be short, while people read longer at weekends. A Friday launch gives you little weekday data before the weekend. Those first few days tell you little about an ordinary working day. Run long enough to cover the relevant cycles. Record major campaigns, promotions, and updates in advance so the analysis can account for what else was happening.

​

Require enough data for small segments. A tablet revenue spike based on ten impressions is a reason to look at the rendering. A tablet-specific rollout needs enough devices, a stable effect, and a predefined subgroup. If a geographic difference emerges only during analysis and was not part of the decision rules, put that hypothesis into the next test plan.

​

Agree on failure handling before launch. A setting that breaks scrolling or prevents article completion can be disabled immediately under a prespecified rule. A day with unusually strong revenue should leave the data collection plan in place. Stop early for a serious product failure only under the agreed conditions.

​

Why the average among exposed users can mislead

Suppose 60% of group A reach the fifth item and 40% of group B reach the eighth. People who reach the eighth tend to read longer. Revenue among viewers alone compares audiences selected by different rules. With 1,000 participants per group, $6 from 600 viewers and $5 from 400 give $0.010 and $0.0125 per viewer. Per assigned participant, the figures are $0.006 and $0.005. The denominator agreed before the test determines which comparison informs the rollout.

​

Keep both sets of metrics. Revenue per assigned participant measures the effect across the audience. Revenue per viewer helps diagnose what happens at exposure. Also look at revenue per impression, the share that reaches the slot, and the share of those users who actually see an ad. These measures separate a change in pricing from a change in reader flow.

​

Record the decision and rollout plan

  1. Record group sizes, observation time, primary and guardrail results, uncertainty, and the actual state of the test.

  2. When the variant meets the criteria, roll it out in stages. Compare the old version, partial rollout, and full rollout. Keep a quick path back to the control if the ad format changes.

  3. When results are inconclusive, state which evidence is missing. A follow-up could preload the native card without moving it, isolating the effect of latency from the effect of position.

The final record should make the test reproducible without a handover meeting. Include settings, the assignment scheme, and endpoint definitions. If article completion is measured differently in the future, the original protocol will still tell readers how to interpret earlier results.

Documentation

Did this answer your question?