Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

33AcrossAdapter unit tests failing in 1.0

Open jaiminpanchal27 opened this issue 9 years ago • 7 comments

Type of issue

Bug

Description

Unit tests are failing in prebd-1.0 branch due to usage of utils.getBidderRequestAllAdUnits. This function no longer exists in 1.0 branch. As of now i have skipped failing tests. Please update.

Steps to reproduce

Your adapter is merged in 1.0 branch. Checkout https://github.com/prebid/Prebid.js/tree/prebid-1.0 and test

Other information

@curlyblueeagle

jaiminpanchal27 avatar Nov 20 '17 20:11 jaiminpanchal27

@jaiminpanchal27 utils.getBidderRequestAllAdUnits is used in the adapter at the point userSync in order to obtain bid params. Is there another method I can use to get the same?

curlyblueeagle avatar Nov 20 '17 20:11 curlyblueeagle

@curlyblueeagle getUserSync received responses as 2nd argument. Not sure if that can work for you. I will discuss with the team if we can also pass bidderRequests and let you know. Thanks

jaiminpanchal27 avatar Nov 20 '17 22:11 jaiminpanchal27

@jaiminpanchal27 Unfortunately, our server responses do not contain the bid param that I am looking for. It would be super helpful to have bidderRequests also passed in. Thank you.

curlyblueeagle avatar Nov 20 '17 22:11 curlyblueeagle

@curlyblueeagle you can submit a PR against the prebid-1.0 branch with that change to send through bidderRequests

mkendall07 avatar Nov 29 '17 21:11 mkendall07

@mkendall07 OK I'll update the adapter, but before I do that can I get some clarity on what a bidderRequests object looks like? I'm assuming it will contain bids for all ad units from all bidders. Am I right?

curlyblueeagle avatar Nov 30 '17 16:11 curlyblueeagle

@curlyblueeagle it should just be the request for the current adapter.

mkendall07 avatar Dec 04 '17 22:12 mkendall07

Fixed in #1917

jaiminpanchal27 avatar Dec 06 '17 22:12 jaiminpanchal27