Skip to content
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

Merged
merged 10 commits into from
Nov 23, 2024

Conversation

justadreamer
Copy link
Contributor

Type of change

  • Enhancement

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 of ortb2.user.ext.eids. This PR addresses this issue by adding calling corresponding hook that would propagate eids into bidRequest.userIdsAsEids regardless of the submodules presence.

@justadreamer
Copy link
Contributor Author

justadreamer commented Nov 20, 2024

looks like there are some test failures this change causes - we are looking into them.

@ChrisHuie
Copy link
Collaborator

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

@patmmccann
Copy link
Collaborator

Try merging in Master

@patmmccann patmmccann changed the title propagate ortb2.user.ext.eids to userIdsAsEids even if no UserId submodules Userid module: propagate ortb2.user.ext.eids to userIdsAsEids even if no UserId submodules Nov 21, 2024
@@ -1211,6 +1223,10 @@ export function init(config, {delay = GreedyPromise.timeout} = {}) {
initIdSystem({ready: true});
}
}
if (!addedUserIdHook && !startAuction.getHooks({hook: addUserIdsHook}).length) {
Copy link
Collaborator

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.

@patmmccann patmmccann merged commit 9361e17 into prebid:master Nov 23, 2024
6 checks passed
hogekai pushed a commit to hogekai/Prebid.js that referenced this pull request Nov 26, 2024
… no UserId submodules (prebid#12477)

* userId module: temp fix empty bid.userIdAsEids

* userId module: fix empty bid.userIdAsEids

* userId module: fix empty bid.userIdAsEids

* userId module: fix empty bid.userIdAsEids

* userId module: fix tests

* userId module: prevent re-adding addUserIdsHook hook

* userId module: mode adding addUserIdsHook, added test

---------

Co-authored-by: Konstantin Mikhalyov <[email protected]>
Co-authored-by: Bohdan V <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants