-
Notifications
You must be signed in to change notification settings - Fork 2k
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
PBS adapter: add tmaxmax #11540
Merged
Merged
PBS adapter: add tmaxmax #11540
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1659209
Merge pull request #1586 from prebid/master
jefftmahoney a49852a
Merge branch 'master' of https://github.com/sharethrough/Prebid.js-in…
jefftmahoney bc2e207
Merge branch 'master' of https://github.com/sharethrough/Prebid.js-in…
jefftmahoney 25e0e24
Merge branch 'master' of https://github.com/sharethrough/Prebid.js-in…
jefftmahoney c5495ba
Merge branch 'master' of https://github.com/sharethrough/Prebid.js-in…
jefftmahoney 18c8328
Merge branch 'master' of https://github.com/sharethrough/Prebid.js-in…
jefftmahoney 6a2a7cd
Update logic to determine tmax
jefftmahoney b3b3ca4
Update tmaxmax logic and test
jefftmahoney 4bb1b47
Use requestBidsTimeout for tmaxmax alternative
jefftmahoney f20d821
Update prebidServerBidAdapter_spec.js
jefftmahoney File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
After testing this I realized there's a few more steps to take.
proxyBidderRequest.timeout
here is undefined as it's filtered out here. However, it turns out thattimeout
is not the one we want:Prebid.js/src/adapterManager.js
Line 315 in 8620ae4
my suggestion is to add
requestBidsTimeout
here:Prebid.js/src/adapterManager.js
Line 423 in 8620ae4
and then pick it up from here (should be available under
context.s2sBidRequest
)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.
Cool. I've made the suggested changes - or what I understand the suggested changes to be - with
4bb1b47
. Happy to answer any questions or follow up as needed!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.
@dgirardi actually, I just tried running my test where I just do this
And my test (line 791 of
prebidServerBidAdapter_spec.js
) fails because the actual value is undefined. Which I guess meansrequestBidsTimeout
is undefined.I think this means that I need to do additional test-data setup to mimic
requestBidsTimeout
being available in a real-world scenario.I'll dig more into this and let you know if further logic changes are required in
ortbConverter.js
,adapterManager.js
or elsewhere.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.
Only if you add a test case that covers the fallback - which I won't object to. Currently it should pass as it only checks that the input
tmaxmax
has precedence.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.
Cool. I can verify that it does pass in its current iteration. I'll try adding a fallback test too in a little bit.
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.
OK, fallback test added.