prebid.js 7.53.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (706) hide show
  1. package/.github/workflows/codeql-analysis.yml +2 -2
  2. package/dist/1plusXRtdProvider.js +1 -1
  3. package/dist/33acrossBidAdapter.js +1 -1
  4. package/dist/33acrossIdSystem.js +1 -1
  5. package/dist/adWMGAnalyticsAdapter.js +1 -1
  6. package/dist/adWMGBidAdapter.js +1 -1
  7. package/dist/adagioAnalyticsAdapter.js +1 -1
  8. package/dist/adagioBidAdapter.js +1 -1
  9. package/dist/adbookpspBidAdapter.js +1 -1
  10. package/dist/adfBidAdapter.js +1 -1
  11. package/dist/adgenerationBidAdapter.js +1 -1
  12. package/dist/adhashBidAdapter.js +1 -1
  13. package/dist/adkernelAdnAnalyticsAdapter.js +1 -1
  14. package/dist/adkernelAdnBidAdapter.js +1 -1
  15. package/dist/adkernelBidAdapter.js +1 -1
  16. package/dist/adlooxAdServerVideo.js +1 -1
  17. package/dist/adlooxAnalyticsAdapter.js +1 -1
  18. package/dist/adlooxRtdProvider.js +1 -1
  19. package/dist/adomikAnalyticsAdapter.js +1 -1
  20. package/dist/adprimeBidAdapter.js +1 -1
  21. package/dist/adqueryBidAdapter.js +1 -1
  22. package/dist/adrelevantisBidAdapter.js +1 -1
  23. package/dist/adtrgtmeBidAdapter.js +1 -1
  24. package/dist/adtrueBidAdapter.js +1 -1
  25. package/dist/aduptechBidAdapter.js +1 -1
  26. package/dist/advangelistsBidAdapter.js +1 -1
  27. package/dist/adxcgAnalyticsAdapter.js +1 -1
  28. package/dist/adxcgBidAdapter.js +1 -1
  29. package/dist/adxpremiumAnalyticsAdapter.js +1 -1
  30. package/dist/adyoulikeBidAdapter.js +1 -1
  31. package/dist/afpBidAdapter.js +1 -1
  32. package/dist/aidemBidAdapter.js +1 -1
  33. package/dist/airgridRtdProvider.js +1 -1
  34. package/dist/ajaBidAdapter.js +1 -1
  35. package/dist/amxBidAdapter.js +1 -1
  36. package/dist/amxIdSystem.js +1 -1
  37. package/dist/analyticsAdapter.js +1 -1
  38. package/dist/apacdexBidAdapter.js +1 -1
  39. package/dist/appierAnalyticsAdapter.js +1 -1
  40. package/dist/appnexusBidAdapter.js +1 -1
  41. package/dist/appnexusKeywords.js +1 -0
  42. package/dist/asoBidAdapter.js +1 -1
  43. package/dist/astraoneBidAdapter.js +1 -1
  44. package/dist/atsAnalyticsAdapter.js +1 -1
  45. package/dist/audiencerunBidAdapter.js +1 -1
  46. package/dist/automatadBidAdapter.js +1 -1
  47. package/dist/axonixBidAdapter.js +1 -1
  48. package/dist/beachfrontBidAdapter.js +1 -1
  49. package/dist/beopBidAdapter.js +1 -1
  50. package/dist/betweenBidAdapter.js +1 -1
  51. package/dist/bidViewability.js +1 -1
  52. package/dist/bidglassBidAdapter.js +1 -1
  53. package/dist/bidwatchAnalyticsAdapter.js +1 -1
  54. package/dist/big-richmediaBidAdapter.js +1 -1
  55. package/dist/bizzclickBidAdapter.js +1 -1
  56. package/dist/bluebillywigBidAdapter.js +1 -1
  57. package/dist/braveBidAdapter.js +1 -1
  58. package/dist/bridgewellBidAdapter.js +1 -1
  59. package/dist/brightMountainMediaBidAdapter.js +1 -1
  60. package/dist/browsiBidAdapter.js +1 -1
  61. package/dist/byDataAnalyticsAdapter.js +1 -1
  62. package/dist/cadentApertureMXBidAdapter.js +1 -0
  63. package/dist/carodaBidAdapter.js +1 -1
  64. package/dist/categoryTranslationMapping.js +1 -0
  65. package/dist/ccxBidAdapter.js +1 -1
  66. package/dist/chtnwBidAdapter.js +1 -1
  67. package/dist/cleanmedianetBidAdapter.js +1 -1
  68. package/dist/codefuelBidAdapter.js +1 -1
  69. package/dist/colossussspBidAdapter.js +1 -1
  70. package/dist/concertAnalyticsAdapter.js +1 -1
  71. package/dist/concertBidAdapter.js +1 -1
  72. package/dist/connectIdSystem.js +1 -1
  73. package/dist/connectadBidAdapter.js +1 -1
  74. package/dist/consentManagement.js +1 -1
  75. package/dist/consentManagementGpp.js +1 -1
  76. package/dist/consentManagementUsp.js +1 -1
  77. package/dist/consumableBidAdapter.js +1 -1
  78. package/dist/conversantAnalyticsAdapter.js +1 -1
  79. package/dist/conversantBidAdapter.js +1 -1
  80. package/dist/craftBidAdapter.js +1 -1
  81. package/dist/criteoBidAdapter.js +1 -1
  82. package/dist/criteoIdSystem.js +1 -1
  83. package/dist/currency.js +1 -1
  84. package/dist/cwireBidAdapter.js +1 -1
  85. package/dist/dailyhuntBidAdapter.js +1 -1
  86. package/dist/datablocksAnalyticsAdapter.js +1 -1
  87. package/dist/datablocksBidAdapter.js +1 -1
  88. package/dist/datawrkzBidAdapter.js +1 -1
  89. package/dist/debugging-standalone.js +1 -1
  90. package/dist/debugging.js +1 -1
  91. package/dist/deltaprojectsBidAdapter.js +1 -1
  92. package/dist/dependencies.json +58 -14
  93. package/dist/dfpAdServerVideo.js +1 -1
  94. package/dist/dianomiBidAdapter.js +1 -1
  95. package/dist/displayioBidAdapter.js +1 -1
  96. package/dist/dspxBidAdapter.js +1 -1
  97. package/dist/ebdrBidAdapter.js +1 -1
  98. package/dist/eplanningAnalyticsAdapter.js +1 -1
  99. package/dist/eplanningBidAdapter.js +1 -1
  100. package/dist/etargetBidAdapter.js +1 -1
  101. package/dist/euidIdSystem.js +1 -1
  102. package/dist/feedadBidAdapter.js +1 -1
  103. package/dist/finativeBidAdapter.js +1 -1
  104. package/dist/fintezaAnalyticsAdapter.js +1 -1
  105. package/dist/fluctBidAdapter.js +1 -1
  106. package/dist/freewheel-sspBidAdapter.js +1 -1
  107. package/dist/ftrackIdSystem.js +1 -1
  108. package/dist/gamoshiBidAdapter.js +1 -1
  109. package/dist/gdprEnforcement.js +1 -1
  110. package/dist/genericAnalyticsAdapter.js +1 -1
  111. package/dist/gmosspBidAdapter.js +1 -1
  112. package/dist/gnetBidAdapter.js +1 -1
  113. package/dist/goldbachBidAdapter.js +1 -1
  114. package/dist/gothamadsBidAdapter.js +1 -1
  115. package/dist/greenbidsAnalyticsAdapter.js +1 -1
  116. package/dist/greenbidsRtdProvider.js +1 -1
  117. package/dist/gridBidAdapter.js +1 -1
  118. package/dist/growthCodeAnalyticsAdapter.js +1 -1
  119. package/dist/gumgumBidAdapter.js +1 -1
  120. package/dist/h12mediaBidAdapter.js +1 -1
  121. package/dist/hadronAnalyticsAdapter.js +1 -1
  122. package/dist/holidBidAdapter.js +1 -1
  123. package/dist/hybridBidAdapter.js +1 -1
  124. package/dist/hypelabBidAdapter.js +1 -0
  125. package/dist/id5AnalyticsAdapter.js +1 -1
  126. package/dist/id5IdSystem.js +1 -1
  127. package/dist/imdsBidAdapter.js +1 -0
  128. package/dist/impactifyBidAdapter.js +1 -1
  129. package/dist/improvedigitalBidAdapter.js +1 -1
  130. package/dist/insticatorBidAdapter.js +1 -1
  131. package/dist/interactiveOffersBidAdapter.js +1 -1
  132. package/dist/invisiblyAnalyticsAdapter.js +1 -1
  133. package/dist/ixBidAdapter.js +1 -1
  134. package/dist/justpremiumBidAdapter.js +1 -1
  135. package/dist/kargoAnalyticsAdapter.js +1 -1
  136. package/dist/kargoBidAdapter.js +1 -1
  137. package/dist/keywords.js +1 -0
  138. package/dist/kinessoIdSystem.js +1 -1
  139. package/dist/koblerBidAdapter.js +1 -1
  140. package/dist/konduitAnalyticsAdapter.js +1 -1
  141. package/dist/kueezBidAdapter.js +1 -1
  142. package/dist/kueezRtbBidAdapter.js +1 -1
  143. package/dist/kulturemediaBidAdapter.js +1 -1
  144. package/dist/lassoBidAdapter.js +1 -1
  145. package/dist/lifestreetBidAdapter.js +1 -1
  146. package/dist/limelightDigitalBidAdapter.js +1 -1
  147. package/dist/liveIntentAnalyticsAdapter.js +1 -1
  148. package/dist/liveIntentIdSystem.js +1 -1
  149. package/dist/livewrappedAnalyticsAdapter.js +1 -1
  150. package/dist/livewrappedBidAdapter.js +1 -1
  151. package/dist/logicadBidAdapter.js +1 -1
  152. package/dist/loglyliftBidAdapter.js +1 -1
  153. package/dist/lotamePanoramaIdSystem.js +1 -1
  154. package/dist/luponmediaBidAdapter.js +1 -1
  155. package/dist/magniteAnalyticsAdapter.js +1 -1
  156. package/dist/malltvAnalyticsAdapter.js +1 -1
  157. package/dist/marsmediaAnalyticsAdapter.js +1 -1
  158. package/dist/marsmediaBidAdapter.js +1 -1
  159. package/dist/mediaforceBidAdapter.js +1 -1
  160. package/dist/mediafuseBidAdapter.js +1 -1
  161. package/dist/mediakeysBidAdapter.js +1 -1
  162. package/dist/medianetAnalyticsAdapter.js +1 -1
  163. package/dist/medianetBidAdapter.js +1 -1
  164. package/dist/mediasniperBidAdapter.js +1 -1
  165. package/dist/mediasquareBidAdapter.js +1 -1
  166. package/dist/mgidBidAdapter.js +1 -1
  167. package/dist/microadBidAdapter.js +1 -1
  168. package/dist/minutemediaBidAdapter.js +1 -1
  169. package/dist/minutemediaplusBidAdapter.js +1 -1
  170. package/dist/newspassidBidAdapter.js +1 -1
  171. package/dist/nextMillenniumBidAdapter.js +1 -1
  172. package/dist/nexx360BidAdapter.js +1 -1
  173. package/dist/not-for-prod/prebid.js +293 -323
  174. package/dist/objectGuard.js +1 -1
  175. package/dist/oguryBidAdapter.js +1 -1
  176. package/dist/onetagBidAdapter.js +1 -1
  177. package/dist/ooloAnalyticsAdapter.js +1 -1
  178. package/dist/operaadsBidAdapter.js +1 -1
  179. package/dist/optidigitalBidAdapter.js +1 -1
  180. package/dist/optimonAnalyticsAdapter.js +1 -1
  181. package/dist/orbidderBidAdapter.js +1 -1
  182. package/dist/ortbConverter.js +1 -1
  183. package/dist/otmBidAdapter.js +1 -1
  184. package/dist/outbrainBidAdapter.js +1 -1
  185. package/dist/oxxionAnalyticsAdapter.js +1 -1
  186. package/dist/oxxionRtdProvider.js +1 -1
  187. package/dist/ozoneBidAdapter.js +1 -1
  188. package/dist/padsquadBidAdapter.js +1 -1
  189. package/dist/parrableIdSystem.js +1 -1
  190. package/dist/pbsExtensions.js +1 -1
  191. package/dist/pianoDmpAnalyticsAdapter.js +1 -1
  192. package/dist/pixfutureBidAdapter.js +1 -1
  193. package/dist/prebid-core.js +2 -2
  194. package/dist/prebidServerBidAdapter.js +1 -1
  195. package/dist/prebidmanagerAnalyticsAdapter.js +1 -1
  196. package/dist/priceFloors.js +1 -1
  197. package/dist/prismaBidAdapter.js +1 -1
  198. package/dist/proxistoreBidAdapter.js +1 -1
  199. package/dist/pubgeniusBidAdapter.js +1 -1
  200. package/dist/publinkIdSystem.js +1 -1
  201. package/dist/pubmaticAnalyticsAdapter.js +1 -1
  202. package/dist/pubmaticBidAdapter.js +1 -1
  203. package/dist/pubperfAnalyticsAdapter.js +1 -1
  204. package/dist/pubstackAnalyticsAdapter.js +1 -1
  205. package/dist/pubwiseAnalyticsAdapter.js +1 -1
  206. package/dist/pubwiseBidAdapter.js +1 -1
  207. package/dist/pubxaiAnalyticsAdapter.js +1 -1
  208. package/dist/pulsepointAnalyticsAdapter.js +1 -1
  209. package/dist/pxyzBidAdapter.js +1 -1
  210. package/dist/quantcastBidAdapter.js +1 -1
  211. package/dist/quantcastIdSystem.js +1 -1
  212. package/dist/rasBidAdapter.js +1 -1
  213. package/dist/readpeakBidAdapter.js +1 -1
  214. package/dist/relaidoBidAdapter.js +1 -1
  215. package/dist/relevantAnalyticsAdapter.js +1 -1
  216. package/dist/retailspotBidAdapter.js +1 -1
  217. package/dist/revcontentBidAdapter.js +1 -1
  218. package/dist/rhythmoneBidAdapter.js +1 -1
  219. package/dist/richaudienceBidAdapter.js +1 -1
  220. package/dist/riseBidAdapter.js +1 -1
  221. package/dist/rivrAnalyticsAdapter.js +1 -1
  222. package/dist/roxotAnalyticsAdapter.js +1 -1
  223. package/dist/rtbhouseBidAdapter.js +1 -1
  224. package/dist/rtdModule.js +1 -1
  225. package/dist/rubiconBidAdapter.js +1 -1
  226. package/dist/s2sTesting.js +1 -1
  227. package/dist/saambaaBidAdapter.js +1 -1
  228. package/dist/scaleableAnalyticsAdapter.js +1 -1
  229. package/dist/schain.js +1 -1
  230. package/dist/seedingAllianceBidAdapter.js +1 -1
  231. package/dist/seedtagBidAdapter.js +1 -1
  232. package/dist/sharedIdSystem.js +1 -1
  233. package/dist/sharethroughAnalyticsAdapter.js +1 -1
  234. package/dist/sharethroughBidAdapter.js +1 -1
  235. package/dist/shinezBidAdapter.js +1 -1
  236. package/dist/showheroes-bsBidAdapter.js +1 -1
  237. package/dist/sigmoidAnalyticsAdapter.js +1 -1
  238. package/dist/sizeMapping.js +1 -0
  239. package/dist/slimcutBidAdapter.js +1 -1
  240. package/dist/smaatoBidAdapter.js +1 -1
  241. package/dist/smartadserverBidAdapter.js +1 -1
  242. package/dist/smartxBidAdapter.js +1 -1
  243. package/dist/smartytechBidAdapter.js +1 -1
  244. package/dist/smilewantedBidAdapter.js +1 -1
  245. package/dist/sonobiAnalyticsAdapter.js +1 -1
  246. package/dist/sonobiBidAdapter.js +1 -1
  247. package/dist/sovrnAnalyticsAdapter.js +1 -1
  248. package/dist/sovrnBidAdapter.js +1 -1
  249. package/dist/sspBCBidAdapter.js +1 -1
  250. package/dist/staqAnalyticsAdapter.js +1 -1
  251. package/dist/stvBidAdapter.js +1 -1
  252. package/dist/sublimeBidAdapter.js +1 -1
  253. package/dist/taboolaBidAdapter.js +1 -1
  254. package/dist/tapadIdSystem.js +1 -1
  255. package/dist/tappxBidAdapter.js +1 -1
  256. package/dist/targetVideoBidAdapter.js +1 -1
  257. package/dist/teadsBidAdapter.js +1 -1
  258. package/dist/teadsIdSystem.js +1 -1
  259. package/dist/telariaBidAdapter.js +1 -1
  260. package/dist/terceptAnalyticsAdapter.js +1 -1
  261. package/dist/theAdxBidAdapter.js +1 -1
  262. package/dist/topicsFpdModule.js +1 -1
  263. package/dist/trionBidAdapter.js +1 -1
  264. package/dist/tripleliftBidAdapter.js +1 -1
  265. package/dist/ttdBidAdapter.js +1 -1
  266. package/dist/ucfunnelAnalyticsAdapter.js +1 -1
  267. package/dist/uid2IdSystem.js +1 -1
  268. package/dist/underdogmediaBidAdapter.js +1 -1
  269. package/dist/undertoneBidAdapter.js +1 -1
  270. package/dist/unicornBidAdapter.js +1 -1
  271. package/dist/unrulyBidAdapter.js +1 -1
  272. package/dist/userId.js +1 -1
  273. package/dist/utiqSystem.js +1 -0
  274. package/dist/vibrantmediaBidAdapter.js +1 -1
  275. package/dist/vidazooBidAdapter.js +1 -1
  276. package/dist/videobyteBidAdapter.js +1 -1
  277. package/dist/videojsVideoProvider.js +1 -1
  278. package/dist/videoreachBidAdapter.js +1 -1
  279. package/dist/visxBidAdapter.js +1 -1
  280. package/dist/vrtcalBidAdapter.js +1 -1
  281. package/dist/vuukleBidAdapter.js +1 -1
  282. package/dist/weboramaRtdProvider.js +1 -1
  283. package/dist/widespaceBidAdapter.js +1 -1
  284. package/dist/winrBidAdapter.js +1 -1
  285. package/dist/xeBidAdapter.js +1 -1
  286. package/dist/yahoosspBidAdapter.js +1 -1
  287. package/dist/yieldliftBidAdapter.js +1 -1
  288. package/dist/yieldmoBidAdapter.js +1 -1
  289. package/dist/yieldoneAnalyticsAdapter.js +1 -1
  290. package/dist/yieldoneBidAdapter.js +1 -1
  291. package/dist/yuktamediaAnalyticsAdapter.js +1 -1
  292. package/dist/zetaBidAdapter.js +1 -1
  293. package/dist/zeta_global_sspAnalyticsAdapter.js +1 -1
  294. package/dist/zeta_global_sspBidAdapter.js +1 -1
  295. package/libraries/analyticsAdapter/AnalyticsAdapter.js +1 -7
  296. package/libraries/appnexusKeywords/anKeywords.js +140 -0
  297. package/libraries/categoryTranslationMapping/index.js +100 -0
  298. package/libraries/keywords/keywords.js +31 -0
  299. package/libraries/objectGuard/objectGuard.js +2 -11
  300. package/libraries/ortbConverter/processors/default.js +3 -4
  301. package/modules/.submodules.json +1 -1
  302. package/modules/1plusXRtdProvider.js +4 -14
  303. package/modules/33acrossBidAdapter.js +11 -11
  304. package/modules/adWMGBidAdapter.js +2 -1
  305. package/modules/adagioBidAdapter.js +18 -30
  306. package/modules/adbookpspBidAdapter.js +1 -1
  307. package/modules/addefendBidAdapter.js +1 -0
  308. package/modules/adfBidAdapter.js +3 -3
  309. package/modules/adgenerationBidAdapter.js +1 -1
  310. package/modules/adhashBidAdapter.js +56 -34
  311. package/modules/adkernelAdnBidAdapter.js +5 -6
  312. package/modules/adkernelBidAdapter.js +5 -5
  313. package/modules/adprimeBidAdapter.js +2 -1
  314. package/modules/adqueryBidAdapter.js +1 -0
  315. package/modules/adrelevantisBidAdapter.js +3 -24
  316. package/modules/adtrueBidAdapter.js +2 -2
  317. package/modules/aduptechBidAdapter.js +2 -1
  318. package/modules/advangelistsBidAdapter.js +0 -1
  319. package/modules/adxcgBidAdapter.js +1 -1
  320. package/modules/adyoulikeBidAdapter.js +1 -1
  321. package/modules/afpBidAdapter.js +2 -2
  322. package/modules/aidemBidAdapter.js +16 -3
  323. package/modules/airgridRtdProvider.js +24 -53
  324. package/modules/ajaBidAdapter.js +1 -1
  325. package/modules/alkimiBidAdapter.js +2 -1
  326. package/modules/amxBidAdapter.js +1 -0
  327. package/modules/apacdexBidAdapter.js +3 -3
  328. package/modules/appnexusBidAdapter.js +16 -114
  329. package/modules/apstreamBidAdapter.js +1 -0
  330. package/modules/asoBidAdapter.js +1 -1
  331. package/modules/astraoneBidAdapter.js +1 -1
  332. package/modules/audiencerunBidAdapter.js +2 -1
  333. package/modules/automatadBidAdapter.js +5 -5
  334. package/modules/beachfrontBidAdapter.js +0 -1
  335. package/modules/beopBidAdapter.js +20 -17
  336. package/modules/betweenBidAdapter.js +2 -1
  337. package/modules/bizzclickBidAdapter.js +9 -6
  338. package/modules/bliinkBidAdapter.js +1 -0
  339. package/modules/bluebillywigBidAdapter.js +2 -2
  340. package/modules/braveBidAdapter.js +9 -7
  341. package/modules/browsiBidAdapter.js +3 -3
  342. package/modules/{emx_digitalBidAdapter.js → cadentApertureMXBidAdapter.js} +61 -56
  343. package/modules/{emx_digitalBidAdapter.md → cadentApertureMXBidAdapter.md} +6 -6
  344. package/modules/carodaBidAdapter.js +1 -0
  345. package/modules/ccxBidAdapter.js +1 -1
  346. package/modules/cleanmedianetBidAdapter.js +3 -3
  347. package/modules/codefuelBidAdapter.js +1 -1
  348. package/modules/colossussspBidAdapter.js +1 -1
  349. package/modules/concertBidAdapter.js +1 -1
  350. package/modules/connectadBidAdapter.js +1 -0
  351. package/modules/conversantAnalyticsAdapter.js +2 -0
  352. package/modules/conversantBidAdapter.js +22 -6
  353. package/modules/craftBidAdapter.js +6 -28
  354. package/modules/criteoBidAdapter.js +12 -9
  355. package/modules/currency.js +3 -3
  356. package/modules/dailyhuntBidAdapter.js +2 -2
  357. package/modules/datablocksBidAdapter.js +10 -8
  358. package/modules/datawrkzBidAdapter.js +0 -6
  359. package/modules/deltaprojectsBidAdapter.js +12 -3
  360. package/modules/dianomiBidAdapter.js +1 -1
  361. package/modules/discoveryBidAdapter.js +1 -0
  362. package/modules/displayioBidAdapter.js +2 -1
  363. package/modules/dspxBidAdapter.js +1 -0
  364. package/modules/ebdrBidAdapter.js +3 -2
  365. package/modules/etargetBidAdapter.js +1 -2
  366. package/modules/feedadBidAdapter.js +1 -1
  367. package/modules/finativeBidAdapter.js +8 -8
  368. package/modules/fluctBidAdapter.js +1 -2
  369. package/modules/gamoshiBidAdapter.js +3 -3
  370. package/modules/gdprEnforcement.js +0 -15
  371. package/modules/genericAnalyticsAdapter.js +0 -5
  372. package/modules/glomexBidAdapter.js +1 -0
  373. package/modules/gmosspBidAdapter.js +1 -1
  374. package/modules/gnetBidAdapter.js +1 -1
  375. package/modules/goldbachBidAdapter.js +7 -45
  376. package/modules/gothamadsBidAdapter.js +4 -3
  377. package/modules/gridBidAdapter.js +20 -421
  378. package/modules/gumgumBidAdapter.js +1 -2
  379. package/modules/h12mediaBidAdapter.js +1 -1
  380. package/modules/holidBidAdapter.js +8 -13
  381. package/modules/hybridBidAdapter.js +2 -2
  382. package/modules/hypelabBidAdapter.js +153 -0
  383. package/modules/hypelabBidAdapter.md +38 -0
  384. package/modules/{synacormediaBidAdapter.js → imdsBidAdapter.js} +11 -8
  385. package/modules/{synacormediaBidAdapter.md → imdsBidAdapter.md} +5 -5
  386. package/modules/impactifyBidAdapter.js +6 -6
  387. package/modules/improvedigitalBidAdapter.js +1 -2
  388. package/modules/innityBidAdapter.js +1 -0
  389. package/modules/insticatorBidAdapter.js +1 -1
  390. package/modules/interactiveOffersBidAdapter.js +5 -4
  391. package/modules/iqmBidAdapter.js +1 -0
  392. package/modules/ixBidAdapter.js +74 -75
  393. package/modules/jixieBidAdapter.js +1 -0
  394. package/modules/kargoBidAdapter.js +1 -1
  395. package/modules/koblerBidAdapter.js +2 -1
  396. package/modules/kueezBidAdapter.js +1 -1
  397. package/modules/kueezRtbBidAdapter.js +1 -0
  398. package/modules/kulturemediaBidAdapter.js +7 -7
  399. package/modules/lassoBidAdapter.js +2 -1
  400. package/modules/limelightDigitalBidAdapter.js +1 -1
  401. package/modules/livewrappedBidAdapter.js +2 -2
  402. package/modules/logicadBidAdapter.js +2 -1
  403. package/modules/loglyliftBidAdapter.js +2 -1
  404. package/modules/luponmediaBidAdapter.js +16 -4
  405. package/modules/magniteAnalyticsAdapter.js +61 -72
  406. package/modules/malltvBidAdapter.js +1 -0
  407. package/modules/mediaforceBidAdapter.js +2 -1
  408. package/modules/mediafuseBidAdapter.js +45 -62
  409. package/modules/mediagoBidAdapter.js +1 -0
  410. package/modules/mediakeysBidAdapter.js +3 -5
  411. package/modules/medianetBidAdapter.js +2 -1
  412. package/modules/mediasniperBidAdapter.js +1 -2
  413. package/modules/mediasquareBidAdapter.js +2 -1
  414. package/modules/microadBidAdapter.js +1 -9
  415. package/modules/minutemediaBidAdapter.js +2 -2
  416. package/modules/minutemediaplusBidAdapter.js +3 -2
  417. package/modules/newspassidBidAdapter.js +6 -4
  418. package/modules/nextMillenniumBidAdapter.js +10 -9
  419. package/modules/oguryBidAdapter.js +5 -5
  420. package/modules/onetagBidAdapter.js +2 -1
  421. package/modules/operaadsBidAdapter.js +2 -2
  422. package/modules/optidigitalBidAdapter.js +2 -2
  423. package/modules/orbidderBidAdapter.js +2 -1
  424. package/modules/otmBidAdapter.js +2 -2
  425. package/modules/outbrainBidAdapter.js +9 -11
  426. package/modules/oxxionRtdProvider.js +7 -29
  427. package/modules/ozoneBidAdapter.js +2 -1
  428. package/modules/padsquadBidAdapter.js +2 -2
  429. package/modules/pixfutureBidAdapter.js +12 -36
  430. package/modules/prebidServerBidAdapter/index.js +1 -3
  431. package/modules/prebidServerBidAdapter/ortbConverter.js +34 -5
  432. package/modules/priceFloors.js +7 -7
  433. package/modules/prismaBidAdapter.js +4 -3
  434. package/modules/proxistoreBidAdapter.js +2 -1
  435. package/modules/pubgeniusBidAdapter.js +5 -5
  436. package/modules/pubmaticAnalyticsAdapter.js +31 -12
  437. package/modules/pubmaticBidAdapter.js +6 -4
  438. package/modules/pubwiseBidAdapter.js +6 -5
  439. package/modules/pxyzBidAdapter.js +4 -4
  440. package/modules/rasBidAdapter.js +4 -2
  441. package/modules/readpeakBidAdapter.js +1 -1
  442. package/modules/relaidoBidAdapter.js +2 -1
  443. package/modules/resetdigitalBidAdapter.js +1 -0
  444. package/modules/revcontentBidAdapter.js +6 -7
  445. package/modules/rhythmoneBidAdapter.js +0 -2
  446. package/modules/richaudienceBidAdapter.js +6 -4
  447. package/modules/riseBidAdapter.js +1 -1
  448. package/modules/rtbhouseBidAdapter.js +5 -5
  449. package/modules/rtbsapeBidAdapter.js +1 -0
  450. package/modules/rubiconBidAdapter.js +8 -11
  451. package/modules/saambaaBidAdapter.js +0 -1
  452. package/modules/seedingAllianceBidAdapter.js +6 -7
  453. package/modules/seedtagBidAdapter.js +1 -1
  454. package/modules/sharethroughBidAdapter.js +1 -1
  455. package/modules/shinezBidAdapter.js +435 -435
  456. package/modules/showheroes-bsBidAdapter.js +1 -1
  457. package/{src → modules}/sizeMapping.js +46 -32
  458. package/modules/slimcutBidAdapter.js +2 -2
  459. package/modules/smaatoBidAdapter.js +16 -3
  460. package/modules/smartadserverBidAdapter.js +1 -1
  461. package/modules/smarticoBidAdapter.js +1 -0
  462. package/modules/smartytechBidAdapter.js +0 -1
  463. package/modules/smilewantedBidAdapter.js +2 -2
  464. package/modules/sonobiBidAdapter.js +2 -1
  465. package/modules/sspBCBidAdapter.js +1 -1
  466. package/modules/stroeerCoreBidAdapter.js +1 -0
  467. package/modules/sublimeBidAdapter.js +1 -0
  468. package/modules/taboolaBidAdapter.js +3 -3
  469. package/modules/talkadsBidAdapter.js +1 -0
  470. package/modules/tappxBidAdapter.js +1 -1
  471. package/modules/teadsBidAdapter.js +1 -2
  472. package/modules/telariaBidAdapter.js +1 -1
  473. package/modules/theAdxBidAdapter.js +1 -1
  474. package/modules/topicsFpdModule.js +4 -1
  475. package/modules/tpmnBidAdapter.js +1 -0
  476. package/modules/truereachBidAdapter.js +1 -0
  477. package/modules/ttdBidAdapter.js +3 -3
  478. package/modules/underdogmediaBidAdapter.js +0 -1
  479. package/modules/unicornBidAdapter.js +1 -1
  480. package/modules/unrulyBidAdapter.js +1 -1
  481. package/modules/userId/eids.js +3 -3
  482. package/modules/userId/eids.md +1 -1
  483. package/modules/userId/index.js +2 -19
  484. package/modules/userId/userId.md +12 -10
  485. package/modules/utiqSystem.js +129 -0
  486. package/modules/{trustpidSystem.md → utiqSystem.md} +7 -7
  487. package/modules/vdoaiBidAdapter.js +1 -0
  488. package/modules/vibrantmediaBidAdapter.js +1 -1
  489. package/modules/vidazooBidAdapter.js +3 -2
  490. package/modules/videobyteBidAdapter.js +0 -1
  491. package/modules/videoheroesBidAdapter.js +2 -0
  492. package/modules/videojsVideoProvider.js +2 -0
  493. package/modules/videoreachBidAdapter.js +2 -1
  494. package/modules/vlybyBidAdapter.js +1 -0
  495. package/modules/voxBidAdapter.js +2 -0
  496. package/modules/vrtcalBidAdapter.js +6 -1
  497. package/modules/winrBidAdapter.js +4 -25
  498. package/modules/xeBidAdapter.js +2 -1
  499. package/modules/yieldliftBidAdapter.js +2 -2
  500. package/modules/yieldmoBidAdapter.js +1 -0
  501. package/modules/yieldoneBidAdapter.js +1 -1
  502. package/modules/zetaBidAdapter.js +4 -9
  503. package/modules/zeta_global_sspBidAdapter.js +1 -1
  504. package/package.json +1 -1
  505. package/src/activities/activities.js +5 -0
  506. package/src/activities/redactor.js +36 -8
  507. package/src/adapterManager.js +31 -20
  508. package/src/adapters/bidderFactory.js +41 -91
  509. package/src/auction.js +5 -21
  510. package/src/constants.json +1 -2
  511. package/src/utils.js +2 -34
  512. package/test/fixtures/fixtures.js +0 -7
  513. package/test/pages/banner.html +1 -0
  514. package/test/pages/bidderSettings.html +1 -0
  515. package/test/pages/consent_mgt_gdpr.html +1 -0
  516. package/test/pages/currency.html +1 -0
  517. package/test/pages/instream.html +1 -0
  518. package/test/pages/multiple_bidders.html +1 -1
  519. package/test/pages/native.html +1 -0
  520. package/test/pages/outstream.html +4 -1
  521. package/test/spec/activities/redactor_spec.js +10 -2
  522. package/test/spec/appnexusKeywords_spec.js +70 -0
  523. package/test/spec/auctionmanager_spec.js +11 -22
  524. package/test/spec/keywords_spec.js +102 -0
  525. package/test/spec/modules/1plusXRtdProvider_spec.js +17 -18
  526. package/test/spec/modules/33acrossBidAdapter_spec.js +49 -73
  527. package/test/spec/modules/adagioBidAdapter_spec.js +15 -24
  528. package/test/spec/modules/adbookpspBidAdapter_spec.js +5 -0
  529. package/test/spec/modules/adfBidAdapter_spec.js +4 -1
  530. package/test/spec/modules/adhashBidAdapter_spec.js +18 -2
  531. package/test/spec/modules/adkernelAdnBidAdapter_spec.js +1 -3
  532. package/test/spec/modules/adrelevantisBidAdapter_spec.js +0 -9
  533. package/test/spec/modules/adriverBidAdapter_spec.js +0 -9
  534. package/test/spec/modules/adtrueBidAdapter_spec.js +11 -7
  535. package/test/spec/modules/aduptechBidAdapter_spec.js +26 -8
  536. package/test/spec/modules/advangelistsBidAdapter_spec.js +0 -1
  537. package/test/spec/modules/adxcgBidAdapter_spec.js +4 -1
  538. package/test/spec/modules/adyoulikeBidAdapter_spec.js +50 -10
  539. package/test/spec/modules/afpBidAdapter_spec.js +5 -1
  540. package/test/spec/modules/aidemBidAdapter_spec.js +10 -2
  541. package/test/spec/modules/airgridRtdProvider_spec.js +9 -59
  542. package/test/spec/modules/apacdexBidAdapter_spec.js +2 -2
  543. package/test/spec/modules/appnexusBidAdapter_spec.js +100 -27
  544. package/test/spec/modules/astraoneBidAdapter_spec.js +5 -1
  545. package/test/spec/modules/beachfrontBidAdapter_spec.js +0 -1
  546. package/test/spec/modules/big-richmediaBidAdapter_spec.js +0 -10
  547. package/test/spec/modules/bluebillywigBidAdapter_spec.js +12 -10
  548. package/test/spec/modules/browsiBidAdapter_spec.js +6 -3
  549. package/test/spec/modules/{emx_digitalBidAdapter_spec.js → cadentApertureMXBidAdapter_spec.js} +16 -16
  550. package/test/spec/modules/ccxBidAdapter_spec.js +1 -1
  551. package/test/spec/modules/cleanmedianetBidAdapter_spec.js +2 -2
  552. package/test/spec/modules/codefuelBidAdapter_spec.js +10 -1
  553. package/test/spec/modules/colossussspBidAdapter_spec.js +1 -1
  554. package/test/spec/modules/concertBidAdapter_spec.js +5 -1
  555. package/test/spec/modules/conversantBidAdapter_spec.js +7 -2
  556. package/test/spec/modules/criteoBidAdapter_spec.js +78 -8
  557. package/test/spec/modules/currency_spec.js +12 -12
  558. package/test/spec/modules/datawrkzBidAdapter_spec.js +0 -4
  559. package/test/spec/modules/dianomiBidAdapter_spec.js +1 -1
  560. package/test/spec/modules/etargetBidAdapter_spec.js +35 -8
  561. package/test/spec/modules/euidIdSystem_spec.js +0 -7
  562. package/test/spec/modules/feedadBidAdapter_spec.js +5 -1
  563. package/test/spec/modules/finativeBidAdapter_spec.js +0 -12
  564. package/test/spec/modules/fluctBidAdapter_spec.js +0 -2
  565. package/test/spec/modules/gamoshiBidAdapter_spec.js +5 -2
  566. package/test/spec/modules/gmosspBidAdapter_spec.js +5 -1
  567. package/test/spec/modules/gnetBidAdapter_spec.js +5 -1
  568. package/test/spec/modules/goldbachBidAdapter_spec.js +0 -10
  569. package/test/spec/modules/gridBidAdapter_spec.js +42 -302
  570. package/test/spec/modules/hybridBidAdapter_spec.js +5 -1
  571. package/test/spec/modules/hypelabBidAdapter_spec.js +281 -0
  572. package/test/spec/modules/{synacormediaBidAdapter_spec.js → imdsBidAdapter_spec.js} +19 -19
  573. package/test/spec/modules/improvedigitalBidAdapter_spec.js +6 -1
  574. package/test/spec/modules/insticatorBidAdapter_spec.js +6 -2
  575. package/test/spec/modules/invisiblyAnalyticsAdapter_spec.js +1 -1
  576. package/test/spec/modules/ivsBidAdapter_spec.js +0 -2
  577. package/test/spec/modules/ixBidAdapter_spec.js +8 -3
  578. package/test/spec/modules/kargoBidAdapter_spec.js +3 -3
  579. package/test/spec/modules/koblerBidAdapter_spec.js +13 -2
  580. package/test/spec/modules/kulturemediaBidAdapter_spec.js +0 -1
  581. package/test/spec/modules/limelightDigitalBidAdapter_spec.js +21 -5
  582. package/test/spec/modules/livewrappedAnalyticsAdapter_spec.js +1 -1
  583. package/test/spec/modules/livewrappedBidAdapter_spec.js +5 -6
  584. package/test/spec/modules/loglyliftBidAdapter_spec.js +10 -0
  585. package/test/spec/modules/luponmediaBidAdapter_spec.js +23 -2
  586. package/test/spec/modules/magniteAnalyticsAdapter_spec.js +93 -1
  587. package/test/spec/modules/mediaforceBidAdapter_spec.js +11 -3
  588. package/test/spec/modules/mediafuseBidAdapter_spec.js +2 -6
  589. package/test/spec/modules/mediakeysBidAdapter_spec.js +6 -2
  590. package/test/spec/modules/medianetBidAdapter_spec.js +86 -17
  591. package/test/spec/modules/mediasniperBidAdapter_spec.js +1 -1
  592. package/test/spec/modules/mediasquareBidAdapter_spec.js +5 -5
  593. package/test/spec/modules/microadBidAdapter_spec.js +7 -3
  594. package/test/spec/modules/minutemediaplusBidAdapter_spec.js +7 -3
  595. package/test/spec/modules/nextMillenniumBidAdapter_spec.js +2 -2
  596. package/test/spec/modules/nexx360BidAdapter_spec.js +0 -1
  597. package/test/spec/modules/oguryBidAdapter_spec.js +2 -1
  598. package/test/spec/modules/onetagBidAdapter_spec.js +5 -1
  599. package/test/spec/modules/openxBidAdapter_spec.js +1 -1
  600. package/test/spec/modules/operaadsBidAdapter_spec.js +5 -5
  601. package/test/spec/modules/optidigitalBidAdapter_spec.js +0 -2
  602. package/test/spec/modules/orbidderBidAdapter_spec.js +12 -4
  603. package/test/spec/modules/outbrainBidAdapter_spec.js +5 -0
  604. package/test/spec/modules/oxxionRtdProvider_spec.js +3 -2
  605. package/test/spec/modules/prebidServerBidAdapter_spec.js +114 -32
  606. package/test/spec/modules/priceFloors_spec.js +7 -25
  607. package/test/spec/modules/pubgeniusBidAdapter_spec.js +2 -1
  608. package/test/spec/modules/pubmaticAnalyticsAdapter_spec.js +7 -0
  609. package/test/spec/modules/pubmaticBidAdapter_spec.js +41 -32
  610. package/test/spec/modules/pubwiseBidAdapter_spec.js +10 -6
  611. package/test/spec/modules/relaidoBidAdapter_spec.js +6 -2
  612. package/test/spec/modules/revcontentBidAdapter_spec.js +0 -10
  613. package/test/spec/modules/richaudienceBidAdapter_spec.js +5 -1
  614. package/test/spec/modules/rubiconBidAdapter_spec.js +26 -7
  615. package/test/spec/modules/scatteredBidAdapter_spec.js +0 -2
  616. package/test/spec/modules/seedingAllianceAdapter_spec.js +0 -13
  617. package/test/spec/modules/seedtagBidAdapter_spec.js +5 -1
  618. package/test/spec/modules/sharethroughBidAdapter_spec.js +6 -2
  619. package/test/spec/modules/sizeMapping_spec.js +342 -0
  620. package/test/spec/modules/slimcutBidAdapter_spec.js +0 -1
  621. package/test/spec/modules/smaatoBidAdapter_spec.js +3 -2
  622. package/test/spec/modules/smartadserverBidAdapter_spec.js +15 -3
  623. package/test/spec/modules/smilewantedBidAdapter_spec.js +25 -6
  624. package/test/spec/modules/sspBCBidAdapter_spec.js +4 -4
  625. package/test/spec/modules/taboolaBidAdapter_spec.js +10 -12
  626. package/test/spec/modules/teadsBidAdapter_spec.js +7 -0
  627. package/test/spec/modules/terceptAnalyticsAdapter_spec.js +0 -1
  628. package/test/spec/modules/ttdBidAdapter_spec.js +13 -5
  629. package/test/spec/modules/uid2IdSystem_spec.js +0 -10
  630. package/test/spec/modules/underdogmediaBidAdapter_spec.js +0 -1
  631. package/test/spec/modules/utiqSystem_spec.js +188 -0
  632. package/test/spec/modules/vidazooBidAdapter_spec.js +6 -2
  633. package/test/spec/modules/videobyteBidAdapter_spec.js +0 -1
  634. package/test/spec/modules/vrtcalBidAdapter_spec.js +9 -2
  635. package/test/spec/modules/winrBidAdapter_spec.js +0 -9
  636. package/test/spec/modules/xeBidAdapter_spec.js +6 -2
  637. package/test/spec/unit/core/adapterManager_spec.js +69 -115
  638. package/test/spec/unit/core/bidderFactory_spec.js +80 -152
  639. package/test/spec/unit/core/targeting_spec.js +0 -6
  640. package/test/spec/utils_spec.js +21 -90
  641. package/dist/aolBidAdapter.js +0 -1
  642. package/dist/captifyRtdProvider.js +0 -1
  643. package/dist/emx_digitalBidAdapter.js +0 -1
  644. package/dist/glimpseBidAdapter.js +0 -1
  645. package/dist/googleAnalyticsAdapter.js +0 -1
  646. package/dist/inmarBidAdapter.js +0 -1
  647. package/dist/inskinBidAdapter.js +0 -1
  648. package/dist/liveyieldAnalyticsAdapter.js +0 -1
  649. package/dist/mass.js +0 -1
  650. package/dist/openxAnalyticsAdapter.js +0 -1
  651. package/dist/openxOrtbBidAdapter.js +0 -1
  652. package/dist/pubCommonId.js +0 -1
  653. package/dist/realvuAnalyticsAdapter.js +0 -1
  654. package/dist/rubiconAnalyticsAdapter.js +0 -1
  655. package/dist/synacormediaBidAdapter.js +0 -1
  656. package/dist/trustpidSystem.js +0 -1
  657. package/dist/viewability.js +0 -1
  658. package/dist/zeusPrimeRtdProvider.js +0 -21
  659. package/integrationExamples/gpt/captifyRtdProvider_example.html +0 -167
  660. package/integrationExamples/mass/index.html +0 -132
  661. package/modules/aolBidAdapter.js +0 -462
  662. package/modules/aolBidAdapter.md +0 -46
  663. package/modules/captifyRtdProvider.js +0 -146
  664. package/modules/captifyRtdProvider.md +0 -68
  665. package/modules/conversantAnalyticsAdapter.md +0 -46
  666. package/modules/conversantBidAdapter.md +0 -46
  667. package/modules/glimpseBidAdapter.js +0 -198
  668. package/modules/glimpseBidAdapter.md +0 -37
  669. package/modules/googleAnalyticsAdapter.js +0 -298
  670. package/modules/googleAnalyticsAdapter.md +0 -38
  671. package/modules/inmarBidAdapter.js +0 -132
  672. package/modules/inmarBidAdapter.md +0 -44
  673. package/modules/inskinBidAdapter.js +0 -391
  674. package/modules/inskinBidAdapter.md +0 -31
  675. package/modules/liveyieldAnalyticsAdapter.js +0 -454
  676. package/modules/liveyieldAnalyticsAdapter.md +0 -45
  677. package/modules/mass.js +0 -184
  678. package/modules/mass.md +0 -137
  679. package/modules/openxAnalyticsAdapter.js +0 -27
  680. package/modules/openxAnalyticsAdapter.md +0 -135
  681. package/modules/openxOrtbBidAdapter.js +0 -238
  682. package/modules/openxOrtbBidAdapter.md +0 -108
  683. package/modules/pubCommonId.js +0 -303
  684. package/modules/pubCommonId.md +0 -37
  685. package/modules/realvuAnalyticsAdapter.js +0 -976
  686. package/modules/realvuAnalyticsAdapter.md +0 -9
  687. package/modules/rubiconAnalyticsAdapter.js +0 -938
  688. package/modules/trustpidSystem.js +0 -143
  689. package/modules/viewability.js +0 -9
  690. package/modules/zeusPrimeRtdProvider.js +0 -37
  691. package/modules/zeusPrimeRtdProvider.md +0 -63
  692. package/test/spec/modules/aolBidAdapter_spec.js +0 -890
  693. package/test/spec/modules/captifyRtdProvider_spec.js +0 -253
  694. package/test/spec/modules/glimpseBidAdapter_spec.js +0 -422
  695. package/test/spec/modules/googleAnalyticsAdapter_spec.js +0 -27
  696. package/test/spec/modules/inmarBidAdapter_spec.js +0 -242
  697. package/test/spec/modules/inskinBidAdapter_spec.js +0 -386
  698. package/test/spec/modules/liveyieldAnalyticsAdapter_spec.js +0 -704
  699. package/test/spec/modules/mass_spec.js +0 -141
  700. package/test/spec/modules/openxAnalyticsAdapter_spec.js +0 -21
  701. package/test/spec/modules/openxOrtbBidAdapter_spec.js +0 -1615
  702. package/test/spec/modules/pubCommonId_spec.js +0 -353
  703. package/test/spec/modules/rubiconAnalyticsAdapter_spec.js +0 -2540
  704. package/test/spec/modules/rubiconAnalyticsSchema.json +0 -494
  705. package/test/spec/modules/trustpidSystem_spec.js +0 -237
  706. package/test/spec/sizeMapping_spec.js +0 -341
