Design Skip Prediction for Selecting YouTube In-Stream Video Ads
Last updated: November 29, 2026
Quick Overview
Skippable in-stream ads are charged only when viewers watch long enough or interact. Design a model that predicts whether a viewer will skip an ad and use it to choose which ad to show.
0
0
0 solved
Skippable in-stream ads are charged only when viewers watch long enough or interact. Design a model that predicts whether a viewer will skip an ad and use it to choose which ad to show.
An approachable ads ML question for YouTube where the interviewer looks for a clear label, sensible features and an understanding of how the prediction enters ad selection. It also touches user experience, since unskipped ads should be ones viewers tolerate.
What the Interviewer Expects
- Define the label as watched past the billable point versus skipped
- List viewer, ad and context features
- Explain how the prediction combines with bid to rank ads
- Discuss position bias from pre-roll versus mid-roll slots
- Choose offline and online metrics
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 would you account for viewers who leave the video entirely during the ad?
- Should you show fewer ads to users with high skip rates?
- How does ad length change your model?
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
Goal: predict , the probability the viewer watches to the billable point (for example 30 seconds or the end, whichever is shorter) or clicks. Used in ad ranking: expected value $= bid_...
High-Level Design
- Candidates: ads eligible by targeting and budget.
- Skip model: gradient boosted trees or DNN on viewer, ad, video and context features.
- Ranking: $score = bid \cdot \hat p_{view} + ...