How ad selection works
The full path of an ad request — placement resolution, pre-targeting, limits, targeting, capping, priority tiers, campaign and banner picks, the RTB auction and markup — with worked examples of who wins (and why a Premium campaign with weight 1 beats a Non-guaranteed one with weight 10,000).
Every impression is the result of a fixed elimination pipeline: the ad server starts from all demand attached to one placement and filters it down, stage by stage, until exactly one banner remains — or nothing does, and the placement’s default code is served instead. Knowing the order of the stages tells you why a given ad won and where a missing ad got dropped.
Example. Placement Homepage 300×250 has 6 banners linked. A request from a visitor in Germany arrives: the site’s pre-targeting allows Germany; one banner’s campaign reached its 50,000-impression daily limit and drops; two banners target United States only and drop; one banner’s campaign has a 3-per-day frequency cap this visitor has already used up and drops. Two banners remain — one in a Premium campaign, one in Non-guaranteed — and the Premium one serves, whatever its price or weight. Had the Premium campaign also been out of the running, the Non-guaranteed banner would have served; had that been an OpenRTB banner, the DSPs would have been asked to bid first.
How it works
ad request (tag / API)
→ GDPR gate (only when the network requires TCF consent)
→ resolve placement (placement, zone and site must all be active)
→ supply-side pre-targeting: Site → Zone → Placement
→ limits reached? drop exhausted advertisers / campaigns / banners
→ candidate pool = banners linked to the placement (direct links + Rules matches)
→ format filters (video type and site video requirements, native fit)
→ same-page and competitor exclusions
→ demand-side targeting: Advertiser → Campaign → Banner
→ capping: frequency / click / action / no-click / request caps
→ minimum margin
→ daisy-chaining filter, then the size filter on any-size ad units
→ selection: priority tier → campaign → banner
→ RTB auction, if a programmatic banner was picked
→ markup + macros + tracking → response (or the default code)
Ad serving works from a copy of your setup that each ad server keeps and refreshes. Some saves (a limit, a price, a banner) reach the ad servers in about a second; everything else — a frequency cap, a price adjustment rule — and any update that was missed waits for the next full refresh, every 10 minutes by default. See How current the numbers are.
For the same pipeline numbered step by step, with what stops delivery and what only changes the price, see Delivery controls.
1. Placement resolution and the candidate pool
The ad tag (or API call) carries a placement ID. The server looks the placement up and gathers its demand: every banner linked to it — directly, through auto-linking, or matched by selection rules (how linking works). A banner enters the pool only while it, its campaign, and its advertiser are all active; the placement itself counts only while it, its zone, and its site are all active (see Serving state). A direct link counts only while the linking switch is on for both the banner and the placement, and a Rules match needs Rules on at the demand side (banner, campaign or advertiser) and at the supply side (placement, zone or site).
If the pool is empty, the request ends with no banner and the placement’s default code is served (see Step 9 for which entry points return it).
2. Supply-side pre-targeting: Site → Zone → Placement
Pre-targeting rules on the publisher side run first, broadest scope first, and fail fast: the site’s rules, then the zone’s, then the placement’s. If any level rejects the request (wrong country, blocked domain, off-schedule, and so on), nothing serves — no demand is even considered. Blocked-advertiser / blocked-campaign / blocked-banner lists set at these levels are collected here and applied as exclusions in the later stages.
3. Limits and format filters
Advertisers, campaigns and banners that have exhausted an impression, click, spend, or action limit are removed; a site or placement limit that is reached removes every campaign from the request. Then format compatibility trims the pool:
- a video request keeps only banners matching the requested in-stream type;
- a site that declares video creative requirements drops an uploaded video creative whose file does not meet them (external video, VAST tags and DSP bids are never stopped here);
- a native placement drops banners that lack the fields its template requires, and a non-native placement drops native banners unless it has a native adapter template.
4. Demand-side targeting: Advertiser → Campaign → Banner
Campaigns already shown on this page (unless the campaign is set to show several of its banners on one page), and the competitors of a campaign that was shown, are excluded first. Targeting rules then run per candidate, top of the demand tree first: advertiser rules, then campaign, then banner. A banner survives only if all three levels accept the request. An entity with targeting switched off accepts everything — empty targeting means “serve to all”, not “serve to none”.
5. Capping and minimum margin
Frequency, click, action, no-click and request caps
are evaluated against the requesting viewer. Each cap carries its own subject — cookie,
server-side, or mixed — and a server-side count identifies the viewer by an explicit user ID,
then the cookie, then the device advertising ID (ifa) on apps and connected TV, and last a
fingerprint of IP, user agent and language. Banners and campaigns whose caps are exhausted for
this viewer drop out. If capping empties the pool entirely, the request ends with no banner.
Minimum margin runs after capping, so its price arithmetic is spent only on banners still in the running: a direct banner whose gross does not clear the publisher payout by the required amount is dropped. It skips CPC and CPA demand.
6. Daisy chaining and the size filter
A placement with daisy chaining configured walks its chain in order and serves the first entry that has not already been excluded, as long as fewer than Lookup depth entries were skipped before it; past that, ordinary selection takes over. With View 1-N per entity on, a filter before the walk also drops entries this viewer has already seen enough times and pushes house ads out of the chain while anything else is left. Apply priorities decides how the chain meets the priority tiers of step 7: with it on, the chain runs inside each delivery tier enabled for it; with it off, the chain replaces the tier order, except that a Campaign-type chain still tries its House ads campaigns only after the rest of the chain found nothing.
On a placement whose ad unit is Any size, a banner must also match the width and height the page reported in the request; a banner of any other size is dropped (an unreported size counts as 0×0).
7. Priority tiers, then campaign, then banner
Selection proper runs in three nested picks:
- Priority tier. Campaigns are grouped by delivery priority and the groups are tried in fixed order: Premium → Standard High → Standard Medium → Standard Low → Non-guaranteed → House ads. The first tier that can produce a banner wins; lower tiers are never consulted until the ones above them come up empty. House ads therefore serve only when everything above them did. The order is the order the levels are listed in, not their numeric ids (which run 1, 5, 6, 2, 3, 4) — sort by name, not by id.
- Campaign within the tier. How the campaign is picked depends on the network’s campaign
optimization mode:
- Manual weighting — weighted random by each campaign’s weight (traffic share): a campaign with weight 100 is drawn twice as often as one with weight 50. A campaign with weight 0 cannot win while a competitor in the tier has a weight above 0. House ads carry no weight; when every weight in the tier is zero the pick is uniform, so House ads campaigns rotate evenly whatever their weight field says.
- eCPM optimization — the campaign with the highest known or estimated eCPM for the request’s country wins; ties are broken at random. Campaign weight is not read.
- eCPM optimization with burn-up period — campaigns that are not eCPM-optimized compete on weight first; if the draw lands on an optimized campaign, the one with the best eCPM measured over its burn-up window wins, and a configurable share of traffic goes to a random non-winner so a losing campaign keeps getting data.
- Banner within the campaign. A campaign with conversion-rate (I2C) optimization hands the banner pick to that optimizer first, then CTR optimization if it has that instead; otherwise, or when the optimizer returns no banner, a weighted random pick over the campaign’s surviving banners uses each banner’s weight.
Where randomness enters: the weighted campaign pick in Manual mode and the random tie-breaks in eCPM mode; the weighted banner pick inside the chosen campaign — weights bias, they don’t guarantee, so short-term shares wobble around the configured split; and placements with Refresh after (sec) set, which re-request on a timer and re-run the whole pipeline for each refresh. Weighted rotation is a random pick on each request. It never takes turns, so hour-by-hour shares can look uneven while the daily split still follows the weights.
8. The RTB auction
If the pick lands on a programmatic (OpenRTB DSP) banner, that banner is a placeholder for an auction, not a creative. Bid requests go out to the active DSP partners whose banners are in the tier; each response is then filtered — bids that do not match a private-auction deal are removed, and creatives blocked by creative scanning are removed — and the highest remaining bid wins. What the winner pays is first price unless a second-price setting applies, and a bid below the bid floor (or the deal floor) never wins; see first vs second price. If no acceptable bid arrives, the programmatic banners are excluded and the pick re-runs over the remaining direct demand in the same tier, then the tiers below — so a failed auction still fills with your own ads when possible.
9. Markup and macros
The winning banner’s markup is generated for its type (image, HTML, native, VAST…), all
macros are substituted with request values, and impression tracking
plus the click redirect are attached. If nothing survived the pipeline, the placement’s
default code is returned — that is the moment an external fallback ad server gets its
chance. Not every entry point returns it: Standard, Non-standard, Mobile, Video, Email,
Click-through and Native placements called through the universal JS, AJAX, iframe or standard ad
API do, while a VAST request answers an empty VAST document with an <Error> node, a native JSON
request answers “no ads”, and an Application placement answers an empty response. See
When the default code is returned.
Note: an ad response is not yet an impression. Impressions are counted when the tracking beacon fires in the browser, which is why “deliveries” and “impressions” can differ in reports.
Common situations
One campaign, three banners
Placement Pre-roll Player has three banners linked, all under the campaign Video Preroll Autumn (Standard Low, weight 50). It is the only campaign linked, so it wins the campaign pick every time and the split is decided by banner weight alone:
| Banner | Weight | Share | Probability |
|---|---|---|---|
| Northwind VAST Tag 15s | 50 | 50 ÷ 115 | 43.5 % |
| Northwind Preroll 15s | 40 | 40 ÷ 115 | 34.8 % |
| Northwind Autumn — multi-rendition | 25 | 25 ÷ 115 | 21.7 % |
| Total | 115 | 100 % |
Those are the figures the Banners probability card on the placement reports.
Two tiers, two campaigns
Now the same placement also carries a Premium campaign:
| Campaign | Priority | Campaign weight | Banner | Banner weight |
|---|---|---|---|---|
| Winter Takeover | Premium | 10 | Winter Hero | 1 |
| Video Preroll Autumn | Standard Low | 50 | three banners | 50 / 40 / 25 |
Winter Hero takes 100 % of the traffic. Its weight of 1 against the other campaign’s 50 is irrelevant: the two campaigns are never in the same draw, because Premium is exhausted before Standard Low is looked at. The Video Preroll Autumn banners serve only on requests where Winter Takeover is ineligible — capped out, over its limit, outside its targeting, or out of dates. Priority partitions; weight divides within a partition. They never combine into one score.
Equal weights, unequal impressions
Two campaigns in the same tier, both weight 50, end the day at 70,000 and 30,000 impressions. A weight is a share among the campaigns still eligible for that one request, not a share of the placement’s traffic. Equal weights produce equal delivery only when both campaigns qualify for the same requests. The usual reasons one gets more, in the order to check them:
- Daisy chaining on the placement. The chain is a fixed order: the first creative (or campaign) still eligible takes every request, and one further down serves only while every one above it is capped, limited or targeted out. Banners Probability shows the creative the chain picks with the whole share (daisy chaining).
- Limits and even pacing — a creative or campaign that reached its limit for the day, or is held back to spread its budget, drops out of the pool, and every request it misses goes to the others.
- Frequency capping — a visitor who has seen the creative enough times no longer gets it.
- Targeting (country, device, time) — a request the creative’s rules do not match goes to the others.
- They are not in the same priority tier. A higher tier takes everything it can serve.
- The network does not run Manual mode. In the eCPM modes, campaigns taking part in eCPM optimization are ranked by eCPM, so their weights stop deciding between them.
- The page carries two tags. If a site has codes from two placements (or two networks) in one slot, the slot shows whatever loads, not your rotation.
- Only then the weights.
To split traffic unevenly on purpose, change the weight on the campaigns (or on banners inside one campaign): weights 9 and 1 give roughly 90 % and 10 % of the requests both can serve.
A $20 CPM bid that never wins
A DSP partner bids $20 CPM through an OpenRTB banner in a Non-guaranteed campaign, while a $2 CPM direct campaign sits on Premium. The DSP is never asked: the Premium tier produces a banner, so the walk stops there. To let programmatic compete, put the OpenRTB campaign in the same tier as the direct campaigns and give it the weight you want it to have — the DSP then gets to bid whenever the draw lands on its banner, and its bid competes against other DSP bids, not against your direct prices.
A placement that “stopped serving” after a rule change
A publisher tightens a site-level pre-targeting rule to Germany only; the placement’s delivery in the rest of Europe drops to zero. Nothing was unlinked — step 2 now rejects those requests before any banner is looked at, and the default code is served. Every filtering stage can silently empty the pool; work down the pipeline in order when diagnosing, which is exactly what Ad not serving does.
Misconceptions and gotchas
- “The optimizer is ignoring my best payer.” Priority always beats price. eCPM ranking runs inside one priority tier only — a Premium campaign with a modest eCPM will always outserve a Non-guaranteed campaign with a great one. If you want pure eCPM competition, put the competing campaigns in the same priority tier. This is the single most common cause of such reports.
- “Weight 10,000 beats weight 1.” Only inside one tier. A Premium campaign with weight 1 outserves a Non-guaranteed campaign with weight 10,000 — every time, not usually.
- “Rotation takes turns.” It is a lottery run per request, not a rota. Over a few hundred impressions the realised split wobbles around the configured one; over a few dozen it can look nothing like it.
- “Empty targeting serves to nobody.” An entity with targeting switched off accepts every request. Empty targeting means “serve to all”.
- “A response is an impression.” Impressions are counted when the tracking beacon fires in the browser; a response the page never rendered is a delivery without an impression.
- “House ads with a high weight serve more.” House ads campaigns ignore their weights and rotate evenly, and only when every tier above them is empty.
- “My save is live.” A limit, a price or a banner reaches the ad servers in about a second; a frequency cap, a price adjustment rule or any missed update waits for the next full refresh, every 10 minutes by default.
Where to configure it
| Stage | Where |
|---|---|
| Which banners are in the pool (links, auto-linking, rules) | Hierarchy and linking |
| Supply-side pre-targeting and blocks | Pre-targeting and blocking |
| Limits and pacing | Limits |
| Demand-side targeting | Add targeting rules |
| Frequency, click, action, no-click and request caps | Frequency capping |
| Daisy chaining and the default code | Daisy chaining and passback |
| Priority, weights, the network algorithm and the Banners probability card | Optimization |
| What a winning DSP bid pays | First vs second price |
| Macros in the markup | Macros |