@@ -423,6 +423,8 @@ describe('33acrossBidAdapter:', function () {
423
423
  this.build = () => bidRequests;
424
424
  }
425
425
 
426
+ let bidderRequest;
427
+
426
428
  beforeEach(function() {
427
429
  element = {
428
430
  x: 0,
@@ -476,12 +478,12 @@ describe('33acrossBidAdapter:', function () {
476
478
  sandbox.stub(document, 'getElementById').returns(element);
477
479
  sandbox.stub(utils, 'getWindowTop').returns(win);
478
480
  sandbox.stub(utils, 'getWindowSelf').returns(win);
481
+ bidderRequest = {bidderRequestId: 'r1'};
479
482
  });
480
483
 
481
484
  afterEach(function() {
482
485
  sandbox.restore();
483
486
  });
484
-
485
487
  describe('isBidRequestValid:', function() {
486
488
  context('basic validation', function() {
487
489
  it('returns true for valid bidder name values', function() {
@@ -770,7 +772,7 @@ describe('33acrossBidAdapter:', function () {
770
772
 
771
773
  Object.assign(element, { width: 600, height: 400 });
772
774
 
773
- const [ buildRequest ] = spec.buildRequests(bidRequests);
775
+ const [ buildRequest ] = spec.buildRequests(bidRequests, bidderRequest);
774
776
  validateBuiltServerRequest(buildRequest, serverRequest);
775
777
  });
776
778
  });
@@ -788,7 +790,7 @@ describe('33acrossBidAdapter:', function () {
788
790
 
789
791
  Object.assign(element, { x: -300, y: 0, width: 207, height: 320 });
790
792
 
791
- const [ buildRequest ] = spec.buildRequests(bidRequests);
793
+ const [ buildRequest ] = spec.buildRequests(bidRequests, bidderRequest);
792
794
  validateBuiltServerRequest(buildRequest, serverRequest);
793
795
  });
794
796
  });
@@ -806,7 +808,7 @@ describe('33acrossBidAdapter:', function () {
806
808
 
807
809
  Object.assign(element, { width: 800, height: 800 });
808
810
 
809
- const [ buildRequest ] = spec.buildRequests(bidRequests);
811
+ const [ buildRequest ] = spec.buildRequests(bidRequests, bidderRequest);
810
812
  validateBuiltServerRequest(buildRequest, serverRequest);
811
813
  });
812
814
  });
@@ -826,7 +828,7 @@ describe('33acrossBidAdapter:', function () {
826
828
  Object.assign(element, { width: 0, height: 0 });
827
829
  bidRequests[0].mediaTypes.banner.sizes = [[800, 2400]];
828
830
 
829
- const [ buildRequest ] = spec.buildRequests(bidRequests);
831
+ const [ buildRequest ] = spec.buildRequests(bidRequests, bidderRequest);
830
832
  validateBuiltServerRequest(buildRequest, serverRequest);
831
833
  });
832
834
  });
@@ -849,7 +851,7 @@ describe('33acrossBidAdapter:', function () {
849
851
  sandbox.stub(utils, 'getWindowTop').returns({});
850
852
  sandbox.stub(utils, 'getWindowSelf').returns(win);
851
853
 
852
- const [ buildRequest ] = spec.buildRequests(bidRequests);
854
+ const [ buildRequest ] = spec.buildRequests(bidRequests, bidderRequest);
853
855
  validateBuiltServerRequest(buildRequest, serverRequest);
854
856
  });
855
857
 
@@ -890,7 +892,7 @@ describe('33acrossBidAdapter:', function () {
890
892
  }
891
893
  });
892
894
 
893
- const [ buildRequest ] = spec.buildRequests(bidRequests);
895
+ const [ buildRequest ] = spec.buildRequests(bidRequests, bidderRequest);
894
896
  validateBuiltServerRequest(buildRequest, serverRequest);
895
897
  });
