# System Design Interview: Ad Serving System (Google Ads / Meta Ads)

Source: https://www.techinterview.org/post/3233460537/system-design-ad-serving/
Updated: 2026-04-17 · techinterview.org

Ad serving is at the core of Google and Meta businesses and is one of the highest-stakes systems in the world — a 10ms increase in ad serving latency measurably reduces revenue. Designing an ad system involves real-time bidding, targeting, ranking, click fraud detection, and a billing system — all under strict latency budgets.

## Two Models: Direct Ads vs Real-Time Bidding

| Model | How It Works | Example |
| --- | --- | --- |
| Direct / Reserved | Advertiser buys specific inventory at a fixed price (e.g., homepage banner for $10K/day) | Brand campaigns, sponsorships |
| Real-Time Bidding (RTB) | Ad slot auctioned in real time (

## Frequently Asked Questions

### How does real-time bidding (RTB) work in digital advertising?

## Companies That Ask This Question

- [Atlassian Engineering Interview Guide](/post/3233459919/atlassian-interview/)

- [Meta Engineering Interview Guide](/post/3233460272/meta-interview-guide-2026-facebook-instagram-whatsapp-engineering/)

Asked at: [Twitter/X Interview Guide](https://techinterview.org/twitter-interview/)

Asked at: [Snap Interview Guide](https://techinterview.org/snap-interview/)

Asked at: [Shopify Interview Guide](https://techinterview.org/shopify-interview/)
