AdTech

Programmatic Advertising & AdTech Architecture

Publisher, ad server, SSP, exchange, DSP and advertiser: how one page view becomes an auction, and where it breaks.

By the Kensaltensi team · Last updated 27 October 2026 · 9 min read

When a page loads and an advertisement appears, it is easy to assume that a publisher simply chose an ad. In programmatic advertising, almost the opposite is true. In the fraction of a second between the page starting to load and the ad slot being filled, the opportunity to show an ad has been described in a data message, sent to several companies, evaluated by automated bidding systems, run through an auction, and resolved into a winner. This guide explains the components and how they connect, so that product, engineering and QA teams can reason about the system and debug it.

The cast of systems

Terminology in AdTech is inconsistent, and companies often straddle categories. The table describes the function each role performs, which is more reliable than product names.

RoleWhat it doesWho it works for
PublisherOwns the site or app and the ad slots on it; decides which demand may competeItself
Ad serverDecides what ultimately renders in a slot, applies direct-sold campaigns and tracks deliveryPublisher (or advertiser, for third-party ad serving)
SSP (supply-side platform)Packages and sells publisher inventory to many buyers, applying floors and rulesPublisher
Ad exchangeRuns the auction that connects supply and demand and returns a winnerNeutral marketplace
DSP (demand-side platform)Evaluates opportunities and bids on behalf of advertisers, using targeting, budget and pacing rulesAdvertiser or agency
Advertiser and agencyDefine campaign goals, budgets, audiences and creativesThemselves
Verification and measurement vendorsCheck viewability, brand safety and invalid trafficUsually the buyer, sometimes the seller
Data and identity providersSupply audience or contextual signals and identity resolutionBuyers and sellers

In real deployments one company may operate an SSP and an exchange together, and some ad servers include exchange functionality. What matters for engineering is the role in the request path: who emits the request, who forwards it, who bids, and who decides the winner.

The life of one impression

  1. Page load and slot definitionThe page requests ads for its slots. Each slot has a size, position and identifier, and the page carries context such as URL and content category.
  2. Header bidding or ad-server callA wrapper (commonly Prebid) can solicit bids from several demand partners in parallel before the ad server is called. See our header bidding guide.
  3. Bid request creationThe SSP or exchange turns the opportunity into an OpenRTB bid request describing the impression, the site or app, the device, privacy signals and the supply chain.
  4. Fan-out to buyersThe request is sent to eligible DSPs, often thousands of times per second, each with a strict response deadline.
  5. Bidding decisionEach DSP decides whether to bid and at what price, based on targeting, budget, pacing, creative eligibility and predicted value, then replies with a bid response or declines.
  6. AuctionThe exchange removes invalid or late bids, applies floors and rules, and picks a winner by the auction mechanism in use.
  7. Competition with other demandThe winning programmatic bid may still compete against direct-sold campaigns or other header-bidding results in the ad server.
  8. Rendering and notificationsThe winning creative is delivered and rendered. Win, billing and impression notices are fired so that each system can record the outcome.
  9. MeasurementViewability, click and verification beacons report what actually happened on the page.

This entire sequence has to fit in a very small time budget. A header-bidding auction on a page commonly allows around one to two seconds overall, and each individual request to a DSP is typically allowed far less, often on the order of a few hundred milliseconds or less. Any component that is slow does not fail loudly; it simply gets excluded, and revenue quietly drops.

Header bidding versus waterfall

Historically, publishers used a waterfall: the ad server called demand sources one after another in a fixed priority order, and the first to fill the slot won, even if a later source would have paid more. Header bidding replaced this with a unified, parallel auction in which several sources bid at once and the highest bid goes on to compete in the ad server. The change increased competition for impressions but added front-end complexity, page-weight and latency concerns, which is why many publishers also use server-side auctions, where one request from the page fans out to bidders on a server.

How the auction decides

Two main auction models exist. In a second-price auction the winner pays one increment above the next-highest bid, which gives bidders little reason to shade their bids. In a first-price auction the winner pays what they bid. Between roughly 2017 and 2019, much of the market moved from second-price to first-price, which led DSPs to adopt bid shading: algorithms that estimate the minimum price needed to win, rather than bidding the full value. Publishers can influence outcomes through floor prices, a minimum acceptable bid that may be fixed, dynamic or set per buyer.

Not all buying happens in the open auction. The main deal types are:

  • Open auction: any eligible buyer can bid.
  • Private marketplace (PMP) or private auction: a publisher invites selected buyers to bid on defined inventory, identified by a deal ID.
  • Preferred deal: a buyer gets first look at inventory at a fixed price, with no commitment to buy.
  • Programmatic guaranteed: a fixed volume at a fixed price, committed on both sides, but executed through programmatic pipes.

