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

Fix hb_ttr value when auction times out #16

Merged
merged 2 commits into from
Mar 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/dist/prebid.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/targeting.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export function newTargeting(auctionManager) {
});

const winningBid = winningBidTargeting.length > 0;
const allBidsReceived = bidsReceived.length === auctionManager.getBidsRequested().length;
if (!(winningBid || allBidsReceived)) {
const someBidTimedOut = auctionManager.getBidsRequested().some((bidRequest) => bidRequest.doneCbCallCount === 0);
if (!winningBid && someBidTimedOut) {
addTimedOutIncompleteAuction(adUnitCodes[0], targeting);
}

Expand Down