-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add new s2s config option #3643
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
Add new s2s config option #3643
Conversation
Hello Prebid team, Thank you |
I'm empathetic with this hook - we had a similar issue resolved by relying on the s2sConfig.accountId, but that doesn't work if we're not the host. Assigning to @mkendall07 to approve the API change. |
* @param {function} done an exit callback; to signify this pixel has either: finished rendering or something went wrong | ||
*/ | ||
function doPreBidderSync(type, url, bidder, done) { | ||
if (typeof _s2sConfig.syncUrlModifier[bidder] === 'function') { |
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.
Should this be testing for syncUrlModifier before attempting to index into bidder
?
i.e.
if (_s2sConfig.syncUrlModifier and typeof _s2sConfig.syncUrlModifier[bidder] === 'function')
This has the slight disadvantage of making the s2s config not JSON configurable. If folks are ok with that tradeoff I don't mind approving. |
Rubicon is ok with this approach. (thomas-33across - thanks for adding the object check) |
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.
This LGTM. We just need a documentation PR and then can merge.
Hello prebid team Thank you |
Merging. |
Type of change
Description of change
Adding a new option in the s2s configuration, which allow bidder to modify the sync url before the actual call to the sync endpoint. This enable bidder to have customization over the url, and also enable them to add custom params
For any changes that affect user-facing APIs or example code documented on http://prebid.org, please provide:
update s2s config params prebid.github.io#1216