Preparing your design workspace

Loading the problem and your saved attempt…

Design an Advertising Campaign Metrics Tracker

Model how an advertiser creates campaigns, records ad events, and reads campaign metrics.

An advertiser-facing platform needs an object-oriented design for tracking advertising metrics. For this exercise, assume an advertiser owns campaigns with stable IDs and can create or pause a campaign. The tracker accepts impression and click events, each with a unique event ID, campaign ID, and UTC occurrence time.

It returns impression and click counts for one campaign over a half-open UTC time interval. A repeated event ID must not change totals. Events for unknown campaigns are rejected, and a paused campaign rejects new events while preserving its past metrics.

Billing, cross-device attribution, ad targeting, ranking models, and distributed deployment are outside scope. Design the responsibilities, interfaces, and interactions; explain one accepted event, one retry, and one metric query. State any further assumptions you need.

The interview report identifies only an advertiser platform for tracking ad metrics; the specific journey and rules above are authored practice assumptions.