prebid / Prebid.js

Setup and manage header bidding advertising partners without writing code or confusing line items. Prebid.js is open source and free.
https://docs.prebid.org
Apache License 2.0
1.33k stars 2.08k forks source link

A different type of timeout #56

Closed prebid closed 8 years ago

prebid commented 9 years ago

As a publisher, I want prebid.js to trigger DFP immediately after the first bid came back after a specified time, so that I can speed up the adserver latency.

Today's setTimeout behavior:

If setTimeout is at 500ms, bidder A took 600ms, bidder B took 800ms, no header bidding happens.

New timeout behavior:

If the "soft" timeout is at 500ms, bidder A took 600ms, bidder B took 800ms, at 500ms, prebid.js will wait until the first bid is back. Thus at 600ms, prebid.js will attach bidder A's bid to the adserver impression and triggers adserver.

To prevent all bids took forever to return, the publisher should still set the normal setTimeout at a number larger than the "soft" timeout, e.g. 700ms in this case.

prebid commented 8 years ago

Too complicated to understand, debug, or maintain.