Add new s2s config option#3643
Add new s2s config option#3643bretg merged 3 commits intoprebid:masterfrom thomas-33across:add_s2s_sync_url_modifier
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.
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) |
mkendall07
left a comment
There was a problem hiding this comment.
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