Classify Ads for Prohibited Products Before They Go Live

Last updated: November 29, 2026

Quick Overview

Design the ML classifier that screens newly submitted Meta ads for prohibited products such as weapons, drugs and unsafe supplements before they are delivered. Keep the design simple and focused on the review decision.

Meta
ML System Design
Machine Learning Engineer
Meta
November 29, 2026
Machine Learning Engineer
Technical Screen
ML System Design
Easy

0

0

0 solved


Design the ML classifier that screens newly submitted Meta ads for prohibited products such as weapons, drugs and unsafe supplements before they are delivered. Keep the design simple and focused on the review decision.

Ad review is a screening question that checks whether a candidate can frame a policy classifier well: inputs, labels, thresholds and human review. Interviewers want a practical first version and attention to the cost of wrongly rejecting legitimate advertisers.

What the Interviewer Expects
  • Uses ad text, image, landing page and advertiser features
  • Trains on past reviewer decisions per policy
  • Uses multi-label outputs since an ad can violate several policies
  • Sets thresholds for auto-approve, auto-reject and human review
  • Supports appeals and learns from overturned decisions
Key Topics to Cover
ad review
multi-label classification
human review
thresholds
landing page analysis
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 a landing page that changes after approval?
  • How do you add a new policy with only a few hundred examples?
  • What metric would you report to the ads integrity team weekly?
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
  • Every new or edited ad must be reviewed before delivery, typically within minutes.
  • Policies: weapons, drugs, tobacco, unsafe supplements, adult products, and more.
  • Actions: approve, reject with ...
High-Level Design
  1. Inputs: ad text and headline, image or video frames, landing page text and screenshot, advertiser history (account age, past rejections).
  2. Model: shared multimodal encoder with one output...

Submit Your Answer
Markdown supported