What happens when a Prebid bid expires before it renders?

By default Prebid renders an expired bid anyway and logs one event. How to count expired renders on your pages, and what replaceExpiredBid in 11.53.0 changes.

A linocut print of a covered fish market at closing time: a counter of crushed-ice trays with blank price tickets under a large market clock, and a fishmonger's hands laying one blue fish on an empty tray.

Prebid renders it anyway. Unless you set suppressExpiredRender, a bid that has passed its TTL still draws its creative, and the only trace is an expiredRender event that nobody is listening for. Prebid.js 11.53.0, released on 20 November, adds a third choice: a replaceExpiredBid callback that hands Prebid a fresh bid to render in its place.

Expired renders happen on the slots that show late: lazy-loaded units far down a long article, and interstitials that wait for the next click. Below: how a bid gets old, how to count the expired renders on your own pages, and when the new option is worth turning on.

What a bid's TTL is and who sets it

Every bid response carries a ttl. The Prebid adapter guide defines it as how long, in seconds, Prebid can use the bid, and it is a required field, so every bidder sets one.

The values differ a lot between bidders. In the 11.53.0 source, the Rubicon adapter's default is 360 seconds, OpenX's is 300 and Criteo's is 60. We also counted the literal ttl numbers across the bid adapter files in that release: 300 is the most common, 360 comes second, and 30 and 60 follow. Treat that as a rough picture, since many adapters take the TTL from the bid response or from a constant. The exact number for your bidders is on the page, and the console snippet below prints it.

Prebid decides expiry with a clock comparison. The bid is expired once the time since its response exceeds the TTL minus a buffer. The setConfig reference puts the default ttlBuffer at one second, so a 30-second bid is treated as expired after 29.

How a bid gets old before its slot renders

Prebid's creative runs last. The auction ends, targeting goes to Google Ad Manager, Ad Manager picks the Prebid line item, and only then does the creative ask Prebid to render the bid behind its ad ID. Anything that stretches the time between the bid response and that final call can outlast the TTL.

Lazy loading is the usual cause. Google's lazy loading sample describes it as pausing the requesting and rendering of ads until they approach the viewport. If the page runs one Prebid auction at load for every slot and lets GPT fetch the lower ones on scroll, a bid for the bottom unit waits as long as the visitor takes to get there. Someone who reads for two minutes before scrolling has outlived a 60-second bid. Prebid's own source names the case: the comment on minTargetedBidCacheTTL calls the setting useful with GPT lazy load "when the scroll milestone for render may take a long time".

Interstitials are the harder one. The feature request behind the new option (issue 13838, opened in September 2025) explains that out-of-page slots such as interstitials cannot be refreshed or redefined in GPT once they are set up for an ad. The bid is chosen when the slot is prepared and shown whenever the visitor triggers it.

A refresh that reuses old targeting produces a related event, staleRender: the same bid rendered a second time. The setConfig reference covers it under suppressStaleRender. The check below reports both.

What Prebid does with an expired bid by default

Before rendering, Prebid checks the TTL. If the bid has expired, it fires expiredRender, logs a warning when pbjs_debug=true is on, and then renders the creative. The setConfig reference says so directly: expired winning bids continue to be rendered unless suppressExpiredRender is set to true.

Prebid's docs do not say what the bidder does next. Our reading, and it is ours: the TTL is the bidder's own statement of how long the bid is good for, so a creative shown after it may not be counted or paid the way your Ad Manager report assumes. That is a question to put to each bidder, with your expired-render counts in hand.

Ad Manager will not show you any of this. The Prebid line item won before the creative ran, so by our reading the report looks the same in all three cases in this table.

Setting What happens in the slot What Prebid emits
Default The expired bid's creative renders expiredRender, then the render
suppressExpiredRender: true Prebid renders nothing for that bid expiredRender
replaceExpiredBid (11.53.0 and later) A valid replacement renders. With none, Prebid handles the expired bid as in the rows above expiredRender for the expired bid, then the replacement's render

There is one more way to lose the bid. If you set minBidCacheTTL to keep memory down on a long-lived page, Prebid drops bids from memory after their TTL or that minimum, whichever is greater. A creative that asks for a dropped bid fails with adRenderFailed and the reason cannotFindAd. minTargetedBidCacheTTL exists to keep the bids that already had targeting set.

How to count expired renders on your own pages

Open a long article on your busiest template. Check the TTLs first:

// Every bid Prebid holds, with its age against its ttl
console.table(Object.values(pbjs.getBidResponses()).flatMap(u => u.bids).map(b => ({
  adUnit: b.adUnitCode,
  bidder: b.bidderCode,
  status: b.status,
  ttl: b.ttl,
  ageSec: Math.round((Date.now() - b.responseTimestamp) / 1000)
})));

