Design Conversion-Optimized Ad Ranking for an In-Feed Placement
Last updated: November 29, 2026
Quick Overview
Design the system that picks which ad to show in a social feed slot for advertisers who bid on conversions (installs, purchases) rather than clicks, balancing revenue, advertiser outcomes and user experience.
Tencent
November 29, 20260
0
0 solved
Design the system that picks which ad to show in a social feed slot for advertisers who bid on conversions (installs, purchases) rather than clicks, balancing revenue, advertiser outcomes and user experience.
Tencent Advertising serves ads in WeChat Moments, Channels and Official Accounts, and most advertisers buy on optimized cost per action (oCPX), which makes conversion rate prediction and bid shading central. An ML system design interviewer probes the candidate on the multi-stage funnel, delayed conversion labels, calibration and pacing.
What the Interviewer Expects
- Lays out the retrieval, pre-ranking, ranking and auction stages with latency budgets
- Defines the ranking score as bid times pCTR times pCVR with calibration
- Handles delayed and sparse conversion labels
- Chooses model architecture with multi-task learning for CTR and CVR
- Covers budget pacing and the oCPX bid control loop
- Includes user experience guardrails such as ad load and frequency caps
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 correct the sample selection bias of training CVR only on clicked impressions?
- How would you measure incrementality for an advertiser rather than attributed conversions?
- What happens to your models when platform privacy changes reduce conversion signal?
- How do you cold start a new advertiser with no conversion history?
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
For each feed slot request, return one ad (or none) within about 100 ms. Advertisers set a target cost per conversion T and a daily budget. Goals: maximise platform revenue subject to advertisers hi...
High-Level Design
- Targeting and retrieval (about 10 ms): filter by targeting, budget and frequency caps; a two-tower embedding model retrieves a few thousand candidates.
- Pre-ranking: a light model trims t...