Design Invalid Click Detection for Google Ads Traffic

Last updated: November 29, 2026

Quick Overview

Advertisers pay per click, and bots, click farms and publisher self-clicking generate invalid clicks. Design a system that filters invalid clicks in real time before billing and catches sophisticated fraud offline.

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

0

0

0 solved


Advertisers pay per click, and bots, click farms and publisher self-clicking generate invalid clicks. Design a system that filters invalid clicks in real time before billing and catches sophisticated fraud offline.

Ad traffic quality is central to advertiser trust and revenue, and Google interviewers use it to test adversarial ML: labels are scarce, attackers adapt, and decisions affect money for advertisers and publishers. They want a layered online plus offline design.

What the Interviewer Expects
  • Split real-time filtering from offline batch detection with refunds
  • Use features across IP, device, publisher, timing and conversion behavior
  • Explain label sources despite little ground truth
  • Address adversarial adaptation and feature secrecy
  • Discuss impact on advertisers, publishers and revenue
Key Topics to Cover
Ad fraud
Adversarial ML
Anomaly detection
Graph features
Delayed refunds
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 detect a publisher who clicks their own ads from many residential proxies?
  • How do you choose the precision versus recall operating point when false positives cost revenue?
  • How would you evaluate a new detector when labels are this sparse?
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

Inputs: every click event with IP, user agent, device signals, cookie or account state, publisher, ad, timestamp, and later downstream behavior. Decisions: mark a click valid or invalid before billing...

High-Level Design
  1. Real-time filters: rules and a fast model on per-click features: known bad IPs and data centers, impossible click rates, duplicate clicks within seconds, missing browser signals.
  2. **Streaming...

Submit Your Answer
Markdown supported