Skip to content

prebid: add pubProvidedId delivery of cached EIDs via user-id config - #331

Open
etiennelatendresse-optable wants to merge 1 commit into
masterfrom
migrate-pub-provided-id
Open

etiennelatendresse-optable wants to merge 1 commit into
masterfrom
migrate-pub-provided-id

Conversation

@etiennelatendresse-optable

@etiennelatendresse-optable etiennelatendresse-optable commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Why

pubProvidedId could be moved to a reusable function.

What Changed

  • Add mergeIntoPubProvidedId({ instances, cacheKey, eids })
  • Add tests
  • Update doc

How to Test

  • Tested
  • Docs updated

Notes

});

pbjs.setConfig?.({ userSync: { ...currentUserSync, userIds: updatedUserIds } });
if (options.refreshAll) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This will happen for every call not once per page load

@mosherBT
mosherBT requested review from a team, FranckGarnier and jplaroche and removed request for jmarc101 September 22, 2026 14:42
function stripSidecars(eid: Eid): Eid {
const clean: Record<string, unknown> = {};
for (const key of Object.keys(eid)) {
if (!key.startsWith("_")) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This will check for _refs which is not true anymore for how we handle those in the cah=che

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