Conversion Prediction for TikTok Ads With Delayed Purchase Feedback

Last updated: November 29, 2026

Quick Overview

Design the model and data pipeline that predicts the probability an ad impression leads to a conversion (such as an app install or purchase) for TikTok's auction, given that many conversions arrive hours or days after the impression from advertiser postbacks.

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

0

0

0 solved


Design the model and data pipeline that predicts the probability an ad impression leads to a conversion (such as an app install or purchase) for TikTok's auction, given that many conversions arrive hours or days after the impression from advertiser postbacks.

TikTok's ad auction ranks ads by expected value, which requires calibrated conversion rates, and advertisers increasingly optimize for purchases reported via pixels and server-side events. This question checks label delay handling, calibration, feature freshness and the privacy constraints of mobile attribution.

What the Interviewer Expects
  • Define the prediction target and attribution window precisely
  • Address delayed labels without biasing the model toward negatives
  • Emphasize calibration because predictions feed auction bids
  • Describe features and real-time freshness
  • Cover training cadence and online serving latency
  • Discuss sparse labels for small advertisers
Key Topics to Cover
CVR prediction
delayed feedback
calibration
ads auction
multi-task learning
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 would you handle iOS conversions that arrive aggregated and delayed through privacy frameworks?
  • How do you detect calibration drift by advertiser?
  • What do you do when an advertiser's pixel breaks and conversions drop to zero?
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
  • Predict P(conversion∣impression)P(\text{conversion} \mid \text{impression}) for each candidate ad in under 10 ms per request batch.
  • Target: conversion within a 7-day click or 1-day view window, matching the advertiser'...
High-Level Design
  1. Event joins: impressions and clicks from the ad server; conversions from the TikTok pixel, Events API and mobile measurement partners, joined by click ID.
  2. Training data builder: produces...

Submit Your Answer
Markdown supported