Design Radius-Based Geotargeting for Local Business Ads
Last updated: November 29, 2026
Quick Overview
Design the targeting system that lets local businesses advertise on Facebook and Instagram to people within a radius of their store (for example 5 miles) or within chosen regions, using users' current or home locations while respecting privacy settings.
Meta
November 29, 20260
0
0 solved
Design the targeting system that lets local businesses advertise on Facebook and Instagram to people within a radius of their store (for example 5 miles) or within chosen regions, using users' current or home locations while respecting privacy settings.
Meta's ads platform serves millions of small businesses whose main targeting is local. The interviewer checks how you derive a user's location signal, index ads by geography so eligibility is fast at auction time, and handle the different meanings of location (lives here, recently here, traveling).
What the Interviewer Expects
- Define location signals for users and their privacy limits
- Index ads geographically for fast eligibility checks
- Support radius and region targeting with cell coverings
- Handle location types: home, recent, traveling
- Estimate audience size for advertisers during setup
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How would you estimate the reach number shown in Ads Manager for a 3-mile radius?
- What do you do for users with location services turned off?
- How do you prevent targeting radii so small they single out individuals?
- How do you handle an ad targeting 2,000 store locations at once?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: advertisers specify one or more pins with radius (with a minimum, such as 1 mile) or regions (cities, zip codes, countries), and location type (people living in, recently in, or travel...
High-Level Design
A location signal pipeline computes for each user: home region (stable, from profile, IP history and connections), recent location (from device location if permitted, otherwise IP), and a travelin...