You open a news story. Before the headline has finished painting on the screen, your browser has already sent a request to an advertising server, that server has called an auction among several dozen buyers, and one of them has won the right to show you an ad. The whole process — from the moment the banner slot is declared to the moment the creative arrives — has to fit into a budget of one hundred to three hundred milliseconds. If a single link in the chain runs late, the slot stays empty and nobody gets paid. That race against the clock is programmatic advertising, and its central piece is called real-time bidding (RTB): the buying and selling of ad impressions in real time.
The circuit: from the tag to the bidder
The journey starts in the page’s HTML, where an ad tag lives. A script — the ad server, for example Google Ad Manager, or a header bidding library such as Prebid.js — gathers the details of the slot (size, format, position, whether it is video or display) and calls one or more supply-side platforms (SSPs), the platforms that represent the publisher selling the space.
Each SSP translates that call into a standardised message: an OpenRTB request, the JSON protocol almost the whole industry speaks. Inside travel blocks describing the inventory (imp), the site or app (site), the device (device), the user identifiers (user) and one key field, tmax: the maximum time, in milliseconds, granted to the buyer to answer. Typical values: between 80 and 200 ms. The SSP fans that request out to the demand-side platforms (DSPs), which bid on behalf of advertisers.
The DSP has to decide within that window whether the impression is worth it and how much to pay. To do so it runs a model that estimates the probability of you clicking or buying — the so-called pCTR — and multiplies it by the value the advertiser assigns to that conversion. The entire calculation uses the features that arrived in the request: time, approximate location, device type, history tied to your identifier. There is no time to query slow databases, so DSPs work with in-memory models and precomputed feature tables.
Who wins and how much they pay
With the bids in hand, the SSP settles the auction. The classic model is second price: the highest bid wins but pays only a cent above the runner-up. The idea, inherited from keyword auctions, is that each buyer should offer its true value instead of speculating. In practice the system drifted: SSPs began charging first price and DSPs responded with bid shading, a statistical correction that trims the bid so as not to overpay. Today first-price, second-price and hybrid variants coexist, and the buyer has to guess which game it is playing.
Before bidding, the publisher usually sets a floor price: below that figure it will not sell. A high floor protects the CPM — the cost per thousand impressions — but if it is badly calibrated the slot stays empty and the publisher loses that revenue. Finding the balance is now one of the most automated tasks in the chain: floors are recalculated per auction and per segment with elasticity models.
The bottleneck is not money, it is the clock. The browser will not wait indefinitely: if the answer does not arrive in time, the slot collapses and the page reflows without an ad. That is why modern header bidding has moved to the server. Instead of the browser calling ten SSPs in parallel — ten connections, ten cookies and ten chances for one of them to be slow — a single call goes to an intermediate server that runs all the auctions and returns the winner. Less latency, fewer data leaks and one place to apply rules.
The problem of knowing who you are
To bid sensibly, the buyer needs to recognise the user. That is where the third-party cookie comes in, along with its less discussed mechanics: identifier syncing. Every platform has its own, so when a DSP and an SSP meet they exchange pixels or hidden calls to match both identifiers. That cookie matching does not always work: the usual match rate is around 60-70 %, and every point lost is a user who becomes anonymous to the buyer and is worth less.
The ground has shifted a lot. Apple blocked third-party cookies by default in Safari with ITP; Firefox did the same; Google announced their removal in Chrome, postponed it several times and in 2025 ultimately reversed course, leaving the choice to the user. In parallel came the browser’s own alternative: the Privacy Sandbox APIs. Topics summarises your interests on the device into a handful of labels grouped by week, and Protected Audience runs the auction inside the browser, without the profile leaving your machine and with k-anonymity thresholds that prevent identifying individuals. The price is technical: less signal per request, more local computation and much harder measurement.
On top of that comes the legal framework. In Europe, consent travels through the IAB’s TCF standard — now version 2.2 — a chain of permissions carried inside the request that the DSP must honour field by field. A break in that chain is not a compliance detail: it is a bid that cannot be made.
What gets measured (and what gets faked)
A paid impression does not guarantee that anyone saw it. The industry standard, set by the Media Rating Council, counts a display ad as “viewable” when at least 50 % of its pixels have been on screen for one continuous second; for video, two seconds. The metric is measured with browser APIs that report intersection with the viewport, and audited by independent verification scripts.
The other front is fraud. Part of the inventory is consumed by bots: device farms, automated browsers, apps that load ads off-screen. Detection systems (invalid traffic) cross behavioural signals, IP reputation and traffic patterns to filter before bidding, and platforms later discount suspicious impressions. It is not a won war: it is a continuous race in which every detection improvement pushes fraud to imitate humans better.
When the ad finally wins and paints, almost nobody thinks about the chain that just ran: a JSON request, an auction among two or three dozen bidders, a click model evaluated in microseconds and a decision about your identity taken with the little the browser was willing to share. The next time you see a banner, be clear that you were not looking at advertising: you were watching the result of an auction.






