Skip to content

Undertone Bid Adapter: restore user ID support via EIDs - #16311

Merged
patmmccann merged 41 commits into
prebid:masterfrom
PerionNet:agent/undertone-send-eids-as-uids
Nov 23, 2026
Merged

patmmccann merged 41 commits into
prebid:masterfrom
PerionNet:agent/undertone-send-eids-as-uids

Conversation

@tamarm-p

Copy link
Copy Markdown
Contributor

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.userId is no longer populated. The Undertone adapter built commons.uids from validBidRequests[0].userId, so it has sent no user IDs since then: the value was always undefined and dropped by JSON.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-set user.eids into user.ext.eids before 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.eids first, so neither source is lost.

uids is left out when there are no EIDs, so those requests are unchanged. bid.userIdAsEids isn't read separately because it's a getter for the same ortb2.user.ext.eids array. The EIDs have already passed Prebid's consent and transmitEids activity controls.

omerko and others added 30 commits May 30, 2018 16:36
…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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T13:40:35.389590Z 1d0cd66 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@patmmccann
patmmccann merged commit 47b92e0 into prebid:master Nov 23, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants