Most publishers start by pasting an image and a link straight into their template. That works for exactly one advertiser, and stops working the moment anything changes.

What breaks without one

Two sponsors, one slot. You want them to alternate. Hand-coded HTML cannot rotate.

A campaign that ends on the 14th. Somebody has to remember to remove it. That somebody is you, on a Saturday.

Reporting. You have no idea how many people saw it or clicked. When the sponsor asks, you guess.

A changed banner. They send a new image; you edit your theme and redeploy.

Different ads for different visitors. Impossible.

What an ad server does instead

It sits between your page and the decision about what to show. Your page says "I have a slot called sidebar-top, what goes here?" and the server answers.

That indirection buys you five things:

Rotation. Several campaigns can share a slot, split by weight — 70/30, or evenly, or however you sold it.

Scheduling. A campaign has start and end dates. It appears and disappears on its own.

Targeting. Device, time of day, how many times this visitor has already seen it.

Measurement. Every request, impression, click and conversion is counted, because everything goes through one place.

Change without deploys. Swapping a banner is an upload, not a code change.

The vocabulary

Four words, and they are simpler than they sound.

A campaign is booked onto one or more placements. When a placement is requested, the server picks among the eligible campaigns and returns one of its creatives.

How the request works

  1. Your page loads a small script.
  2. It finds the ad slots on the page and asks the server for all of them in one request.
  3. The server checks which campaigns are eligible — right dates, right targeting, not over their cap, creative approved.
  4. It picks one, weighted by however you split them.
  5. The script draws it.

The whole thing typically takes under 50 milliseconds, and it should never block your page from rendering.

What you should expect it to handle

That last one is worth insisting on. The most common support question in advertising is "why isn't my ad appearing?", and the answer is nearly always one of six things: paused, no creative, out of date range, over its cap, not booked to that slot, or the slot is not on the page.