896
898
  });
@@ -938,7 +940,7 @@ describe('33acrossBidAdapter:', function () {
938
940
  }
939
941
  });
940
942
 
941
- const [ buildRequest ] = spec.buildRequests(bidRequests);
943
+ const [ buildRequest ] = spec.buildRequests(bidRequests, bidderRequest);
942
944
  validateBuiltServerRequest(buildRequest, serverRequest);
943
945
  });
944
946
  });
@@ -964,7 +966,7 @@ describe('33acrossBidAdapter:', function () {
964
966
  win.screen.width = 1024;
965
967
  win.screen.height = 728;
966
968
 
967
- const [ buildRequest ] = spec.buildRequests(bidRequests);
969
+ const [ buildRequest ] = spec.buildRequests(bidRequests, {bidderRequestId: 'r1'});
968
970
 
969
971
  validateBuiltServerRequest(buildRequest, serverRequest);
970
972
  });
@@ -993,7 +995,7 @@ describe('33acrossBidAdapter:', function () {
993
995
  win.innerHeight = 728;
994
996
  win.innerWidth = 727;
995
997
 
996
- const [ buildRequest ] = spec.buildRequests(bidRequests);
998
+ const [ buildRequest ] = spec.buildRequests(bidRequests, bidderRequest);
997
999
 
998
1000
  validateBuiltServerRequest(buildRequest, serverRequest);
999
1001
  });
