-
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 Core: TTL counts only when page is active #11803
Conversation
isn't the bid TTL an hard cut off, from delivery? e.g. we've seen SSP's rejecting bids if the bid get's executed after delivery time + TTL expired. taking only focus time could attribute to executing the bid after it's ttl? |
@olafbuitelaar this doesn't change the effect TTL has on which bids are picked, it's to fix an edge case (#11268) where:
in theory it shouldn't matter since the bid expired, but many bidders don't really have TTLs (a lot just hardcode some random number) or don't enforce it. |
b485987
to
ccf7b14
Compare
src/utils/focusTimeout.js
Outdated
setFocusTimeout(callback, timeOutOfFocus - startTime); | ||
} | ||
}, milliseconds); | ||
return timerId; |
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.
the false return value came back!
6b12f54
to
5302580
Compare
* 11268 TTL counts only when page is active * refactor * refactor due to performance optimization * get rid of false timer id --------- Co-authored-by: Marcin Komorski <marcinkomorski@Marcins-MacBook-Pro.local>
Type of change
Bugfix
Feature
New bidder adapter
Updated bidder adapter
Code style update (formatting, local variables)
Refactoring (no functional changes, no api changes)
Build related changes
CI related changes
Does this change affect user-facing APIs or examples documented on http://prebid.org?
Other
Description of change
Other information
#11268