-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Permutive RTD: iterate bidders configured via params.bidders #14774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
patmmccann
merged 2 commits into
prebid:master
from
AntonioGargaro:agent/permutive-rtd-bidders-iterate
Apr 22, 2026
+136
−9
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| /** | ||
| * Source for custom cohorts. | ||
| * | ||
| * Currently only `ls` (localStorage) is supported. | ||
| */ | ||
| export type PermutiveCustomCohortsSource = 'ls'; | ||
|
|
||
| export interface PermutiveCustomCohortsConfig { | ||
| /** | ||
| * Where to read the custom cohorts from. Currently only `ls` (localStorage) is supported. | ||
| */ | ||
| source: PermutiveCustomCohortsSource; | ||
| /** | ||
| * The localStorage key to read the custom cohort IDs from. | ||
| * The value must be a JSON-encoded array of cohort IDs. | ||
| */ | ||
| key: string; | ||
| } | ||
|
|
||
| export interface PermutiveBidderConfig { | ||
| /** | ||
| * Custom cohort source for this bidder. When set, the module will read cohort | ||
| * IDs from the configured source and attach them to the bidder's ortb2 payload. | ||
| */ | ||
| customCohorts?: PermutiveCustomCohortsConfig; | ||
| } | ||
|
|
||
| export interface PermutiveIabTransformationConfig { | ||
| /** | ||
| * IAB audience taxonomy version (e.g. `4` for v1.1). | ||
| */ | ||
| segtax: number; | ||
| /** | ||
| * Mapping of Permutive segment IDs (keys) to IAB taxonomy IDs (values). | ||
| */ | ||
| iabIds: Record<string, string>; | ||
| } | ||
|
|
||
| export interface PermutiveTransformationConfig { | ||
| /** | ||
| * Transformation identifier. Currently only `iab` is supported. | ||
| */ | ||
| id: 'iab'; | ||
| /** | ||
| * Transformation-specific configuration. | ||
| */ | ||
| config: PermutiveIabTransformationConfig; | ||
| } | ||
|
|
||
| export interface PermutiveRtdProviderParams { | ||
| /** | ||
| * Bidder codes to share Permutive cohorts with via the Audience Connector | ||
| * (`p_standard` / `ac` segments). | ||
| */ | ||
| acBidders?: string[]; | ||
| /** | ||
| * Maximum number of cohorts to include in either the `permutive` or | ||
| * `p_standard` key-value. Defaults to `500`. | ||
| */ | ||
| maxSegs?: number; | ||
| /** | ||
| * When `true`, require TCF vendor consent for Permutive (vendor 361). | ||
| * Defaults to `false`. | ||
| */ | ||
| enforceVendorConsent?: boolean; | ||
| /** | ||
| * Per-bidder configuration for custom cohort sources. Keys are bidder codes. | ||
| * Listing a bidder here also causes the module to write ortb2 data for that | ||
| * bidder, even if it is not in `acBidders` or on Permutive's SSP list. | ||
| */ | ||
| bidders?: Record<string, PermutiveBidderConfig>; | ||
| /** | ||
| * Transformations to apply to `user.data` entries before they are written | ||
| * to the ortb2 payload. | ||
| */ | ||
| transformations?: PermutiveTransformationConfig[]; | ||
| } | ||
|
|
||
| export interface PermutiveRtdProviderConfig { | ||
| /** | ||
| * When `true`, the auction waits for the Permutive SDK to reach real-time | ||
| * before completing the bid request data callback. Defaults to `false`. | ||
| */ | ||
| waitForIt?: boolean; | ||
| /** | ||
| * Module-specific parameters. | ||
| */ | ||
| params?: PermutiveRtdProviderParams; | ||
| } |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.