Repository navigation
Conversation
…r is now optional and not mandatory - undertoneBidAdapter.js * Updated undertone bid adapter tests accordingly - undertoneBidAdapter_spec.js
…r is now optional and not mandatory - undertoneBidAdapter.js * Updated undertone bid adapter tests accordingly - undertoneBidAdapter_spec.js
…r is now optional and not mandatory - undertoneBidAdapter.js * Updated undertone bid adapter tests accordingly - undertoneBidAdapter_spec.js
Fix lint issues
Since Prebid 10.0 bid.userId is no longer populated, so commons.uids has been absent from every request. Send the OpenRTB EIDs from bidderRequest.ortb2.user.ext.eids in commons.uids instead, and leave it out when there are none.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of change
Bugfix
Feature
New bidder adapter
Updated bidder adapter
Code style update (formatting, local variables)
Refactoring (no functional changes, no api changes)
Build related changes
CI related changes
Does this change affect user-facing APIs or examples documented on http://prebid.org?
Other
Description of change
Since Prebid 10.0,
bidRequest.userIdis no longer populated. The Undertone adapter builtcommons.uidsfromvalidBidRequests[0].userId, so it has sent no user IDs since then: the value was alwaysundefinedand dropped byJSON.stringify. #16211 later removed that dead read.This PR restores user IDs by sending the OpenRTB EID array in
commons.uids. The server already reads that field as free-form JSON, so it needs no change. The EIDs come from:bidderRequest.ortb2.user.ext.eids: the standard location, where core merges and deduplicates IDs from the userId module and from publisher config.bidderRequest.ortb2.user.eids: the ORTB 2.6 location. Core moves publisher-setuser.eidsintouser.ext.eidsbefore the auction (src/fpd/normalize.js), but RTD modules run afterwards and can still write here (e.g. 51Degrees). Both arrays are concatenated,user.ext.eidsfirst, so neither source is lost.uidsis left out when there are no EIDs, so those requests are unchanged.bid.userIdAsEidsisn't read separately because it's a getter for the sameortb2.user.ext.eidsarray. The EIDs have already passed Prebid's consent andtransmitEidsactivity controls.Example of the new
commons.uids:[ { "source": "adserver.org", "uids": [{ "id": "123456", "atype": 1, "ext": { "rtiPartner": "TDID" } }] }, { "source": "pubcid.org", "uids": [{ "id": "pubcid-1", "atype": 1 }] } ]