Permutive RTD: support msft bidder custom cohorts#14655
Permutive RTD: support msft bidder custom cohorts#14655AntonioGargaro wants to merge 5 commits intoprebid:masterfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 82bdf2ea4b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
61e9fd4 to
2dd62c8
Compare
…orage read Add a `bidders` config to the Permutive RTD module that allows configuring per-bidder custom cohort storage sources. This enables the msft bidder (Microsoft/Xandr) to read custom cohorts from the same localStorage key (`_papns`) used by appnexus, resolving an issue where publishers migrating from appnexus to msft lost custom cohort targeting. Refactors `updateOrtbConfig` to receive resolved `customCohortsData` directly instead of performing the lookup internally, keeping segment resolution centralized in `setBidderRtb`. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2dd62c8 to
399c45c
Compare
Coverage Report for CI Build 24198265083Coverage increased (+0.001%) to 96.344%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats💛 - Coveralls |
|
Hey @gwhigs @patmmccann, I wonder if I can bump this for a review 🙏 Appreciate you're both busy, so thank you |
gwhigs
left a comment
There was a problem hiding this comment.
I think we need to update docs as well:
- modules/permutiveRtdProvider.md
- https://github.com/prebid/prebid.github.io/blob/master/dev-docs/modules/permutiveRtdProvider.md
Add msft to supported custom cohort bidders list, document the new params.bidders configuration, and note the appnexus-to-msft migration path. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
@patmmccann @gwhigs Docs PR created: prebid/prebid.github.io#6522 Also, if you get a chance, could you review this one too? prebid/prebid.github.io#6352 |
Summary
biddersparam to the Permutive RTD module that allows per-bidder custom cohort storage sourcesmsftbidder (Microsoft/Xandr) to read custom cohorts from the same localStorage key (_papns) used byappnexusupdateOrtbConfigto receive resolvedcustomCohortsDatadirectly, centralizing segment resolution insetBidderRtbBackground
Publishers migrating from the
appnexusbidder tomsft(per Microsoft's instructions) lost custom cohort targeting (permutive=keywords) becausesegmentData.msftdoesn't exist — custom cohorts from_papnsare stored undersegmentData.appnexus. Standard AC cohorts (p_standard=) continued to work. This change introduces abiddersconfig with acustomCohortsFromfield that specifies the localStorage key to read from, defaultingmsftto_papns.Test plan
gulp lintpassesgulp test --nolint --file test/spec/modules/permutiveCombined_spec.js— all 47 tests pass🤖 Generated with Claude Code