An ad server stores ad files, decides which one fills a slot and counts impressions and clicks afterwards. It is not an ad network or an exchange, though it usually connects to both.
Publishers and advertisers each run their own
The same technology serves two different jobs, and mixing them up is the most common confusion in programmatic. A publisher’s ad server (first-party) picks which ad goes into each slot on the site. An advertiser’s ad server (third-party) holds the creative and measures what the campaign achieves.
| Publisher side | Choose the ad to show, record how users interact with it, track revenue |
| Advertiser side | Track conversions and performance, manage budgets and creatives, set targeting |
The advertiser uploads a creative once.
After that, swapping or adding material happens in one place instead of by emailing files to every site, and every publisher running the tag picks up the change on the next request, usually within minutes.
What happens between the page request and the ad
The whole exchange takes a fraction of a second.
For a publisher’s own ad server the sequence looks like this.

- A visitor requests a page and the browser starts loading it.
- The page asks the ad server to fill an open slot.
- The ad server picks matching creatives from what it knows about the visitor (location and interests among other signals, within consent limits).
- The chosen line items enter a real-time bidding auction for the impression.
- The winner’s ad is sent to the page.
With an advertiser’s third-party server the first four steps are the same and the end changes. The winning bid returns a URL that points to the advertiser’s ad server, the browser calls that URL, and the advertiser’s server delivers the creative and logs the impression. That extra browser call can add load time, and it is also where the advertiser’s measurement happens, which is why publishers and advertisers sometimes report slightly different impression counts for the same campaign and spend a week arguing about the gap.
Local or remote
A local ad server belongs to one publisher and manages that publisher’s campaigns. A remote one is run by a provider and serves many publishers, which describes Google Ad Manager. I would not host one yourself unless ad revenue justifies a person to run it, because ad operations is a daily job of trafficking campaigns, fixing broken creatives, chasing discrepancies and watching delivery against bookings.
Exchanges
Ad servers connect to DSPs, SSPs, ad networks and ad exchanges, the marketplaces where buying and selling happens.
First price or second price
In 2019 Google announced that Ad Manager would move display and video to a unified first-price auction, where the winner pays what it bid.
Until then second-price had been standard, so bid strategy changed overnight: many buyers lowered bids toward their old closing prices. And floor rules written for second-price auctions stopped working, so publishers had to rebuild them.
What publishers get from the setup
The value for a publisher is easy to state and harder to get, because it depends on how much demand is connected behind the ad server and not on the server itself. One line of code on the page calls the ad from the server, so the creative can change without anyone touching the site. SmartyAds’ explainer on ad servers describes the same model, and the company sells ad tech, so read its benefits as the vendor’s view.
- Fill optimization: format and size picked from what the slot can take
- Targeting by audience parameters, which also improves relevance for users
- Support for banners, video and interactive formats
- Reports for both sides on how advertising performs
- Connections to SSPs, DSPs, networks and exchanges
If you are building the plumbing yourself, see how customized programmatic solutions are created. Is any of it worth building before you have the traffic to fill it? Probably not.
- How to Redo in VS Code (Shortcuts and Fixes) - December 5, 2026
- Scaling Customer Support Without Losing Quality: A Practical Guide for Growing Companies - December 5, 2026
- Top MySQL CDC Tools for Streaming Changes to a Data Warehouse - December 4, 2026



