Evaluating an Automated Bid Optimizer in an Ad Marketplace
Statistics & ExperimentsModel answerLast updated
Design an evaluation plan for an ML-driven auto-bidding tool: choose metrics, set up a randomized experiment, and handle marketplace interference and selection bias.
Scenario
A social platform with a self-serve advertising console is about to release an automatic bidding tool. It uses machine learning to adjust an advertiser's bids in real time, aiming to maximize conversions without exceeding the advertiser's budget. Leadership wants to know whether the tool truly grows total ad revenue and leaves advertisers better off.
You can draw on historical campaign data, user engagement logs, and advertiser churn records.
What to answer
- Pick one primary metric and two secondary metrics for judging success. Explain your choices.
- Describe an experiment that measures the causal effect of the tool on ad revenue: unit of randomization, eligibility, analysis approach, duration, and variance handling.
- Name two biases or network effects that could distort the result, and say how you would reduce each.
Things to keep in mind
- The ad auction is a two-sided marketplace. Changing how one advertiser bids changes prices and delivery for others.
- Your plan should address the tension between short-term revenue and long-term advertiser retention.
- Finish with a concrete ship / do-not-ship decision rule.
Hints
Hint 1
Revenue by itself can rise because advertisers are overpaying. Which metric captures the value advertisers actually receive, and which captures whether they stay?
Hint 2
Who makes the bidding decision, and who shares an auction? Think about what the randomization unit should be and what happens to control advertisers when treated ones bid more aggressively.
Hint 3
Separate being offered the tool from actually using it. Comparing adopters with non-adopters mixes the feature's effect with advertiser quality, so think about intent-to-treat and instrumental variables.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Framing
A strong answer shows four things: revenue alone is a misleading target, the auction is a shared resource so naive advertiser-level A/B tests are contaminated, offering the tool differs from using it, and short- and long-term effects must be combined into an explicit decision rule.
1. Metrics
Primary: incremental ad revenue per eligible advertiser, measured as average daily spend over the test window and analyzed by original assignment (intent-to-treat). Since spend is capped by budget, revenue can rise two ways: advertisers finally spend budget they were under-delivering with manual bids, or they raise budgets because returns improved. The second is the durable gain.
Secondary metrics:
- Advertiser efficiency (ROAS or cost per conversion). Use conversions from the tracking pixel or server-side API within a fixed attribution window. If spend rises while cost per conversion rises faster, the platform is extracting surplus rather than creating value.
- Advertiser retention and satisfaction. Track 30/60/90-day active-advertiser rate, budget renewal rate, and a short in-console satisfaction survey.
Guardrails: user-side quality (ad hide/report rate, CTR, session depth), clearing prices paid by advertisers not using the tool, and pacing (share of campaigns that exhaust budget early in the day).
2. Experiment design
Randomization unit: the advertiser account.
- User-level randomization makes no sense, since bidding is an advertiser-side decision.
- Impression-level randomization would apply automation inconsistently inside a campaign, corrupting the model's learning loop.
- Account-level assignment keeps all of an advertiser's campaigns in one arm, so budget cannot shift between arms.
Eligibility and assignment:
- Include only advertisers with conversion tracking and enough conversion volume for the model to learn from.
- Stratify by spend tier, vertical, region, tenure, and managed vs self-serve.
- Treatment advertisers are offered the tool (or get it as a default); control advertisers are not.
- Analyze intent-to-treat. To estimate the effect on those who actually adopt, use assignment as an instrument for adoption (complier average causal effect).
Variance reduction: spend is heavy-tailed. Use CUPED with pre-period spend and cost per conversion, winsorize or treat the largest spenders as their own stratum, and use the delta method for ratio metrics such as ROAS.
Duration and power:
- Report the model's learning phase (roughly 1-2 weeks) separately and base the decision on post-learning data.
- Run 4-6 weeks to cover weekly cycles.
- Size the test using the CUPED-adjusted variance; a minimum detectable effect of 1-2% of spend is a reasonable target.
Long-term holdout: keep about 5% of eligible advertisers off the tool for 3-6 months after launch, since churn effects unfold over quarters.
3. Biases and network effects
A. Auction interference (crowd-out). Treated advertisers bid more aggressively and win impressions control advertisers would otherwise have won. The treatment-control gap then overstates the true effect, because treatment's gain is partly control's loss, and control's costs are inflated. At full rollout this redistribution disappears and only genuine marketplace expansion remains.
Mitigations:
- Budget-split (two-sided) testing: split both traffic and each advertiser's budget into two isolated sub-marketplaces, one fully automated and one fully manual. Each auction contains only one arm, so platform revenue can be compared directly.
- Cluster randomization: randomize by geography or by audience clusters with little advertiser overlap, and analyze at the cluster level.
- Ramp diagnostics: run at 1%, 10%, and 30% of advertisers. If per-advertiser lift shrinks as exposure grows, interference is present; extrapolate toward 100%.
B. Selection bias plus learning and novelty effects. Advertisers who opt in are usually more sophisticated or better funded, so comparing adopters to non-adopters confounds the tool with advertiser quality. Early weeks also reflect model exploration and possible overspend, not steady state.
Mitigations: use randomized offers with intent-to-treat and instrumental-variable estimates, never adopter vs non-adopter comparisons; report effects by weeks since adoption and decide on post-learning estimates.
Short-term revenue vs long-term retention
Use historical data to build a surrogate: model churn probability as a function of change in ROAS or cost per conversion, spend tier, and tenure. Translate the experiment's efficiency movement into projected lifetime value, and confirm later with the long-term holdout.
Decision rule:
- Ship if incremental revenue is positive, efficiency is non-inferior (for example, cost per conversion no more than about 3% worse), and projected retention impact is non-negative.
- Do not ship on revenue alone. Revenue growth with worse advertiser returns is borrowing against future churn.
Common mistakes
- Using revenue as the only success metric.
- Randomizing users, or comparing adopters with non-adopters.
- Ignoring interference, so redistribution between arms is reported as lift.
- Running a plain t-test on heavy-tailed spend with no variance reduction.
- Judging the feature during its learning phase.
Likely follow-ups
- Cannibalization: break spend down by placement type and compare total spend, conversions, and budgets across arms. If the mix shifts but totals are flat, the gain is reallocation, not growth. In the budget-split design, compare total sub-marketplace revenue.
- Representativeness: stratify assignment, check covariate balance (standardized mean differences below 0.1) and pre-period parity with an A/A check, and reweight to the full advertiser population. State that conclusions apply to eligible advertisers and examine heterogeneous effects by segment before extrapolating.
- Instrumentation: log assignment, adoption timestamps, bid and budget changes, and conversion data with consistent attribution windows so all of the above can be computed.