Design Click-Through Rate Prediction for Google Search Ads Ranking
Last updated: November 29, 2026
Quick Overview
Design the pCTR model used in the Search ads auction, which ranks ads by bid times predicted click-through rate and quality. Cover features, training at scale and how to keep predictions accurate for new ads.
0
0
0 solved
Design the pCTR model used in the Search ads auction, which ranks ads by bid times predicted click-through rate and quality. Cover features, training at scale and how to keep predictions accurate for new ads.
pCTR is the core model in the Search ads auction and is a staple of Google ML interviews. The interviewer checks feature engineering at scale, online learning, position bias handling and why calibration matters for pricing.
What the Interviewer Expects
- Explain the auction's use of pCTR (ad rank, pricing)
- Design sparse features and cross features at query and ad level
- Remove position effects from the label
- Use online learning for freshness
- Handle new ads and advertisers with shared features
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 predict CTR for an ad that has never been shown?
- Why would you model position separately instead of as a normal feature?
- How would you detect that a new model version is miscalibrated before full rollout?
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 query, a few hundred eligible ads need pCTR in a few milliseconds. Auction: ad rank roughly , price determined by the next ad's rank. Therefore predictions mus...
High-Level Design
- Features: query tokens and embeddings, ad text, keyword match type, advertiser history, landing page quality, device, location, time, plus crosses like query-token x ad-token.
- Model: a w...