Repository navigation
Cadent, Nexverse Bid Adapters: read IDs from EIDs/FPD instead of the never-set bidderRequest.userId; Pangle: drop the dead path - #16209
Conversation
…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>
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. |
There was a problem hiding this comment.
💡 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".
| 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) { |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
🤖 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.
| const _eids = data.user?.ext?.eids ?? []; | ||
| if (_eids.length > 0) { |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
🤖 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>
…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>
Type of change
Description of change
These three adapters only run part of their logic when
bidderRequest.userIdis set. Prebid never sets it: before 10.0 the User ID module putuserIdon 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 tobid.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 onbidderRequest.userIdand readbidderRequest.userId.idl_env/uid2.id. The adapter now reads theliveramp.comanduidapi.comEIDs frombidderRequest.ortb2.user.ext.eids, falling back to the first bid'suserIdAsEids. It sends them in its existinguser.ext.eidsshape ({ source, uids: [{ id, ext: { rtiPartner } }] }). Other EID sources are not sent, as before.pangle: the adapter's own_pangle_idfirst-party ID EID was only added whenbidderRequest.userIdwas an object, so it was never sent. Enabling it would start reading and writing the_pangle_idcookie. That cookie goes through a storage manager registered as an RTD module, sobidderSettings.pangle.storageAllowedwould 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.buyeruidwasbidderRequest.userId || '', so it was always''. Git history has no other source for it. It now comes from the standard OpenRTB first-party data fieldortb2.user.buyeruid(e.g. set per bidder viaortb2Fragments.bidder), still defaulting to''.Payload change: cadent and nexverse start sending the IDs they were written to send:
user.ext.eidswithliveramp.com/uidapi.comwhen those EIDs existuser.buyeruidwhenortb2.user.buyeruidis setNothing 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
buyeruidfromortb2(or empty). The new and updated tests fail on master.Related: #16205 (removes raw
bid.userIdreads from core and analytics adapters), #13253.Checks
npx gulp lint --nolintfix --files <changed>: 0 errors (existingdeepAccessimport warnings only), rerun after the pangle follow-up commitnpx gulp ts: passcadent_aperture_mxBidAdapter_spec.js47 passed (2 fail on master),pangleBidAdapter_spec.js15 passed,nexverseBidAdapter_spec.js29 passed (1 fails on master)npx gulp precompile && npx gulp test-only-nobuild --no-coverage): 954 files, 29108 passed, 8 skipped, 0 failed🤖 Generated with Claude Code