The ad slot
When you open a page, the publisher's ad code sends a request to a supply-side platform describing the slot: its size, the website, and often information about the device, location and browsing context, depending on privacy settings and consent.
The bidding
An ad exchange forwards this to many demand-side platforms acting for advertisers. Each uses algorithms to estimate how valuable this impression is for its campaigns and returns a bid within milliseconds.
Choosing a winner
The exchange picks the winner. Many exchanges have moved from second-price auctions, where the winner pays just above the runner-up, to first-price auctions, where the winner pays its bid. The winning ad is then fetched and displayed.
Search ads differ
Search engines run their own auctions for ads beside results. Their rankings combine bid amounts with quality measures such as expected click-through rate and relevance, so the highest bidder does not always take the top spot.
Sources & further reading
Simplified description; systems vary by platform. Photograph: original AI-generated illustration (Adobe Firefly). Reference organisations do not endorse this website.



