-
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
YIELDONE adapter - add buildRequests payload params #3611
YIELDONE adapter - add buildRequests payload params #3611
Conversation
modules/yieldoneBidAdapter.js
Outdated
payload.tmax = window.PREBID_TIMEOUT; | ||
} else if (window.pbjsTimeout) { | ||
payload.tmax = window.pbjsTimeout; | ||
} |
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.
Hello @kusapan
One suggestion is you can utilize the PBJS config
in order to also get the bidderTimeout.
This value will always be set.
payload.tmax = config.getConfig('bidderTimeout');
example:
timeout: config.getConfig('bidderTimeout'), |
This value is set by the publisher by:
pbjs.setConfig({
bidderTimeout: 850
});
If it is not explicitly set by the publisher, then it defaults to 3000
.
This number is the milliseconds that Prebid gives it's bidders to come back in time for the auction.
So I think it is a good value to send as your tmax
.
If there are other reasonings or use cases I am unaware of as to why it would not be included please let me know!
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.
Hello @robertrmartinez
Thank you for reviewing.
Our team talks about how to handle tmax.
In this PR, tmax was deleted.
please confirm this.
it('adUnitCode should be sent as uc parameters on any requests', function () { | ||
expect(request[0].data.uc).to.equal('adunit-code1'); | ||
expect(request[1].data.uc).to.equal('adunit-code2'); | ||
}); |
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.
Thanks for adding a unit test!
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.
LGTM
Type of change
Description of change
uc
adUnitCodetmax
timeout setting by publishersample page
contact email of the adapter’s maintainer y1dev@platform-one.co.jp