@@ -1016,16 +1018,15 @@ describe('33acrossBidAdapter:', function () {
1016
1018
  win.document.visibilityState = 'hidden';
1017
1019
  sandbox.stub(utils, 'getWindowTop').returns(win);
1018
1020
 
1019
- const [ buildRequest ] = spec.buildRequests(bidRequests);
1021
+ const [ buildRequest ] = spec.buildRequests(bidRequests, bidderRequest);
1020
1022
  validateBuiltServerRequest(buildRequest, serverRequest);
1021
1023
  });
1022
1024
  });
1023
1025
 
1024
1026
  context('when gdpr consent data exists', function() {
1025
- let bidderRequest;
1026
-
1027
1027
  beforeEach(function() {
1028
1028
  bidderRequest = {
1029
+ ...bidderRequest,
1029
1030
  gdprConsent: {
1030
1031
  consentString: 'foobarMyPreference',
1031
1032
  gdprApplies: true
@@ -1070,12 +1071,6 @@ describe('33acrossBidAdapter:', function () {
1070
1071
  });
1071
1072
 
1072
1073
  context('when gdpr consent data does not exist', function() {
1073
- let bidderRequest;
1074
-
1075
- beforeEach(function() {
1076
- bidderRequest = {};
1077
- });
1078
-
1079
1074
  it('returns corresponding server requests with default gdpr consent data', function() {
1080
1075
  const ttxRequest = new TtxRequestBuilder()
1081
1076
  .withBanner()
@@ -1111,10 +1106,9 @@ describe('33acrossBidAdapter:', function () {
1111
1106
  });
1112
1107
 
1113
1108
  context('when us_privacy consent data exists', function() {
1114
- let bidderRequest;
1115
-
1116
1109
  beforeEach(function() {
1117
1110
  bidderRequest = {
1111
+ ...bidderRequest,
1118
1112
  uspConsent: 'foo'
1119
1113
  }
1120
1114
  });
@@ -1156,12 +1150,6 @@ describe('33acrossBidAdapter:', function () {
1156
1150
  });
1157
1151
 
1158
1152
  context('when us_privacy consent data does not exist', function() {
1159
- let bidderRequest;
1160
-
1161
- beforeEach(function() {
1162
- bidderRequest = {};
1163
- });
1164
-
1165
1153
  it('returns corresponding server requests with default us_privacy data', function() {
1166
1154
  const ttxRequest = new TtxRequestBuilder()
1167
1155
  .withBanner()
@@ -1199,7 +1187,8 @@ describe('33acrossBidAdapter:', function () {
1199
1187
  context('when refererInfo values are available', function() {
1200
1188
  context('when refererInfo.page is defined', function() {
1201
1189
  it('returns corresponding server requests with site.page set', function() {
1202
- const bidderRequest = {
1190
+ bidderRequest = {
1191
+ ...bidderRequest,
1203
1192
  refererInfo: {
1204
1193
  page: 'http://foo.com/bar'
1205
1194
  }
@@ -1222,7 +1211,8 @@ describe('33acrossBidAdapter:', function () {
1222
1211
 
1223
1212
  context('when refererInfo.ref is defined', function() {
1224
1213
  it('returns corresponding server requests with site.ref set', function() {
1225
- const bidderRequest = {
1214
+ bidderRequest = {
1215
+ ...bidderRequest,
1226
1216
  refererInfo: {
1227
1217
  ref: 'google.com'
1228
1218
  }
@@ -1245,12 +1235,6 @@ describe('33acrossBidAdapter:', function () {
1245
1235
  });
1246
1236
 
1247
1237
  context('when Global Placement ID (gpid) is defined', function() {
1248
- let bidderRequest;
1249
-
1250
- beforeEach(function() {
1251
- bidderRequest = {};
1252
- });
1253
-
1254
1238
  it('passes the Global Placement ID (gpid) in the request', function() {
1255
1239
  const ttxRequest = new TtxRequestBuilder()
1256
1240
  .withBanner()
@@ -1281,9 +1265,7 @@ describe('33acrossBidAdapter:', function () {
1281
1265
 
1282
1266
  context('when referer value is not available', function() {
1283
1267
  it('returns corresponding server requests without site.page and site.ref set', function() {
1284
- const bidderRequest = {
1285
- refererInfo: {}
1286
- };
1268
+ bidderRequest.refererInfo = {};
1287
1269
 
1288
1270
  const ttxRequest = new TtxRequestBuilder()
1289
1271
  .withBanner()
@@ -1347,7 +1329,7 @@ describe('33acrossBidAdapter:', function () {
1347
1329
  .withData(ttxRequest)
1348
1330
  .build();
1349
1331
 
1350
- const [ builtServerRequest ] = spec.buildRequests(bidRequests, {});
1332
+ const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
1351
1333
 
1352
1334
  validateBuiltServerRequest(builtServerRequest, serverRequest);
1353
1335
  });
@@ -1365,7 +1347,7 @@ describe('33acrossBidAdapter:', function () {
1365
1347
  .withData(ttxRequest)
1366
1348
  .build();
1367
1349
 
1368
- const [ builtServerRequest ] = spec.buildRequests(bidRequests, {});
1350
+ const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
1369
1351
 
1370
1352
  validateBuiltServerRequest(builtServerRequest, serverRequest);
1371
1353
  });
@@ -1380,7 +1362,7 @@ describe('33acrossBidAdapter:', function () {
1380
1362
  const serverRequest = new ServerRequestBuilder()
1381
1363
  .withData(ttxRequest)
1382
1364
  .build();
1383
- const [ builtServerRequest ] = spec.buildRequests(bidRequests, {});
1365
+ const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
1384
1366
 
1385
1367
  validateBuiltServerRequest(builtServerRequest, serverRequest);
1386
1368
  });
@@ -1397,7 +1379,7 @@ describe('33acrossBidAdapter:', function () {
1397
1379
  const serverRequest = new ServerRequestBuilder()
1398
1380
  .withData(ttxRequest)
1399
1381
  .build();
1400
- const [ builtServerRequest ] = spec.buildRequests(bidRequests, {});
1382
+ const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
1401
1383
 
1402
1384
  validateBuiltServerRequest(builtServerRequest, serverRequest);
1403
1385
  });
@@ -1422,7 +1404,7 @@ describe('33acrossBidAdapter:', function () {
1422
1404
  const serverRequest = new ServerRequestBuilder()
1423
1405
  .withData(ttxRequest)
1424
1406
  .build();
1425
- const [ builtServerRequest ] = spec.buildRequests(bidRequests, {});
1407
+ const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
1426
1408
 
1427
1409
  validateBuiltServerRequest(builtServerRequest, serverRequest);
1428
1410
  });
@@ -1447,7 +1429,7 @@ describe('33acrossBidAdapter:', function () {
1447
1429
  const serverRequest = new ServerRequestBuilder()
1448
1430
  .withData(ttxRequest)
1449
1431
  .build();
1450
- const [ builtServerRequest ] = spec.buildRequests(bidRequests, {});
1432
+ const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
1451
1433
 
1452
1434
  validateBuiltServerRequest(builtServerRequest, serverRequest);
1453
1435
  });
@@ -1464,7 +1446,7 @@ describe('33acrossBidAdapter:', function () {
1464
1446
  .withProduct('instream')
1465
1447
  .build();
1466
1448
 
1467
- const [ builtServerRequest ] = spec.buildRequests(bidRequests, {});
1449
+ const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
1468
1450
 
1469
1451
  expect(JSON.parse(builtServerRequest.data)).to.deep.equal(ttxRequest);
1470
1452
  });
@@ -1488,7 +1470,7 @@ describe('33acrossBidAdapter:', function () {
1488
1470
  const serverRequest = new ServerRequestBuilder()
1489
1471
  .withData(ttxRequest)
1490
1472
  .build();
1491
- const [ builtServerRequest ] = spec.buildRequests(bidRequests, {});
1473
+ const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
1492
1474
 
1493
1475
  validateBuiltServerRequest(builtServerRequest, serverRequest);
1494
1476
  });
@@ -1508,7 +1490,7 @@ describe('33acrossBidAdapter:', function () {
1508
1490
  const serverRequest = new ServerRequestBuilder()
1509
1491
  .withData(ttxRequest)
1510
1492
  .build();
1511
- const [ builtServerRequest ] = spec.buildRequests(bidRequests, {});
1493
+ const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
1512
1494
 
1513
1495
  validateBuiltServerRequest(builtServerRequest, serverRequest);
1514
1496
  });
@@ -1530,7 +1512,7 @@ describe('33acrossBidAdapter:', function () {
1530
1512
  const serverRequest = new ServerRequestBuilder()
1531
1513
  .withData(ttxRequest)
1532
1514
  .build();
1533
- const [ builtServerRequest ] = spec.buildRequests(bidRequests, {});
1515
+ const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
1534
1516
 
1535
1517
  validateBuiltServerRequest(builtServerRequest, serverRequest);
1536
1518
  });
@@ -1551,7 +1533,7 @@ describe('33acrossBidAdapter:', function () {
1551
1533
  const serverRequest = new ServerRequestBuilder()
1552
1534
  .withData(ttxRequest)
1553
1535
  .build();
1554
- const [ builtServerRequest ] = spec.buildRequests(bidRequests, {});
1536
+ const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
1555
1537
 
1556
1538
  validateBuiltServerRequest(builtServerRequest, serverRequest);
1557
1539
  });
@@ -1575,7 +1557,7 @@ describe('33acrossBidAdapter:', function () {
1575
1557
  const serverRequest = new ServerRequestBuilder()
1576
1558
  .withData(ttxRequest)
1577
1559
  .build();
1578
- const [ builtServerRequest ] = spec.buildRequests(bidRequests, {});
1560
+ const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
1579
1561
 
1580
1562
  validateBuiltServerRequest(builtServerRequest, serverRequest);
1581
1563
  });
@@ -1599,7 +1581,7 @@ describe('33acrossBidAdapter:', function () {
1599
1581
  const serverRequest = new ServerRequestBuilder()
1600
1582
  .withData(ttxRequest)
1601
1583
  .build();
1602
- const [ builtServerRequest ] = spec.buildRequests(bidRequests, {});
1584
+ const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
1603
1585
 
1604
1586
  validateBuiltServerRequest(builtServerRequest, serverRequest);
1605
1587
  });
@@ -1620,7 +1602,7 @@ describe('33acrossBidAdapter:', function () {
1620
1602
  .withProduct()
1621
1603
  .build();
1622
1604
 
1623
- const [ builtServerRequest ] = spec.buildRequests(bidRequests, {});
1605
+ const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
1624
1606
 
1625
1607
  expect(JSON.parse(builtServerRequest.data)).to.deep.equal(ttxRequest);
1626
1608
  });
@@ -1648,7 +1630,7 @@ describe('33acrossBidAdapter:', function () {
1648
1630
  .withFloors('video', [ 1.0 ])
1649
1631
  .build();
1650
1632
 
1651
- const [ builtServerRequest ] = spec.buildRequests(bidRequests, {});
1633
+ const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
1652
1634
 
1653
1635
  expect(JSON.parse(builtServerRequest.data)).to.deep.equal(ttxRequest);
1654
1636
  });
@@ -1690,7 +1672,7 @@ describe('33acrossBidAdapter:', function () {
1690
1672
  .withProduct()
1691
1673
  .build();
1692
1674
 
1693
- const [ builtServerRequest ] = spec.buildRequests(bidRequests, {});
1675
+ const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
1694
1676
 
1695
1677
  expect(JSON.parse(builtServerRequest.data)).to.deep.equal(ttxRequest);
1696
1678
  });
@@ -1709,7 +1691,7 @@ describe('33acrossBidAdapter:', function () {
1709
1691
  .withProduct()
1710
1692
  .build();
1711
1693
 
1712
- const [ builtServerRequest ] = spec.buildRequests(bidRequests, {});
1694
+ const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
1713
1695
 
1714
1696
  expect(JSON.parse(builtServerRequest.data)).to.deep.equal(ttxRequest);
1715
1697
  });
@@ -1756,7 +1738,7 @@ describe('33acrossBidAdapter:', function () {
1756
1738
  .withProduct()
1757
1739
  .build();
1758
1740
 
1759
- const [ builtServerRequest ] = spec.buildRequests(bidRequests, {});
1741
+ const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
1760
1742
 
1761
1743
  expect(JSON.parse(builtServerRequest.data)).to.deep.equal(ttxRequest);
1762
1744
  });
@@ -1830,7 +1812,7 @@ describe('33acrossBidAdapter:', function () {
1830
1812
  .withUrl('https://ssc.33across.com/api/v1/hb?guid=sample33xGUID123456780')
1831
1813
  .build();
1832
1814
 
1833
- const builtServerRequests = spec.buildRequests(bidRequests, {});
1815
+ const builtServerRequests = spec.buildRequests(bidRequests, bidderRequest);
1834
1816
 
1835
1817
  expect(builtServerRequests).to.deep.equal([serverReq1, serverReq2, serverReq3]);
1836
1818
  });
@@ -1887,7 +1869,7 @@ describe('33acrossBidAdapter:', function () {
1887
1869
  .withUrl('https://ssc.33across.com/api/v1/hb?guid=sample33xGUID123456780')
1888
1870
  .build();
1889
1871
 
1890
- const builtServerRequests = spec.buildRequests(bidRequests, {});
1872
+ const builtServerRequests = spec.buildRequests(bidRequests, bidderRequest);
1891
1873
 
1892
1874
  expect(builtServerRequests)
1893
1875
  .to.deep.equal([
@@ -1946,7 +1928,6 @@ describe('33acrossBidAdapter:', function () {
1946
1928
  };
1947
1929
  const bidResponse = {
1948
1930
  requestId: 'b1',
1949
- bidderCode: BIDDER_CODE,
1950
1931
  cpm: 0.0938,
1951
1932
  width: 300,
1952
1933
  height: 250,
@@ -1992,7 +1973,6 @@ describe('33acrossBidAdapter:', function () {
1992
1973
  };
1993
1974
  const bidResponse = {
1994
1975
  requestId: 'b1',
1995
- bidderCode: BIDDER_CODE,
1996
1976
  cpm: 0.0938,
1997
1977
  width: 300,
1998
1978
  height: 250,
@@ -2036,7 +2016,6 @@ describe('33acrossBidAdapter:', function () {
2036
2016
  // Bid response below doesn't contain meta.advertiserDomains
2037
2017
  const bidResponse = {
2038
2018
  requestId: 'b1',
2039
- bidderCode: BIDDER_CODE,
2040
2019
  cpm: 0.0938,
2041
2020
  width: 300,
2042
2021
  height: 250,
@@ -2116,7 +2095,6 @@ describe('33acrossBidAdapter:', function () {
2116
2095
  const bidResponse = [
2117
2096
  {
2118
2097
  requestId: 'b1',
2119
- bidderCode: BIDDER_CODE,
2120
2098
  cpm: 0.0940,
2121
2099
  width: 300,
2122
2100
  height: 250,
@@ -2129,7 +2107,6 @@ describe('33acrossBidAdapter:', function () {
2129
2107
  },
2130
2108
  {
2131
2109
  requestId: 'b2',
2132
- bidderCode: BIDDER_CODE,
2133
2110
  cpm: 0.0938,
2134
2111
  width: 300,
2135
2112
  height: 250,
@@ -2142,7 +2119,6 @@ describe('33acrossBidAdapter:', function () {
2142
2119
  },
2143
2120
  {
2144
2121
  requestId: 'b3',
2145
- bidderCode: BIDDER_CODE,
2146
2122
  cpm: 0.0938,
2147
2123
  width: 300,
2148
2124
  height: 250,
@@ -2225,7 +2201,7 @@ describe('33acrossBidAdapter:', function () {
2225
2201
 
2226
2202
  expect(spec.getUserSyncs(syncOptions)).to.deep.equal([]);
2227
2203
  });
2228
- });
2204
+ }, bidderRequest);
2229
2205
 
2230
2206
  context('when iframe is enabled', function() {
2231
2207
  let syncOptions;
@@ -2237,7 +2213,7 @@ describe('33acrossBidAdapter:', function () {
2237
2213
 
2238
2214
  context('when there is no gdpr consent data', function() {
2239
2215
  it('returns sync urls with undefined consent string as param', function() {
2240
- spec.buildRequests(bidRequests);
2216
+ spec.buildRequests(bidRequests, bidderRequest);
2241
2217
 
2242
2218
  const syncResults = spec.getUserSyncs(syncOptions, {}, undefined);
2243
2219
  const expectedSyncs = [
@@ -2257,7 +2233,7 @@ describe('33acrossBidAdapter:', function () {
2257
2233
 
2258
2234
  context('when gdpr applies but there is no consent string', function() {
2259
2235
  it('returns sync urls with undefined consent string as param and gdpr=1', function() {
2260
- spec.buildRequests(bidRequests);
2236
+ spec.buildRequests(bidRequests, bidderRequest);
2261
2237
 
2262
2238
  const syncResults = spec.getUserSyncs(syncOptions, {}, {gdprApplies: true});
2263
2239
  const expectedSyncs = [
@@ -2277,7 +2253,7 @@ describe('33acrossBidAdapter:', function () {
2277
2253
 
2278
2254
  context('when gdpr applies and there is consent string', function() {
2279
2255
  it('returns sync urls with gdpr_consent=consent string as param and gdpr=1', function() {
2280
- spec.buildRequests(bidRequests);
2256
+ spec.buildRequests(bidRequests, bidderRequest);
2281
2257
 
2282
2258
  const syncResults = spec.getUserSyncs(syncOptions, {}, {gdprApplies: true, consentString: 'consent123A'});
2283
2259
  const expectedSyncs = [
@@ -2297,7 +2273,7 @@ describe('33acrossBidAdapter:', function () {
2297
2273
 
2298
2274
  context('when gdpr does not apply and there is no consent string', function() {
2299
2275
  it('returns sync urls with undefined consent string as param and gdpr=0', function() {
2300
- spec.buildRequests(bidRequests);
2276
+ spec.buildRequests(bidRequests, bidderRequest);
2301
2277
 
2302
2278
  const syncResults = spec.getUserSyncs(syncOptions, {}, {gdprApplies: false});
2303
2279
  const expectedSyncs = [
@@ -2316,7 +2292,7 @@ describe('33acrossBidAdapter:', function () {
2316
2292
 
2317
2293
  context('when gdpr is unknown and there is consent string', function() {
2318
2294
  it('returns sync urls with only consent string as param', function() {
2319
- spec.buildRequests(bidRequests);
2295
+ spec.buildRequests(bidRequests, bidderRequest);
2320
2296
 
2321
2297
  const syncResults = spec.getUserSyncs(syncOptions, {}, {consentString: 'consent123A'});
2322
2298
  const expectedSyncs = [
@@ -2335,7 +2311,7 @@ describe('33acrossBidAdapter:', function () {
2335
2311
 
2336
2312
  context('when gdpr does not apply and there is consent string (yikes!)', function() {
2337
2313
  it('returns sync urls with consent string as param and gdpr=0', function() {
2338
- spec.buildRequests(bidRequests);
2314
+ spec.buildRequests(bidRequests, bidderRequest);
2339
2315
 
2340
2316
  const syncResults = spec.getUserSyncs(syncOptions, {}, {gdprApplies: false, consentString: 'consent123A'});
2341
2317
  const expectedSyncs = [
@@ -2354,7 +2330,7 @@ describe('33acrossBidAdapter:', function () {
2354
2330
 
2355
2331
  context('when there is no usPrivacy data', function() {
2356
2332
  it('returns sync urls with undefined consent string as param', function() {
2357
- spec.buildRequests(bidRequests);
2333
+ spec.buildRequests(bidRequests, bidderRequest);
2358
2334
 
2359
2335
  const syncResults = spec.getUserSyncs(syncOptions, {});
2360
2336
  const expectedSyncs = [
@@ -2374,7 +2350,7 @@ describe('33acrossBidAdapter:', function () {
2374
2350
 
2375
2351
  context('when there is usPrivacy data', function() {
2376
2352
  it('returns sync urls with consent string as param', function() {
2377
- spec.buildRequests(bidRequests);
2353
+ spec.buildRequests(bidRequests, bidderRequest);
2378
2354
 
2379
2355
  const syncResults = spec.getUserSyncs(syncOptions, {}, {}, 'foo');
2380
2356
  const expectedSyncs = [
@@ -296,6 +296,7 @@ describe('Adagio bid adapter', () => {
296
296
  sandbox.stub(adagio, 'getDevice').returns({ a: 'a' });
297
297
  sandbox.stub(adagio, 'getSite').returns({ domain: 'adagio.io', 'page': 'https://adagio.io/hb' });
298
298
  sandbox.stub(adagio, 'getPageviewId').returns('1234-567');
299
+ sandbox.stub(utils, 'generateUUID').returns('blabla');
299
300
 
300
301
  const bid01 = new BidRequestBuilder().withParams().build();
301
302
  const bidderRequest = new BidderRequestBuilder().build();
@@ -309,6 +310,18 @@ describe('Adagio bid adapter', () => {
309
310
  expect(requests[0].data).to.have.all.keys(expectedDataKeys);
310
311
  });
311
312
 
313
+ it('should use a custom generated auctionId and remove transactionId', function() {
314
+ const expectedAuctionId = '373bcda7-9794-4f1c-be2c-0d223d11d579'
315
+ sandbox.stub(utils, 'generateUUID').returns(expectedAuctionId);
316
+
317
+ const bid01 = new BidRequestBuilder().withParams().build();
318
+ const bidderRequest = new BidderRequestBuilder().build();
319
+
320
+ const requests = spec.buildRequests([bid01], bidderRequest);
321
+ expect(requests[0].data.adUnits[0].auctionId).eq(expectedAuctionId);
322
+ expect(requests[0].data.adUnits[0].transactionId).to.not.exist;
323
+ });
324
+
312
325
  it('should enqueue computed features for collect usage', function() {
313
326
  sandbox.stub(Date, 'now').returns(12345);
314
327
 
@@ -1280,14 +1293,6 @@ describe('Adagio bid adapter', () => {
1280
1293
 
1281
1294
  describe('transformBidParams', function() {
1282
1295
  it('Compute additional params in s2s mode', function() {
1283
- GlobalExchange.prepareExchangeData('{}');
1284
-
1285
- sandbox.stub(window.top.document, 'getElementById').returns(
1286
- fixtures.getElementById()
1287
- );
1288
- sandbox.stub(window.top, 'getComputedStyle').returns({ display: 'block' });
1289
- sandbox.stub(utils, 'inIframe').returns(false);
1290
-
1291
1296
  const adUnit = {
1292
1297
  code: 'adunit-code',
1293
1298
  params: {
@@ -1308,22 +1313,8 @@ describe('Adagio bid adapter', () => {
1308
1313
  }
1309
1314
  }).withParams().build();
1310
1315
 
1311
- const params = spec.transformBidParams({ organizationId: '1000' }, true, adUnit, [{ bidderCode: 'adagio', auctionId: bid01.auctionId, bids: [bid01] }]);
1312
-
1313
- expect(params.organizationId).to.exist;
1314
- expect(params.auctionId).to.exist;
1315
- expect(params.playerName).to.exist;
1316
- expect(params.playerName).to.equal('other');
1317
- expect(params.features).to.exist;
1318
- expect(params.features.page_dimensions).to.exist;
1319
- expect(params.features.adunit_position).to.exist;
1320
- expect(params.features.dom_loading).to.exist;
1321
- expect(params.features.print_number).to.exist;
1322
- expect(params.features.user_timestamp).to.exist;
1323
- expect(params.placement).to.exist;
1324
- expect(params.adUnitElementId).to.exist;
1325
- expect(params.site).to.exist;
1326
- expect(params.data.session).to.exist;
1316
+ const params = spec.transformBidParams({ param01: 'test' }, true, adUnit, [{ bidderCode: 'adagio', auctionId: bid01.auctionId, bids: [bid01] }]);
1317
+ expect(params.param01).eq('test');
1327
1318
  });
1328
1319
  });
1329
1320
 
@@ -960,6 +960,11 @@ const bidderRequest = {
960
960
  consentString: 'gdprConsentString',
961
961
  },
962
962
  uspConsent: 'uspConsentString',
963
+ ortb2: {
964
+ source: {
965
+ tid: 'aaccee333311'
966
+ }
967
+ }
963
968
  };
964
969
 
965
970
  const bannerBid = {
@@ -171,7 +171,10 @@ describe('Adf adapter', function () {
171
171
  bidId: 'bidId',
172
172
  params: { siteId: 'siteId' },
173
173
  }];
174
- let request = JSON.parse(spec.buildRequests(validBidRequests, { refererInfo: { page: 'page' }, auctionId: 'tid' }).data);
174
+ let request = JSON.parse(spec.buildRequests(validBidRequests, {
175
+ refererInfo: {page: 'page'},
176
+ ortb2: {source: {tid: 'tid'}}
177
+ }).data);
175
178
 
176
179
  assert.equal(request.source.tid, 'tid');
177
180
  assert.equal(request.source.fd, 1);
@@ -88,7 +88,7 @@ describe('adhashBidAdapter', function () {
88
88
  );
89
89
  expect(result.length).to.equal(1);
90
90
  expect(result[0].method).to.equal('POST');
91
- expect(result[0].url).to.equal('https://bidder.adhash.com/rtb?version=3.2&prebid=true&publisher=0xc3b09b27e9c6ef73957901aa729b9e69e5bbfbfb');
91
+ expect(result[0].url).to.equal('https://bidder.adhash.com/rtb?version=3.6&prebid=true&publisher=0xc3b09b27e9c6ef73957901aa729b9e69e5bbfbfb');
92
92
  expect(result[0].bidRequest).to.equal(bidRequest);
93
93
  expect(result[0].data).to.have.property('timezone');
94
94
  expect(result[0].data).to.have.property('location');
@@ -104,7 +104,7 @@ describe('adhashBidAdapter', function () {
104
104
  const result = spec.buildRequests([ bidRequest ], { gdprConsent: { gdprApplies: true, consentString: 'example' } });
105
105
  expect(result.length).to.equal(1);
106
106
  expect(result[0].method).to.equal('POST');
107
- expect(result[0].url).to.equal('https://bidder.adhash.com/rtb?version=3.2&prebid=true&publisher=0xc3b09b27e9c6ef73957901aa729b9e69e5bbfbfb');
107
+ expect(result[0].url).to.equal('https://bidder.adhash.com/rtb?version=3.6&prebid=true&publisher=0xc3b09b27e9c6ef73957901aa729b9e69e5bbfbfb');
108
108
  expect(result[0].bidRequest).to.equal(bidRequest);
109
109
  expect(result[0].data).to.have.property('timezone');
110
110
  expect(result[0].data).to.have.property('location');
@@ -152,6 +152,8 @@ describe('adhashBidAdapter', function () {
152
152
  ['дума', 'full', 1],
153
153
  ['старт', 'starts', 1],
154
154
  ['край', 'ends', 1],
155
+ ['onq jbeq', 'partial', 1],
156
+ ['dhrra qvrf', 'combo', 2],
155
157
  ],
156
158
  maxScore: 2
157
159
  }
@@ -196,6 +198,13 @@ describe('adhashBidAdapter', function () {
196
198
  expect(spec.interpretResponse(serverResponse, request).length).to.equal(0);
197
199
  });
198
200
 
201
+ it('should return empty array when there are bad words (partial, compound phrase)', function () {
202
+ bodyStub = sinon.stub(window.top.document.body, 'innerText').get(function() {
203
+ return 'example text partialbad wordb bad wordb example bad wordbtext' + ' word'.repeat(994);
204
+ });
205
+ expect(spec.interpretResponse(serverResponse, request).length).to.equal(0);
206
+ });
207
+
199
208
  it('should return empty array when there are bad words (starts)', function () {
200
209
  bodyStub = sinon.stub(window.top.document.body, 'innerText').get(function() {
201
210
  return 'example text startsWith starts text startsAgain' + ' word'.repeat(994);
@@ -224,6 +233,13 @@ describe('adhashBidAdapter', function () {
224
233
  expect(spec.interpretResponse(serverResponse, request).length).to.equal(0);
225
234
  });
226
235
 
236
+ it('should return empty array when there are bad words (combo)', function () {
237
+ bodyStub = sinon.stub(window.top.document.body, 'innerText').get(function() {
238
+ return 'queen of england dies, the queen dies' + ' word'.repeat(993);
239
+ });
240
+ expect(spec.interpretResponse(serverResponse, request).length).to.equal(0);
241
+ });
242
+
227
243
  it('should return empty array when there are bad words (regexp)', function () {
228
244
  bodyStub = sinon.stub(window.top.document.body, 'innerText').get(function() {
229
245
  return 'example text xxxayyy zzxxxAyyyzz text xxxbyyy' + ' word'.repeat(994);
@@ -220,7 +220,7 @@ describe('AdkernelAdn adapter', function () {
220
220
  }
221
221
 
222
222
  describe('banner request building', function () {
223
- let [_, tagRequests] = buildRequest([bid1_pub1]);
223
+ let [_, tagRequests] = buildRequest([bid1_pub1], {ortb2: {source: {tid: 'mock-tid'}}});
224
224
  let tagRequest = tagRequests[0];
225
225
 
226
226
  it('should have request id', function () {
@@ -374,7 +374,6 @@ describe('AdkernelAdn adapter', function () {
374
374
 
375
375
  it('should return fully-initialized bid-response', function () {
376
376
  let resp = responses[0];
377
- expect(resp).to.have.property('bidderCode', 'adkernelAdn');
378
377
  expect(resp).to.have.property('requestId', '2c5e951baeeadd');
379
378
  expect(resp).to.have.property('cpm', 5.0);
380
379
  expect(resp).to.have.property('width', 300);
@@ -394,7 +393,6 @@ describe('AdkernelAdn adapter', function () {
394
393
 
395
394
  it('should return fully-initialized video bid-response', function () {
396
395
  let resp = responses[2];
397
- expect(resp).to.have.property('bidderCode', 'adkernelAdn');
398
396
  expect(resp).to.have.property('requestId', '57d602ad1c9545');
399
397
  expect(resp).to.have.property('cpm', 10.0);
400
398
  expect(resp).to.have.property('creativeId', '108_158802');