-
Notifications
You must be signed in to change notification settings - Fork 738
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
Cookie sync: gpp_sid cannot be unmarshalled from array to string #3787
Comments
@linux019 - where is the array value coming from besides a manual call to curl? The IAB doc states that GPP_SID as a URL parameter is a comma-separated string The /cookie_sync endpoint will actually accept gpp_sid on either the POST body or the GET query string. The way this is supposed to work is that the PrebidServerBidAdapter sends gpp_sid to /cookie_sync as a comma-separated string right here -- https://github.com/prebid/Prebid.js/blob/33373f036d0d42696ceecaad6ae405a55bf0010b/modules/prebidServerBidAdapter/index.js#L263 Is there a use case we're not thinking about? |
Discussed in committee. Because gpp_sid can be passed on the query string for /cookie_sync and is always copied through to the query string for /setuid, we believe that gpp_sid needs to remain a comma-separated string. InteractiveAdvertisingBureau/Global-Privacy-Platform#85 However, we'll leave this open for a bit to understand whether there's a use case we're not thinking of. |
We have a case where the GPP_SID is being sent as an array from PBJS. We don't see this with other setups though. So it might be from a custom PBJS modification specific to this one setup. We will do some digging, then update. Thanks. Update: this is from an original PBJS build for video requests. |
Old prebid Versions are sending it as an array. https://github.com/prebid/Prebid.js/blob/7.48.0/modules%2FprebidServerBidAdapter%2Findex.js#L265 We already patched this in our prebid server fork. With what PBJS version is this repo supposed to be compatible? |
Thanks @Slind14 - 7.48 isn't even that old.
Perhaps submit the patch to open source? Is it just a pre-processing step at the start of /cookie_sync and /setuid ? |
We wanted to ask what is expected before submitting an MR that might be rejected :) |
It might not looks good, it's just a draft hotfix for the old pbjs |
Assigning to @SyntaxNode |
Error:
https://github.com/InteractiveAdvertisingBureau/openrtb2.x/blob/main/2.6.md#323---object-regs-
gpp_sid should be integer array but it defined as string
prebid-server/endpoints/cookie_sync.go
Line 542 in 670e1d4
Should PBS support both value types - string and array? If it should has array type, there are URL templates that should be fixed too
The text was updated successfully, but these errors were encountered: