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

Prebid Server Bid Adapter: auctionId to $.id UUID to $.source.tid + mergeDeep extPrebid #7585

Merged
merged 10 commits into from
Nov 2, 2021

Conversation

robertrmartinez
Copy link
Collaborator

@robertrmartinez robertrmartinez commented Oct 14, 2021

Type of change

  • Other

Description of change

Retry of #6836

Implements #6563

We will now pass auctionId into $.id

Prebid's auctionId is a UUID - UNLESS a pub passes in their own auctionId.
This is not okay since PBS needs $.source.tid to be a UUID

Also it needs to be the SAME VALUE for every PBS request for a given auction (IE Multiple PBS Scenarios)

So we generate a UUID and assign it to each bidRequest to PBS as tid

So, for all PBS requests for a given auction, we should see the same exact $.id and the same exact $.source.tid (which should be different themselves)

Like so:

image

extPrebid Fix

Also in this PR is a fix for #7457

Which just deep merges extPrebid instead of shallow merge.

@robertrmartinez robertrmartinez changed the title Prebid Server Bid Adapter - AuctionId + source.tid Prebid Server Bid Adapter - auctionId to $.id UUID to $.source.tid + mergeDeep extPrebid Oct 14, 2021
@bretg bretg requested a review from ChrisHuie October 22, 2021 16:12
@robertrmartinez
Copy link
Collaborator Author

@ChrisHuie ChrisHuie changed the title Prebid Server Bid Adapter - auctionId to $.id UUID to $.source.tid + mergeDeep extPrebid Prebid Server Bid Adapter: auctionId to $.id UUID to $.source.tid + mergeDeep extPrebid Oct 26, 2021
@ChrisHuie ChrisHuie self-assigned this Oct 26, 2021
@Fawke Fawke merged commit 4ae7e1b into master Nov 2, 2021
@Fawke Fawke deleted the pbsBidAdapter-sourceTid branch November 2, 2021 08:23
@patmmccann
Copy link
Collaborator

Did we want to backport this one?

cpabst pushed a commit to sovrn/Prebid.js that referenced this pull request Jan 10, 2022
…ergeDeep extPrebid (prebid#7585)

* sourceTid

* revert unique to tid cuz easier

* deep merge extprebid

* add tests for changes

* .length duh

* test was incorrect

* no longer let this val be tid as it is not representitive

* fix test
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