Bid requests carry privacy signals alongside the ad opportunity. In Europe and the UK, a consent string produced by a consent management platform follows the IAB Transparency and Consent Framework; in other regions, signals such as the Global Privacy Platform string or US state-level opt-out flags apply. A DSP that does not see a valid signal may refuse to bid or may bid without using personal data. Because privacy rules and browser identifier support continue to change, treat this part of the stack as one that needs regular review rather than a one-time setup.

Targeting without cross-site identifiers increasingly relies on contextual signals (page content, category, location at a coarse level), first-party data held by the publisher or advertiser, and privacy-preserving identity solutions. For QA this means that the same inventory can behave differently depending on region, consent state and browser, so tests must cover those variations.

What "an impression" means

One of the most common sources of confusion is that "impression" is not a single event. Each stage counts something different:

StageWhat is counted
Bid requestAn opportunity offered to a buyer
BidA buyer's offered price and creative
WinThe auction chose this bid, before the ad has been shown
ServedThe ad server returned the creative
Rendered (billable) impressionThe creative began to load or display, as defined by the counting system
Viewable impressionEnough of the ad was visible for long enough. The Media Rating Council standard for display is at least half the pixels in view for one continuous second, and for video at least two continuous seconds

A bid win therefore does not guarantee a rendered impression. The creative might fail to load, the page might be closed, or a higher-priority line item in the ad server might take the slot. Always name the metric when you compare numbers.

Why reports disagree

Publisher, SSP, DSP and verification reports rarely match exactly, and a gap is not by itself a defect. Typical causes include:

  • Different counting points, such as win notice, ad-server delivery, creative render or viewability beacon.
  • Time zone and cut-off differences between systems, causing events near midnight to fall on different days.
  • Invalid-traffic filtering, applied at different stages and with different rules.
  • Latency and late events: notices that arrive after a reporting window closes.
  • Retries and duplicates, which one system dedupes and another does not.
  • Currency conversion and fee treatment, where gross and net values are compared by mistake.

Many teams treat a difference beyond roughly ten percent between comparable metrics as worth investigating, but the right threshold depends on volume and the metrics involved. The first step is always to align definitions, time windows and currency before looking for a bug.

Transparency and trust files

Because inventory is resold through multiple intermediaries, the industry created mechanisms so that buyers can verify who is authorised to sell what. ads.txt lets a publisher list the companies authorised to sell its inventory. sellers.json lets an SSP or exchange disclose the identity of the sellers it represents, and the SupplyChain object travels with each bid request to show the path it took. These help buyers avoid fraudulent resellers, but they do not replace integration testing; a perfectly valid authorisation file cannot fix a malformed request, a timeout or a creative that fails to render. See our guide to ads.txt and sellers.json for how to read and debug them.

A staged troubleshooting sequence

When revenue drops or fill rate falls, resist the urge to inspect everything at once. Follow the path of the request in order and stop at the first stage that fails:

  1. Opportunity: confirm the page requests ads and slots are defined correctly.
  2. Demand reach: verify each expected partner actually received a request.
  3. Request quality: inspect the real payload for required fields, privacy signals and supply-chain data.
  4. Bid response: look at bid rate, no-bid reason codes, timeouts and response sizes.
  5. Auction outcome: check floors, deal eligibility and why a bid lost.
  6. Delivery: confirm the winner reaches the ad server and is not out-prioritised.
  7. Rendering and tracking: verify the creative displays and impression beacons fire.
  8. Reporting: compare numbers only after aligning metric definition, window and currency.

Thinking in stages turns a vague complaint like "revenue is down" into a specific, testable question like "bid requests are reaching this DSP, but 40 percent now time out".

Where blockchain fits, and where it does not

Some projects, including decentralised ad exchanges, explore using public ledgers for tamper-evident records of auctions, settlement or supply-chain data, with the aim of making disputes easier to resolve. The idea is plausible for record-keeping, but it does not remove the performance constraints described above. Real-time bidding has to complete in milliseconds, so the auction itself still runs off-chain, with the ledger used for settlement or audit. If you are assessing such a design, our guide on when blockchain is the right choice offers a framework.

Key takeaways

  • A programmatic ad is the result of a chain of systems exchanging OpenRTB messages inside a time budget measured in milliseconds.
  • Roles overlap in practice. Understand what each component does in the request path rather than relying on product labels.
  • A won auction is not a rendered impression, and a rendered impression is not a viewable one. Always name the metric.
  • Most reporting differences come from counting at different points, not from one system being wrong.
  • Debug in stages, in the order the request travels, and inspect the real payloads rather than the configuration.

Related guides

Further reading

About this guide. Written by the Kensaltensi engineering and QA team for educational purposes. Examples are illustrative, and standards evolve, so check the primary sources above before relying on a detail in production. If you spot an error or an out-of-date statement, email hello@kensaltensi.org and we will review and correct it.