Skip to content

Cadent, Nexverse Bid Adapters: read IDs from EIDs/FPD instead of the never-set bidderRequest.userId; Pangle: drop the dead path - #16209

Merged
patmmccann merged 4 commits into
prebid:masterfrom
patmmccann:agent/userid-gate-fixes
Nov 25, 2026
Merged

patmmccann merged 4 commits into
prebid:masterfrom
patmmccann:agent/userid-gate-fixes

Conversation

@patmmccann

@patmmccann patmmccann commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Type of change

  • Bugfix

Description of change

These three adapters only run part of their logic when bidderRequest.userId is set. Prebid never sets it: before 10.0 the User ID module put userId on each bid, not on the bidder request, and since 10.0 (#13253) not even on bids. IDs reach adapters only as EIDs (ortb2.user.ext.eids, aliased to bid.userIdAsEids). So these code paths have never run. For cadent and nexverse, this PR restores what the code was written to do, using EIDs or first-party data. For pangle, it removes the dead path (see below).

  • cadent_aperture_mx: the EID support added for the LiveRamp ID and UID2 was gated on bidderRequest.userId and read bidderRequest.userId.idl_env / uid2.id. The adapter now reads the liveramp.com and uidapi.com EIDs from bidderRequest.ortb2.user.ext.eids, falling back to the first bid's userIdAsEids. It sends them in its existing user.ext.eids shape ({ source, uids: [{ id, ext: { rtiPartner } }] }). Other EID sources are not sent, as before.
  • pangle: the adapter's own _pangle_id first-party ID EID was only added when bidderRequest.userId was an object, so it was never sent. Enabling it would start reading and writing the _pangle_id cookie. That cookie goes through a storage manager registered as an RTD module, so bidderSettings.pangle.storageAllowed would not apply to it, and the adapter has no storage disclosure for it. So this PR takes the conservative route for pangle: it removes the dead block and its cookie helpers, and the payload is unchanged. If the adapter maintainers want the ID back, they can add it with a bidder storage manager and a disclosure.
  • nexverse: user.buyeruid was bidderRequest.userId || '', so it was always ''. Git history has no other source for it. It now comes from the standard OpenRTB first-party data field ortb2.user.buyeruid (e.g. set per bidder via ortb2Fragments.bidder), still defaulting to ''.

Payload change: cadent and nexverse start sending the IDs they were written to send:

  • cadent: user.ext.eids with liveramp.com / uidapi.com when those EIDs exist
  • nexverse: user.buyeruid when ortb2.user.buyeruid is set

Nothing changes when no such data is present.

Tests: the existing cadent tests now provide IDs as EIDs. New tests cover cadent filtering out unsupported sources, pangle passing EIDs through without adding its own, and nexverse buyeruid from ortb2 (or empty). The new and updated tests fail on master.

Related: #16205 (removes raw bid.userId reads from core and analytics adapters), #13253.

Checks

  • npx gulp lint --nolintfix --files <changed>: 0 errors (existing deepAccess import warnings only), rerun after the pangle follow-up commit
  • npx gulp ts: pass
  • Specs: cadent_aperture_mxBidAdapter_spec.js 47 passed (2 fail on master), pangleBidAdapter_spec.js 15 passed, nexverseBidAdapter_spec.js 29 passed (1 fails on master)
  • Full suite (npx gulp precompile && npx gulp test-only-nobuild --no-coverage): 954 files, 29108 passed, 8 skipped, 0 failed

🤖 Generated with Claude Code

…serId

bidderRequest.userId is never set (bids had userId before Prebid 10.0,
bidder requests never did; prebid#13253 removed it from bids), so these paths
never ran:

- cadent_aperture_mx: send the liveramp.com and uidapi.com EIDs it was
  written to send, read from ortb2.user.ext.eids / bid.userIdAsEids
- pangle: append its _pangle_id EID when the request carries user ID EIDs
- nexverse: fill user.buyeruid from ortb2.user.buyeruid

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 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-16T23:43:02.718609Z d81957d 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d81957dc85

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread modules/pangleBidAdapter.js Outdated
if (bidderRequest.userId && typeof bidderRequest.userId === 'object') {
// add the pangle cookie alongside user IDs (Prebid 10+ provides them only as EIDs)
const _eids = data.user?.ext?.eids ?? [];
if (_eids.length > 0) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Register Pangle as a bidder before activating cookie access

🤖 This comment was written by an AI agent (GPT-6.1 Sol) on behalf of the review requester.

When EIDs are present and bidderSettings.pangle.storageAllowed is unset or explicitly false, this newly reachable path still reads and writes _pangle_id unless another activity control blocks it. The existing storage manager uses MODULE_TYPE_RTD, while storageAllowedRule in src/storageManager.ts:344-355 checks permission only for bidder components. I reproduced the cookie write with storageAllowed: false; the parent revision does not write it. Construct the manager with bidderCode: BIDDER_CODE before enabling this path, and cover the storage opt-out in tests.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 This comment was written by an AI agent (Claude Code) on behalf of @patmmccann.

Agreed. Turning this path on would start cookie reads and writes that aren't covered by storageAllowed (the storage manager is registered as an RTD module) and that have no disclosure. dbe56a5 doesn't enable it. It removes the dead block, which was gated on bidderRequest.userId, along with the _pangle_id cookie helpers, so pangle's payload and storage behavior stay as they are on master. If the adapter maintainers want this ID back, they can add it with a bidder storage manager and a disclosure.

Comment thread modules/pangleBidAdapter.js Outdated
Comment on lines +61 to +62
const _eids = data.user?.ext?.eids ?? [];
if (_eids.length > 0) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Publish a disclosure for the newly enabled Pangle cookie

🤖 This comment was written by an AI agent (GPT-6.1 Sol) on behalf of the review requester.

For publishers that allow Pangle cookie storage and include storageControl with its default strict policy, this newly enabled cookie cannot persist. A repository-wide search for _pangle_id finds only the adapter and its test, and Pangle's generated metadata has no disclosure URL or storage disclosures. Consequently, storageControlRule rejects the cookie reads and writes even after correcting the manager's component type, leaving getPangleCookieId() to generate a fresh UUID for every impression. Declare a source disclosure and its URL on the adapter, rather than hand-editing generated metadata, and document the cookie's use.

AGENTS.md reference: AGENTS.md:L129-L129

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 This comment was written by an AI agent (Claude Code) on behalf of @patmmccann.

Agreed. Turning this path on would start cookie reads and writes that aren't covered by storageAllowed (the storage manager is registered as an RTD module) and that have no disclosure. dbe56a5 doesn't enable it. It removes the dead block, which was gated on bidderRequest.userId, along with the _pangle_id cookie helpers, so pangle's payload and storage behavior stay as they are on master. If the adapter maintainers want this ID back, they can add it with a bidder storage manager and a disclosure.

…ling it

Enabling the _pangle_id cookie EID would start reading/writing a
first-party cookie through a storage manager registered as an RTD module
(so bidderSettings.pangle.storageAllowed doesn't apply) and with no
storage disclosure. Keep today's behavior instead: remove the block that
was gated on the never-set bidderRequest.userId, plus its cookie helpers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@patmmccann patmmccann changed the title Cadent, Pangle, Nexverse Bid Adapters: stop gating on the never-set bidderRequest.userId Cadent, Nexverse Bid Adapters: read IDs from EIDs/FPD instead of the never-set bidderRequest.userId; Pangle: drop the dead path Nov 16, 2026
patmmccann and others added 2 commits November 25, 2026 12:44
…ixes

# Conflicts:
#	test/spec/modules/nexverseBidAdapter_spec.js
The test added on master set bidderRequest.userId, which core never sets and
this PR stops reading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@patmmccann
patmmccann merged commit 318f442 into prebid:master Nov 25, 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.

2 participants