Skip to content
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

PBS Adapter: fix inconsistency in how bidderconfig is merged, with a special case for EIDs #12571

Merged
merged 4 commits into from
Dec 12, 2024

Conversation

dgirardi
Copy link
Collaborator

Type of change

  • Bugfix

Description of change

Bidder-specific configuration is treated differently in Prebid.js (setBidderConfig) and Prebid Server (ext.prebid.bidderconfig). When merging it with global config, JS will attempt to concatenate arrays, while server does not.

For consistency, this pre-merges (concatenates) arrays in the PBS adapter, so that merging ext.prebid.bidderconfig without array concatenation would lead to the same result that setBidderConfig has client side.

The net result is that any bidder-specific array needs to be repeated in its entirety for each bidder. There's a special case for EIDs, since we can take advantage of PBS's eidpermissions feature - this also attempts to use it to avoid repeating them when possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants