-
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
Incorrect bidderCode
association with adm
#11847
Comments
Hi @dgirardi, |
@namanjainfbd could you post a PBS response body that triggers this - or link to a page with this issue? |
Unfortunately I don't have a good way to test on Mac/Safari. Browserstack only goes up to Safari 17.3 (on desktop) where the snippet you provided does not behave as you describe (no difference with Chrome). From your description I think #11848 should fix it, but I'm unable to verify - would you be able to test it? |
Hey, Browser - Safari 17.3, OS - Mac SonomaSafari showing seatbid.seat as rubicon safari.mp4Browser - Chrome 126.0.0.0, OS - Mac SonomaChrome showing seatbid.seat as appnexus chrome.mp4 |
Hey @dgirardi, We have tested the fix provided in #11848. The issue appears to be resolved. Please refer to the attached screenshot for verification. Testing details:
|
Type of issue
Bug
Description
In the Prebid server adapter, we observed a discrepancy in the winning
adm
andseat
associated with it.Specifically, suppose there are two bids:
s1
adm1
s2
adm2
In
auctionEnd
event, we see the association ofadm2
withs1
which shouldn't be the ideal case. To diagnose the problem further, we enabledpbjs_debug
and reviewed the console events. Please check the screenshot below.Here is the screenshot of the difference between chrome and safari.
As observed in the
bidsReceived
array, in Safari, all thebidderCode
keys are having the value appnexus. While in Chrome it is as expected.After extensive debugging, we pinpointed the issue here.
Prebid.js/libraries/ortbConverter/converter.js
Lines 119 to 121 in 2efc834
Seems like the issue is with the Object.assign which behaves differently on iOS 17 and later versions, affecting both Chrome and Safari. Additionally, it impacts Safari 17 and later on macOS.
Steps to reproduce
Request more than one bids from various bidders using the Prebid server for a given ad unit.
We will notice that the
bidderCode
is taken from the first bid of the response, while theadm
corresponds to the winning bid.Expected results
We expect that each bid in the
auctionEnd
event should have the correctbidderCode
corresponding to its respective actual bid.Actual results
We observed that each bid in the
auctionEnd
event has the samebidderCode
value.Platform details
Device tested on
Other information
We conducted further debugging since this behavior was observed on iOS 17 devices and Safari 17.
Our investigation revealed that Object.assign() behaves differently in Safari 17 compared to Chrome.
To illustrate this difference, we have attached a test snippet. Here is the snippet
The text was updated successfully, but these errors were encountered: