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.28k stars 2.05k forks source link

Question about TIMEOUT vs PREBID_TIMEOUT vs FAILSAFE_TIMEOUT #3007

Closed headerbidding closed 6 years ago

headerbidding commented 6 years ago

Question

The timeout in the Prebid Basic example changed from: var TIMEOUT = 2000;

To: var PREBID_TIMEOUT = 1000; var FAILSAFE_TIMEOUT = 3000;

I could not find any documentation on the PREBID_TIMEOUT and FAILSAFE_TIMEOUT

Can anyone explain?

SliriK commented 6 years ago

If I am not mistaken, the PREBID_TIMEOUT is somewhat similiar (if not the same) to the old TIMEOUT variable. This is the maximum time to wait for the auction before calling the ad server (and of course, any bid responses received after this timeout will be ignored).

The FAILSAFE_TIMEOUT is intended for the cases in which for some reason the Prebid did not load properly or some other issue occurs. In such cases, this timeout is used to give back the control to the ad server (call the initAdserver() function).

jsnellbaker commented 6 years ago

Hi @headerbidding The explanation provided by @SliriK is correct. If you have any additional questions on this topic, please let us know.

I have also submitted a PR in the prebid docs repo to add some clarity of these timeout settings on the Prebid site's FAQ page.