Design Budget Pacing and Bid Shading for App Install Campaigns
Last updated: November 29, 2026
Quick Overview
Design the system that spends an advertiser's daily budget smoothly across the day while hitting a target cost per install or return on ad spend, in a first-price auction environment at very high request volume.
Unity
November 29, 20260
0
0 solved
Design the system that spends an advertiser's daily budget smoothly across the day while hitting a target cost per install or return on ad spend, in a first-price auction environment at very high request volume.
Unity's Grow products buy mobile ad inventory for user acquisition campaigns, and pacing plus bid shading decide whether advertisers see steady results or blow their budget by noon. The interviewer checks control loops, how predictions feed bids, latency limits, and how to stay robust to traffic shifts across time zones.
What the Interviewer Expects
- Separate value prediction, bid shading and budget pacing components
- Use a feedback controller (throttle or bid multiplier) for pacing
- Estimate the win-price distribution to shade first-price bids
- Meet tight bid latency with precomputed features and in-memory models
- Handle distributed spend accounting across many bidder nodes
- Define offline and online evaluation
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How do you pace when traffic shape varies by country and day of week?
- What happens if the install model becomes miscalibrated?
- How do you avoid overspending when spend events arrive late?
- How would you test a new shading model safely?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Per bid request (hundreds of thousands per second), decide whether to bid on each of many eligible campaigns and at what price, within about 10 ms of compute inside a ~100 ms auction. Campaign goals: ...
High-Level Design
Three layers. 1) Value: models predict and for ROAS campaigns expected revenue, giving value or . 2) Sha...