PracHub
QuestionsPremiumLearningGuidesInterview PrepNEWCoaches
|Home/Machine Learning/Meta

How would you design a Shop Ads ranking algorithm?

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's understanding of machine learning-driven ad ranking, auction mechanics, multi-stakeholder objective formulation, predictive modeling for CTR/CVR/value, and measurement challenges such as delayed feedback, selection bias, and fairness in online advertising.

  • easy
  • Meta
  • Machine Learning
  • Data Scientist

How would you design a Shop Ads ranking algorithm?

Company: Meta

Role: Data Scientist

Category: Machine Learning

Difficulty: easy

Interview Round: Technical Screen

## Context An ads ranking system serves ads via an auction. You want to **uprank Shop Ads** relative to Website Ads to improve user conversion and help certain advertisers. ## Task Design (at a high level) an algorithmic approach for ranking that incorporates the “Shop Ads” preference. Cover: 1. **Objective function**: What are you optimizing (e.g., expected value, user utility, revenue)? How do you handle multiple stakeholders (users, advertisers, platform)? 2. **Modeling approach**: What predictions do you need (CTR, CVR, purchase value)? Any special considerations for Shop Ads vs Website Ads? 3. **How to incorporate uprank** without breaking the auction (e.g., boost factor, constraint, or multi-objective optimization). 4. **Training data & labels**: delayed conversions, missing data (privacy), selection bias from prior ranking. 5. **Offline + online evaluation**: what offline metrics, counterfactual evaluation methods, and online tests would you run? 6. **Key risks**: feedback loops, calibration issues, fairness across advertiser sizes, cold start. You may assume the platform currently ranks ads by something like `score = bid * pCTR * pCVR * value` (or a learned equivalent).

Quick Answer: This question evaluates a candidate's understanding of machine learning-driven ad ranking, auction mechanics, multi-stakeholder objective formulation, predictive modeling for CTR/CVR/value, and measurement challenges such as delayed feedback, selection bias, and fairness in online advertising.

Related Interview Questions

  • Design and evaluate an ads ranking algorithm - Meta (easy)
  • Derive Linear Regression Solution - Meta (medium)
  • Explain key ML metrics and techniques - Meta (medium)
  • Design an ad recommendation ranking approach - Meta (easy)
  • Build harmful-content text classifier - Meta (medium)
Meta logo
Meta
Feb 12, 2026, 2:34 PM
Data Scientist
Technical Screen
Machine Learning
3
0
Loading...

Context

An ads ranking system serves ads via an auction. You want to uprank Shop Ads relative to Website Ads to improve user conversion and help certain advertisers.

Task

Design (at a high level) an algorithmic approach for ranking that incorporates the “Shop Ads” preference.

Cover:

  1. Objective function : What are you optimizing (e.g., expected value, user utility, revenue)? How do you handle multiple stakeholders (users, advertisers, platform)?
  2. Modeling approach : What predictions do you need (CTR, CVR, purchase value)? Any special considerations for Shop Ads vs Website Ads?
  3. How to incorporate uprank without breaking the auction (e.g., boost factor, constraint, or multi-objective optimization).
  4. Training data & labels : delayed conversions, missing data (privacy), selection bias from prior ranking.
  5. Offline + online evaluation : what offline metrics, counterfactual evaluation methods, and online tests would you run?
  6. Key risks : feedback loops, calibration issues, fairness across advertiser sizes, cold start.

You may assume the platform currently ranks ads by something like score = bid * pCTR * pCVR * value (or a learned equivalent).

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More Meta•More Data Scientist•Meta Data Scientist•Meta Machine Learning•Data Scientist Machine Learning
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.