-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prebid Auctions #386
Prebid Auctions #386
Conversation
e3f54b5
to
f858ae0
Compare
@mkendall07 for discussion |
What's the story with the "on hold" label? |
@nedstankus |
The Prebid Auction is introduced, making it possible to manage a series of auction events. Previously Prebid handled only one auction at a time. With this PR the `pbjs.adUnits` and `pbjs.bidderSettings` are moved to an `auction` instance. Auctions can be run concurrently, so for example if different groupings of ad placements have different configurations, auctions for each placement group can both be requested at page load and run asynchronously. Be aware that if multiple auctions are run concurrently for the same placement the last auction winner creative will replace any previous winner.
f858ae0
to
64dcd6d
Compare
bidmanager.addBidResponse(bids[i].placementCode, adResponse); | ||
} else { | ||
// Indicate an ad was not returned | ||
adResponse = bidfactory.createBid(2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to pass bid ID for requested bid here.
We are going to close this PR and handling the concurrent bid request issue by queuing requests rather than creating auction instances. This keeps the singleton architecture of Prebid.js, at least for now, and we will work with each bidder team towards the changes needed within each adapter to achieve auction instances if that is defined as a roadmap priority by the Prebid Core Team. Issues #333 and #360 will be accommodated by the bid request queue approach. |
Prebid Auctions are implemented which enables instances of Prebid requests, responses and ad renders. This PR also includes the API changes needed to make concurrent requests for multiple placements, to queue up the next set of placements (for example, in an image carousel app) and to connect bid requests with bid responses across auction instances for greater level of analytics details.