-
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
Userid module: propagate ortb2.user.ext.eids to userIdsAsEids even if no UserId submodules #12477
Userid module: propagate ortb2.user.ext.eids to userIdsAsEids even if no UserId submodules #12477
Conversation
looks like there are some test failures this change causes - we are looking into them. |
It's on our end. Pr up to fix issue |
Try merging in Master |
modules/userId/index.js
Outdated
@@ -1211,6 +1223,10 @@ export function init(config, {delay = GreedyPromise.timeout} = {}) { | |||
initIdSystem({ready: true}); | |||
} | |||
} | |||
if (!addedUserIdHook && !startAuction.getHooks({hook: addUserIdsHook}).length) { |
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.
I'd put it outside of the config listener - like this. Do you have a reason to prefer it here? I'm thinking that without any submodules, you wouldn't get any configuration either.
Type of change
Description of change
Addresses #12458 - we've spotted the issue that if there are no UserId submodules added - the
bidRequest.userIdsAsEids
is empty, while some bid adapters peak into it instead ofortb2.user.ext.eids
. This PR addresses this issue by adding calling corresponding hook that would propagate eids intobidRequest.userIdsAsEids
regardless of the submodules presence.