Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 18ca854

Browse files
Merge pull request #16 from guardian/kc-timeout-fix
Fix hb_ttr value when auction times out
2 parents 62f00f7 + a8325ee commit 18ca854

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build/dist/prebid.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/targeting.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ export function newTargeting(auctionManager) {
8080
});
8181

8282
const winningBid = winningBidTargeting.length > 0;
83-
const allBidsReceived = bidsReceived.length === auctionManager.getBidsRequested().length;
84-
if (!(winningBid || allBidsReceived)) {
83+
const someBidTimedOut = auctionManager.getBidsRequested().some((bidRequest) => bidRequest.doneCbCallCount === 0);
84+
if (!winningBid && someBidTimedOut) {
8585
addTimedOutIncompleteAuction(adUnitCodes[0], targeting);
8686
}
8787

0 commit comments

Comments
 (0)