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.

Google
ML System Design
Machine Learning Engineer
Google
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Medium

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
CTR prediction
Online learning
Position bias
Sparse features
Calibration
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. 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 Problems
Sample Answer
Requirements

For each query, a few hundred eligible ads need pCTR in a few milliseconds. Auction: ad rank roughly bid×pCTR×qualitybid \times pCTR \times quality, price determined by the next ad's rank. Therefore predictions mus...

High-Level Design
  1. 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.
  2. Model: a w...

Submit Your Answer
Markdown supported