-
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
PrebidServerBidAdapter issues with First Party Data #6423
Comments
Please note that the changes were made in multiple bidders along with PBS-bid-adapter, we should check if all updated bidders are working as expected. |
Validity of the dataHere I tried to pass FPD
The PBS-bid-adapter passes the Data type check for valid keys
The PBS-bid-adapter passes the |
Thanks for catching these @pm-harshad-mane .
Opened a ticket for @mmoschovas to address this part.
This is supported in PBS-Java. Opened a discussion with @SyntaxNode to address the issue in PBS-Go.
Doc example fixed.
We did not want to weigh down core PBJS with a hundred FPD validations. That will happen in the FPD module tracked by #6099 |
@pm-harshad-mane - can you inspect the fix for the PBS adapter? #6428 |
@bretg, @mmoschovas I feel in this scenario as PBS-Go breaks and ignores whole request, we should not pass |
@SyntaxNode am assuming you will mark the |
@pm-harshad-mane - there's a huge difference in the release schedules between PBJS and PBS. Pubs will get on PBJS 4.31 and be stuck there for years, while PBS host companies will upgrade in the next couple of weeks and everything will be good. I think PBJS should continue sending imp.ext.data. We can place a note somewhere that PBJS 4.30 and 4.31 are temporarily incompatible with PBS-Go, but I'm sure that situation will be resolved soon. As for moving bidders, yes, that's been done with prebid/prebid-server#1478... both PBS-Go and PBS-Java now support imp[].ext.prebid.bidder.BIDDER. So the pbsBidAdapter could be updated to make use of this. |
Yup @bretg , I agree that PBS host companies will upgrade faster than pubs using PBJS. |
Type of issue
There are some issues with the latest (4.30) implementation of FPD in PrebidServerBidAdapter,
Issues are with the commit 8c686a9#diff-3375f581a781deb711719820144dc635c7852299259ba806911532c829349687
Description
Over-writing instead of Merging.
In PrebidServerBidAdapter, request.site is over-written with FPD site object hence the pre-populated request.site object is lost, we should have used utils.mergeDeep than using utils.deepsetValue, same issue is fore request.user object.
Refer code: https://github.com/prebid/Prebid.js/blob/master/modules/prebidServerBidAdapter/index.js#L772 and https://github.com/prebid/Prebid.js/blob/master/modules/prebidServerBidAdapter/index.js#L775
If we simply pass the FPD config as following,
this is how the request to PrebidServer looks, returning HTTP 400 Bad request
PBS is not accepting imp[0].ext.data
With the above example we get the following error returned in PBS response
Root cause for the issue is imp object in request, data object is placed along with appnexus in imp[0].ext
PBS returns HTTP 400 Bad request even for the FPD example shown in documentation
Refer: https://docs.prebid.org/features/firstPartyData.html#first-party-data---prebidjs
FPD Config used here is
PBS request in this case,
PBS responds with HTTP 400 Bad Request.
PBS response is
The text was updated successfully, but these errors were encountered: