-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
perBuyerSignals is being clobbered if it's a string #12079
Comments
That test case asserts that when perBuyerSignals is an object with a property Are you losing a string in |
🔨 🧶 |
This is not a reasonable expectation, and goes against both where the google ads and openrtb teams are headed. See WICG/turtledove#1211 and https://github.com/InteractiveAdvertisingBureau/openrtb/pull/175/files#diff-407630e60468e9a631ed6267e70ab5b99b67fdd674651a555bb46225b73ffc74R380 and WICG/turtledove#1232 Publishers (prebid) and ssps may want to inject things into PBS and you'll end up with where |
Alright, in that case I'll close this. |
Type of issue
Bug 🐞
Description
According to the PAAPI spec (see also the commit history for clarification), regarding perBuyerSignals:
We're using a string, and Prebid.js doesn't check for this case, instead assuming it will be an
Object
in every case. This string format is intentional, as it makes it easy to use a checksum to confirm that no one has fraudulently modified our bidding data.Steps to reproduce
Drop this test in
test/spec/modules/paapi_spec.js
at line 159, just after the one it's obviously based on ("should not override existing perBuyerSignals")I believe the code that replaces the string with an object is setFPD(), when called from
addPaapiConfigHook()
'sif (igb && checkOrigin(igb))
blockExpected results
The string value we pass as
perBuyerSignals
will be returned to us as an identical string.Actual results
Our
perBuyerSignals
value is lost.The text was updated successfully, but these errors were encountered: