-
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
set bid response id to sovrn impid #498
Conversation
A further issue arises in the We assume a single bid per bidder per placement here: I'll push up a commit that will check for the existence of a cc: @pdramos1 @cliffliang |
beb7093
to
1eb9f94
Compare
cc: @prebid/sovrn for review |
We've tested the change and can confirm that the multisize issue is fixed. We took a first stab at the unit test for this change. But, we think that it needs to test the bidManager instead of the sovrn Adaptor. Would you be able to write this test for the updated functionality? Let us know if you need any assistance or have any questions. Thanks again for all your work here, |
@@ -119,7 +119,7 @@ var SovrnAdapter = function SovrnAdapter() { | |||
|
|||
//store bid response | |||
//bid status is good (indicating 1) | |||
bid = bidfactory.createBid(1); | |||
bid = bidfactory.createBid(1, bidObj); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be required/implemented for all adapters? This issue is not isolated to Sovrn, it is just potentially more commonly setup there and was noticed first. aardvark and triplelift are two additional examples where we will run into this issue in our current setup as we setup flex sizes for them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are working towards this approach as a requirement for adapters but opted not to implement by core team as it became too obtrusive to modify adapter code ourselves.
On L81 in sovrn.js |
The best effort approach within the bidmanager is not called in that case. The bid response has an bidId by the time it's added through bidmanager.addBidResponse. That bidId, however, is randomly generated when the bid is created on L18 of bidfactory.js. In the other case (status 1 bid response) on L122 of sovrn.js, the bidId is created from the original request. When we tested the empty response case within a test environment, the bidId within the pbjs.adUnits object did not match the adId within the bidResponses object for the empty unit. We agree with the change suggested above. We don't believe that the case above will create any issues, because the best effort approach isn't called. Thanks, |
…from sovrnResponse
@sovrnoss This fix and a test are merged to master and will be included in our next release. Please have a last past and confirm that these changes resolve multi-size functionality for Sovrn adapter. cc: @cliffliang @pdramos1 |
We've had an additional quality assurance resource double check and verify the change and have confirmed that the multi-size functionality is resolved. |
* Sovrn adapter creates bid response with ID of bid request * set bid response id to sovrn impid * no need to match on "best effort" if `bid.adId` is set * whitespace fix * code style fixes # Conflicts: # src/bidmanager.js
No description provided.