Any row with status targetingSet and an age close to its TTL is a bid that Ad Manager may still pick. Now wait until the shortest TTL in the table has passed, scroll to the lowest ad unit, and run the second snippet:

// Expired and stale renders since the page loaded
console.table(pbjs.getEvents()
  .filter(e => e.eventType === 'expiredRender' || e.eventType === 'staleRender')
  .map(e => ({ type: e.eventType, adUnit: e.args.adUnitCode, bidder: e.args.bidderCode, ttl: e.args.ttl })));

An empty table on a page you scrolled slowly is a good result. Rows tell you which ad unit and which bidder. If your config sets eventHistoryTTL, older events are removed from this log, so run the check soon after the scroll.

One visit in your own browser shows that it can happen. To learn how often it does, listen for the event and send it wherever your page metrics go:

pbjs.que.push(function () {
  pbjs.onEvent('expiredRender', function (bid) {
    // send bid.adUnitCode, bid.bidderCode and bid.ttl to your analytics
  });
});

A week of that, split by ad unit, tells you whether you have a problem on one lazy-loaded unit or on none. It is the same before-and-after habit as counting timeouts around a wrapper upgrade, which we covered in Prebid upgrades and bidder timeouts.

What replaceExpiredBid in Prebid 11.53.0 changes

Pull request 16105, merged on 19 November, adds auctionOptions.replaceExpiredBid. Prebid calls it when a bid that is about to render has expired, and renders whatever valid bid it returns. The example from the pull request:

pbjs.setConfig({
  auctionOptions: {
    replaceExpiredBid(expiredBid) {
      return pbjs.getHighestUnusedBidResponseForAdUnitCode(expiredBid.adUnitCode);
    }
  }
});

The callback may also return a promise, for example one that resolves after a fresh auction. The source comment in auction.ts sets the limits, and they are worth reading before you ship it:

  1. The replacement must be for the same ad unit and the same media type, must not be expired itself, and must not have won or rendered already. If it fails any of these, Prebid falls back to the usual handling of the expired bid.
  2. The callback runs at most once per expired bid.
  3. Return each bid for one slot only. The comment warns that returning the same bid for two expired bids at once may render it twice.
  4. A promise delays the render until it resolves. With legacyRender, return the replacement synchronously.
  5. Ad Manager's targeting cannot be updated at that point, so it still reflects the expired bid.

The fifth point matters for reporting. Ad Manager will credit the impression to the expired bid's price bucket and hb_bidder value, while a different bidder's creative was on the page. Any per-bidder comparison between Ad Manager and a bidder's own numbers gets less exact on slots where replacements happen.

As of 24 November the setConfig page on docs.prebid.org does not list the option yet. The pull request and the source comment are the reference for now.

Which fix fits which slot

For lazy-loaded display units, the cheapest fix is to hold the auction closer to the ad request, per slot or per group as it nears the viewport, so the bid is seconds old when Ad Manager sees it. If you keep the single auction at load, turn on suppressExpiredRender only together with an expiredRender handler that runs a new auction and refreshes that slot. The feature request describes this pattern. Suppression without the handler trades an expired creative for an empty ad unit.

For interstitials and other slots GPT will not refresh, replaceExpiredBid is the tool, on 11.53.0 or later. Start with the synchronous version from the pull request and measure how often it finds a valid unused bid before you add a fresh auction inside the callback.

In every case, write down the release date and keep the expiredRender counter running through it. The count should fall on the ad units you changed and stay flat on the rest.

Once the counter exists, a PubPilot on-page rule can keep watching for you: a custom JavaScript rule that returns false when pbjs.getEvents() contains an expiredRender, set to run up to five minutes after the page loads, sends an alert when failures on real page views pass the threshold you chose.

Questions people ask

What is a bid TTL in Prebid.js?
TTL is time to live. Every bid adapter returns it with the bid, in seconds, and the Prebid adapter guide defines it as how long Prebid can use the bid. Prebid subtracts a one-second buffer by default, so a bid with a TTL of 300 counts as expired after 299 seconds. You can read it on any bid from pbjs.getBidResponses().
Does Prebid stop an expired bid from rendering?
Not by default. The setConfig reference says expired winning bids continue to be rendered unless auctionOptions.suppressExpiredRender is true. Prebid checks the TTL before rendering, fires an expiredRender event and, with pbjs_debug on, logs a warning. With the setting on, Prebid renders nothing for that bid, so pair it with a handler that refreshes the slot.
Does replaceExpiredBid change what Ad Manager reports?
No. The option's source comment says the ad server's targeting cannot be updated at that point, so it still reflects the expired bid. Ad Manager reports the line item, price bucket and hb_bidder value of the bid that expired, while Prebid's own events describe the bid that rendered. Compare the two before you trust a per-bidder report on those slots.

Sources

More from the blog