From 31d1d0e120a32b3305201b1c086af659f352622a Mon Sep 17 00:00:00 2001
From: Chris Huie
Date: Wed, 9 Jun 2021 18:48:18 -0700
Subject: [PATCH] Rule Enforcement: include support for adomain (#6986)
---
modules/7xbidBidAdapter.js | 159 ---
modules/aardvarkBidAdapter.js | 262 -----
modules/adbutlerBidAdapter.js | 140 ---
modules/adfinityBidAdapter.js | 125 ---
modules/adgenerationBidAdapter.js | 236 -----
modules/adglareBidAdapter.js | 90 --
modules/adhashBidAdapter.js | 102 --
modules/adheseBidAdapter.js | 233 -----
modules/adliveBidAdapter.js | 69 --
modules/admanBidAdapter.js | 118 ---
modules/admaticBidAdapter.js | 147 ---
modules/admediaBidAdapter.js | 71 --
modules/adpartnerBidAdapter.js | 124 ---
modules/adprimeBidAdapter.js | 129 ---
modules/advenueBidAdapter.js | 86 --
modules/advertlyBidAdapter.js | 127 ---
modules/ajaBidAdapter.js | 194 ----
modules/atomxBidAdapter.js | 107 --
modules/avocetBidAdapter.js | 141 ---
modules/bidlabBidAdapter.js | 112 ---
modules/bidphysicsBidAdapter.js | 134 ---
modules/bizzclickBidAdapter.js | 326 -------
modules/boldwinBidAdapter.js | 110 ---
modules/byplayBidAdapter.js | 67 --
modules/cedatoBidAdapter.js | 229 -----
modules/clickforceBidAdapter.js | 126 ---
modules/clicktripzBidAdapter.js | 67 --
modules/collectcentBidAdapter.js | 93 --
modules/colombiaBidAdapter.js | 82 --
modules/colossussspBidAdapter.js | 156 ---
modules/convergeBidAdapter.js | 313 ------
modules/cpmstarBidAdapter.js | 180 ----
modules/decenteradsBidAdapter.js | 90 --
modules/djaxBidAdapter.js | 129 ---
modules/e_volutionBidAdapter.js | 111 ---
modules/edgequeryxBidAdapter.js | 98 --
modules/emoteevBidAdapter.js | 525 ----------
modules/engageyaBidAdapter.js | 133 ---
modules/envivoBidAdapter.js | 129 ---
modules/fidelityBidAdapter.js | 146 ---
modules/fluctBidAdapter.js | 121 ---
modules/gammaBidAdapter.js | 101 --
modules/gnetBidAdapter.js | 101 --
modules/haxmediaBidAdapter.js | 107 --
modules/hpmdnetworkBidAdapter.js | 96 --
modules/impactifyBidAdapter.js | 260 -----
modules/innityBidAdapter.js | 58 --
modules/ipromBidAdapter.js | 79 --
modules/ironsourceBidAdapter.js | 251 -----
modules/jcmBidAdapter.js | 89 --
modules/krushmediaBidAdapter.js | 123 ---
modules/lifestreetBidAdapter.js | 139 ---
modules/lkqdBidAdapter.js | 284 ------
modules/loganBidAdapter.js | 118 ---
modules/logicadBidAdapter.js | 69 --
modules/loopmeBidAdapter.js | 149 ---
modules/luponmediaBidAdapter.js | 341 -------
modules/madvertiseBidAdapter.js | 94 --
modules/mantisBidAdapter.js | 310 ------
modules/meazyBidAdapter.js | 149 ---
modules/mediagoBidAdapter.js | 375 -------
modules/microadBidAdapter.js | 151 ---
modules/missenaBidAdapter.js | 94 --
modules/mobfoxpbBidAdapter.js | 99 --
modules/mobsmartBidAdapter.js | 94 --
modules/nanointeractiveBidAdapter.js | 159 ---
modules/nasmediaAdmixerBidAdapter.js | 85 --
modules/nextMillenniumBidAdapter.js | 75 --
modules/open8BidAdapter.js | 185 ----
modules/otmBidAdapter.js | 95 --
modules/outconBidAdapter.js | 69 --
modules/papyrusBidAdapter.js | 77 --
modules/performaxBidAdapter.js | 56 --
modules/piximediaBidAdapter.js | 47 -
modules/projectLimeLightBidAdapter.js | 122 ---
modules/proxistoreBidAdapter.js | 151 ---
modules/pubxBidAdapter.js | 94 --
modules/reklamstoreBidAdapter.js | 148 ---
modules/reloadBidAdapter.js | 419 --------
modules/resultsmediaBidAdapter.js | 269 ------
modules/riseBidAdapter.js | 251 -----
modules/rtbsapeBidAdapter.js | 142 ---
modules/rtbsolutionsBidAdapter.js | 100 --
modules/seedingAllianceBidAdapter.js | 225 -----
modules/segmentoBidAdapter.js | 85 --
modules/shinezBidAdapter.js | 83 --
modules/slimcutBidAdapter.js | 128 ---
modules/smarticoBidAdapter.js | 116 ---
modules/smartrtbBidAdapter.js | 133 ---
modules/smmsBidAdapter.js | 156 ---
modules/stvBidAdapter.js | 150 ---
modules/taphypeBidAdapter.js | 45 -
modules/topRTBBidAdapter.js | 65 --
modules/trendqubeBidAdapter.js | 102 --
modules/turktelekomBidAdapter.js | 261 -----
modules/unicornBidAdapter.js | 160 ---
modules/vdoaiBidAdapter.js | 125 ---
modules/viBidAdapter.js | 393 --------
modules/vidazooBidAdapter.js | 278 ------
modules/videoNowBidAdapter.js | 187 ----
modules/videofyBidAdapter.js | 300 ------
modules/videoreachBidAdapter.js | 119 ---
modules/vmgBidAdapter.js | 86 --
modules/welectBidAdapter.js | 106 --
modules/windtalkerBidAdapter.js | 307 ------
modules/wipesBidAdapter.js | 71 --
modules/zedoBidAdapter.js | 342 -------
test/spec/modules/7xbidBidAdapter_spec.js | 160 ---
test/spec/modules/aardvarkBidAdapter_spec.js | 569 -----------
test/spec/modules/adbutlerBidAdapter_spec.js | 231 -----
test/spec/modules/adfinityBidAdapter_spec.js | 151 ---
.../modules/adgenerationBidAdapter_spec.js | 407 --------
test/spec/modules/adglareBidAdapter_spec.js | 138 ---
test/spec/modules/adhashBidAdapter_spec.js | 155 ---
test/spec/modules/adheseBidAdapter_spec.js | 509 ----------
test/spec/modules/adliveBidAdapter_spec.js | 78 --
test/spec/modules/admanBidAdapter_spec.js | 231 -----
test/spec/modules/admediaBidAdapter_spec.js | 138 ---
test/spec/modules/adpartnerBidAdapter_spec.js | 234 -----
test/spec/modules/adprimeBidAdapter_spec.js | 297 ------
test/spec/modules/advenueBidAdapter_spec.js | 107 --
test/spec/modules/advertlyBidAdapter_spec.js | 159 ---
test/spec/modules/ajaBidAdapter_spec.js | 311 ------
test/spec/modules/atomxBidAdapter_spec.js | 119 ---
test/spec/modules/avocetBidAdapter_spec.js | 167 ----
test/spec/modules/bidlabBidAdapter_spec.js | 235 -----
.../spec/modules/bidphysicsBidAdapter_spec.js | 261 -----
test/spec/modules/bizzclickBidAdapter_spec.js | 396 --------
test/spec/modules/boldwinBidAdapter_spec.js | 281 ------
test/spec/modules/byplayBidAdapter_spec.js | 93 --
test/spec/modules/cedatoBidAdapter_spec.js | 133 ---
.../spec/modules/clickforceBidAdapter_spec.js | 190 ----
.../spec/modules/clicktripzBidAdapter_spec.js | 152 ---
.../modules/collectcentBidAdapter_spec.js | 118 ---
test/spec/modules/colombiaBidAdapter_spec.js | 152 ---
.../modules/colossussspBidAdapter_spec.js | 185 ----
test/spec/modules/convergeBidAdapter_spec.js | 899 -----------------
test/spec/modules/cpmstarBidAdapter_spec.js | 231 -----
.../modules/decenteradsBidAdapter_spec.js | 207 ----
test/spec/modules/djaxBidAdapter_spec.js | 159 ---
.../spec/modules/e_volutionBidAdapter_spec.js | 235 -----
.../spec/modules/edgequeryxBidAdapter_spec.js | 116 ---
test/spec/modules/emoteevBidAdapter_spec.js | 876 -----------------
test/spec/modules/engageyaBidAdapter_spec.js | 161 ----
test/spec/modules/envivoBidAdapter_spec.js | 159 ---
test/spec/modules/fidelityBidAdapter_spec.js | 233 -----
test/spec/modules/fluctBidAdapter_spec.js | 201 ----
test/spec/modules/gammaBidAdapter_spec.js | 104 --
test/spec/modules/gnetBidAdapter_spec.js | 145 ---
test/spec/modules/haxmediaBidAdapter_spec.js | 304 ------
.../modules/hpmdnetworkBidAdapter_spec.js | 148 ---
test/spec/modules/impactifyBidAdapter_spec.js | 398 --------
test/spec/modules/innityBidAdapter_spec.js | 106 --
test/spec/modules/ipromBidAdapter_spec.js | 195 ----
.../spec/modules/ironsourceBidAdapter_spec.js | 381 --------
test/spec/modules/jcmBidAdapter_spec.js | 139 ---
.../spec/modules/krushmediaBidAdapter_spec.js | 329 -------
.../spec/modules/lifestreetBidAdapter_spec.js | 232 -----
test/spec/modules/lkqdBidAdapter_spec.js | 370 -------
test/spec/modules/loganBidAdapter_spec.js | 329 -------
test/spec/modules/logicadBidAdapter_spec.js | 236 -----
test/spec/modules/loopmeBidAdapter_spec.js | 167 ----
.../spec/modules/luponmediaBidAdapter_spec.js | 412 --------
.../spec/modules/madvertiseBidAdapter_spec.js | 203 ----
test/spec/modules/mantisBidAdapter_spec.js | 361 -------
test/spec/modules/meazyBidAdapter_spec.js | 177 ----
test/spec/modules/mediagoBidAdapter_spec.js | 101 --
test/spec/modules/microadBidAdapter_spec.js | 388 --------
test/spec/modules/missenaBidAdapter_spec.js | 131 ---
test/spec/modules/mobfoxpbBidAdapter_spec.js | 304 ------
test/spec/modules/mobsmartBidAdapter_spec.js | 214 ----
.../modules/nanointeractiveBidAdapter_spec.js | 466 ---------
.../modules/nasmediaAdmixerBidAdapter_spec.js | 143 ---
.../modules/nextMillenniumBidAdapter_spec.js | 93 --
test/spec/modules/open8BidAdapter_spec.js | 251 -----
test/spec/modules/otmBidAdapter_spec.js | 105 --
test/spec/modules/outconBidAdapter_spec.js | 100 --
test/spec/modules/papyrusBidAdapter_spec.js | 115 ---
test/spec/modules/performaxBidAdapter_spec.js | 274 ------
test/spec/modules/piximediaBidAdapter_spec.js | 103 --
.../projectLimeLightBidAdapter_spec.js | 259 -----
.../spec/modules/proxistoreBidAdapter_spec.js | 166 ----
test/spec/modules/pubxBidAdapter_spec.js | 189 ----
.../modules/reklamstoreBidAdapter_spec.js | 85 --
test/spec/modules/reloadBidAdapter_spec.js | 295 ------
.../modules/resultsmediaBidAdapter_spec.js | 574 -----------
test/spec/modules/riseBidAdapter_spec.js | 381 --------
test/spec/modules/rtbsapeBidAdapter_spec.js | 166 ----
.../modules/rtbsolutionsBidAdapter_spec.js | 62 --
.../modules/seedingAllianceAdapter_spec.js | 186 ----
test/spec/modules/segmentoBidAdapter_spec.js | 187 ----
test/spec/modules/shinezBidAdapter_spec.js | 152 ---
test/spec/modules/slimcutBidAdapter_spec.js | 212 ----
test/spec/modules/smarticoBidAdapter_spec.js | 118 ---
test/spec/modules/smartrtbBidAdapter_spec.js | 158 ---
test/spec/modules/smmsBidAdapter_spec.js | 161 ----
test/spec/modules/stvBidAdapter_spec.js | 138 ---
test/spec/modules/taphypeBidAdapter_spec.js | 56 --
test/spec/modules/topRTBBidAdapter_spec.js | 67 --
test/spec/modules/trendqubeBidAdapter_spec.js | 270 ------
.../modules/turktelekomBidAdapter_spec.js | 749 --------------
test/spec/modules/unicornBidAdapter_spec.js | 490 ----------
test/spec/modules/vdoaiBidAdapter_spec.js | 141 ---
test/spec/modules/viBidAdapter_spec.js | 911 ------------------
test/spec/modules/vidazooBidAdapter_spec.js | 372 -------
test/spec/modules/videoNowBidAdapter_spec.js | 599 ------------
test/spec/modules/videofyBidAdapter_spec.js | 253 -----
.../spec/modules/videoreachBidAdapter_spec.js | 141 ---
test/spec/modules/vmgBidAdapter_spec.js | 98 --
test/spec/modules/welectBidAdapter_spec.js | 211 ----
.../spec/modules/windtalkerBidAdapter_spec.js | 348 -------
test/spec/modules/wipesBidAdapter_spec.js | 150 ---
test/spec/modules/zedoBidAdapter_spec.js | 354 -------
213 files changed, 42492 deletions(-)
delete mode 100644 modules/7xbidBidAdapter.js
delete mode 100644 modules/aardvarkBidAdapter.js
delete mode 100644 modules/adbutlerBidAdapter.js
delete mode 100644 modules/adfinityBidAdapter.js
delete mode 100644 modules/adgenerationBidAdapter.js
delete mode 100644 modules/adglareBidAdapter.js
delete mode 100644 modules/adhashBidAdapter.js
delete mode 100644 modules/adheseBidAdapter.js
delete mode 100644 modules/adliveBidAdapter.js
delete mode 100644 modules/admanBidAdapter.js
delete mode 100644 modules/admaticBidAdapter.js
delete mode 100644 modules/admediaBidAdapter.js
delete mode 100644 modules/adpartnerBidAdapter.js
delete mode 100644 modules/adprimeBidAdapter.js
delete mode 100644 modules/advenueBidAdapter.js
delete mode 100755 modules/advertlyBidAdapter.js
delete mode 100644 modules/ajaBidAdapter.js
delete mode 100644 modules/atomxBidAdapter.js
delete mode 100644 modules/avocetBidAdapter.js
delete mode 100644 modules/bidlabBidAdapter.js
delete mode 100644 modules/bidphysicsBidAdapter.js
delete mode 100644 modules/bizzclickBidAdapter.js
delete mode 100644 modules/boldwinBidAdapter.js
delete mode 100644 modules/byplayBidAdapter.js
delete mode 100644 modules/cedatoBidAdapter.js
delete mode 100644 modules/clickforceBidAdapter.js
delete mode 100644 modules/clicktripzBidAdapter.js
delete mode 100644 modules/collectcentBidAdapter.js
delete mode 100644 modules/colombiaBidAdapter.js
delete mode 100644 modules/colossussspBidAdapter.js
delete mode 100644 modules/convergeBidAdapter.js
delete mode 100644 modules/cpmstarBidAdapter.js
delete mode 100644 modules/decenteradsBidAdapter.js
delete mode 100644 modules/djaxBidAdapter.js
delete mode 100644 modules/e_volutionBidAdapter.js
delete mode 100644 modules/edgequeryxBidAdapter.js
delete mode 100644 modules/emoteevBidAdapter.js
delete mode 100644 modules/engageyaBidAdapter.js
delete mode 100644 modules/envivoBidAdapter.js
delete mode 100644 modules/fidelityBidAdapter.js
delete mode 100644 modules/fluctBidAdapter.js
delete mode 100644 modules/gammaBidAdapter.js
delete mode 100644 modules/gnetBidAdapter.js
delete mode 100644 modules/haxmediaBidAdapter.js
delete mode 100644 modules/hpmdnetworkBidAdapter.js
delete mode 100644 modules/impactifyBidAdapter.js
delete mode 100644 modules/innityBidAdapter.js
delete mode 100644 modules/ipromBidAdapter.js
delete mode 100644 modules/ironsourceBidAdapter.js
delete mode 100644 modules/jcmBidAdapter.js
delete mode 100644 modules/krushmediaBidAdapter.js
delete mode 100644 modules/lifestreetBidAdapter.js
delete mode 100644 modules/lkqdBidAdapter.js
delete mode 100644 modules/loganBidAdapter.js
delete mode 100644 modules/logicadBidAdapter.js
delete mode 100644 modules/loopmeBidAdapter.js
delete mode 100644 modules/luponmediaBidAdapter.js
delete mode 100644 modules/madvertiseBidAdapter.js
delete mode 100644 modules/mantisBidAdapter.js
delete mode 100644 modules/meazyBidAdapter.js
delete mode 100644 modules/mediagoBidAdapter.js
delete mode 100644 modules/microadBidAdapter.js
delete mode 100644 modules/missenaBidAdapter.js
delete mode 100644 modules/mobfoxpbBidAdapter.js
delete mode 100644 modules/mobsmartBidAdapter.js
delete mode 100644 modules/nanointeractiveBidAdapter.js
delete mode 100644 modules/nasmediaAdmixerBidAdapter.js
delete mode 100644 modules/nextMillenniumBidAdapter.js
delete mode 100644 modules/open8BidAdapter.js
delete mode 100644 modules/otmBidAdapter.js
delete mode 100644 modules/outconBidAdapter.js
delete mode 100644 modules/papyrusBidAdapter.js
delete mode 100644 modules/performaxBidAdapter.js
delete mode 100644 modules/piximediaBidAdapter.js
delete mode 100644 modules/projectLimeLightBidAdapter.js
delete mode 100644 modules/proxistoreBidAdapter.js
delete mode 100644 modules/pubxBidAdapter.js
delete mode 100644 modules/reklamstoreBidAdapter.js
delete mode 100644 modules/reloadBidAdapter.js
delete mode 100644 modules/resultsmediaBidAdapter.js
delete mode 100644 modules/riseBidAdapter.js
delete mode 100644 modules/rtbsapeBidAdapter.js
delete mode 100644 modules/rtbsolutionsBidAdapter.js
delete mode 100755 modules/seedingAllianceBidAdapter.js
delete mode 100644 modules/segmentoBidAdapter.js
delete mode 100644 modules/shinezBidAdapter.js
delete mode 100644 modules/slimcutBidAdapter.js
delete mode 100644 modules/smarticoBidAdapter.js
delete mode 100644 modules/smartrtbBidAdapter.js
delete mode 100644 modules/smmsBidAdapter.js
delete mode 100644 modules/stvBidAdapter.js
delete mode 100644 modules/taphypeBidAdapter.js
delete mode 100644 modules/topRTBBidAdapter.js
delete mode 100644 modules/trendqubeBidAdapter.js
delete mode 100644 modules/turktelekomBidAdapter.js
delete mode 100644 modules/unicornBidAdapter.js
delete mode 100644 modules/vdoaiBidAdapter.js
delete mode 100644 modules/viBidAdapter.js
delete mode 100644 modules/vidazooBidAdapter.js
delete mode 100644 modules/videoNowBidAdapter.js
delete mode 100644 modules/videofyBidAdapter.js
delete mode 100644 modules/videoreachBidAdapter.js
delete mode 100644 modules/vmgBidAdapter.js
delete mode 100644 modules/welectBidAdapter.js
delete mode 100644 modules/windtalkerBidAdapter.js
delete mode 100644 modules/wipesBidAdapter.js
delete mode 100644 modules/zedoBidAdapter.js
delete mode 100644 test/spec/modules/7xbidBidAdapter_spec.js
delete mode 100644 test/spec/modules/aardvarkBidAdapter_spec.js
delete mode 100644 test/spec/modules/adbutlerBidAdapter_spec.js
delete mode 100644 test/spec/modules/adfinityBidAdapter_spec.js
delete mode 100644 test/spec/modules/adgenerationBidAdapter_spec.js
delete mode 100644 test/spec/modules/adglareBidAdapter_spec.js
delete mode 100644 test/spec/modules/adhashBidAdapter_spec.js
delete mode 100644 test/spec/modules/adheseBidAdapter_spec.js
delete mode 100644 test/spec/modules/adliveBidAdapter_spec.js
delete mode 100644 test/spec/modules/admanBidAdapter_spec.js
delete mode 100644 test/spec/modules/admediaBidAdapter_spec.js
delete mode 100644 test/spec/modules/adpartnerBidAdapter_spec.js
delete mode 100644 test/spec/modules/adprimeBidAdapter_spec.js
delete mode 100644 test/spec/modules/advenueBidAdapter_spec.js
delete mode 100755 test/spec/modules/advertlyBidAdapter_spec.js
delete mode 100644 test/spec/modules/ajaBidAdapter_spec.js
delete mode 100644 test/spec/modules/atomxBidAdapter_spec.js
delete mode 100644 test/spec/modules/avocetBidAdapter_spec.js
delete mode 100644 test/spec/modules/bidlabBidAdapter_spec.js
delete mode 100644 test/spec/modules/bidphysicsBidAdapter_spec.js
delete mode 100644 test/spec/modules/bizzclickBidAdapter_spec.js
delete mode 100644 test/spec/modules/boldwinBidAdapter_spec.js
delete mode 100644 test/spec/modules/byplayBidAdapter_spec.js
delete mode 100644 test/spec/modules/cedatoBidAdapter_spec.js
delete mode 100644 test/spec/modules/clickforceBidAdapter_spec.js
delete mode 100644 test/spec/modules/clicktripzBidAdapter_spec.js
delete mode 100644 test/spec/modules/collectcentBidAdapter_spec.js
delete mode 100644 test/spec/modules/colombiaBidAdapter_spec.js
delete mode 100644 test/spec/modules/colossussspBidAdapter_spec.js
delete mode 100644 test/spec/modules/convergeBidAdapter_spec.js
delete mode 100644 test/spec/modules/cpmstarBidAdapter_spec.js
delete mode 100644 test/spec/modules/decenteradsBidAdapter_spec.js
delete mode 100644 test/spec/modules/djaxBidAdapter_spec.js
delete mode 100644 test/spec/modules/e_volutionBidAdapter_spec.js
delete mode 100644 test/spec/modules/edgequeryxBidAdapter_spec.js
delete mode 100644 test/spec/modules/emoteevBidAdapter_spec.js
delete mode 100644 test/spec/modules/engageyaBidAdapter_spec.js
delete mode 100644 test/spec/modules/envivoBidAdapter_spec.js
delete mode 100644 test/spec/modules/fidelityBidAdapter_spec.js
delete mode 100644 test/spec/modules/fluctBidAdapter_spec.js
delete mode 100644 test/spec/modules/gammaBidAdapter_spec.js
delete mode 100644 test/spec/modules/gnetBidAdapter_spec.js
delete mode 100644 test/spec/modules/haxmediaBidAdapter_spec.js
delete mode 100644 test/spec/modules/hpmdnetworkBidAdapter_spec.js
delete mode 100644 test/spec/modules/impactifyBidAdapter_spec.js
delete mode 100644 test/spec/modules/innityBidAdapter_spec.js
delete mode 100644 test/spec/modules/ipromBidAdapter_spec.js
delete mode 100644 test/spec/modules/ironsourceBidAdapter_spec.js
delete mode 100644 test/spec/modules/jcmBidAdapter_spec.js
delete mode 100644 test/spec/modules/krushmediaBidAdapter_spec.js
delete mode 100644 test/spec/modules/lifestreetBidAdapter_spec.js
delete mode 100644 test/spec/modules/lkqdBidAdapter_spec.js
delete mode 100644 test/spec/modules/loganBidAdapter_spec.js
delete mode 100644 test/spec/modules/logicadBidAdapter_spec.js
delete mode 100644 test/spec/modules/loopmeBidAdapter_spec.js
delete mode 100644 test/spec/modules/luponmediaBidAdapter_spec.js
delete mode 100644 test/spec/modules/madvertiseBidAdapter_spec.js
delete mode 100644 test/spec/modules/mantisBidAdapter_spec.js
delete mode 100644 test/spec/modules/meazyBidAdapter_spec.js
delete mode 100644 test/spec/modules/mediagoBidAdapter_spec.js
delete mode 100644 test/spec/modules/microadBidAdapter_spec.js
delete mode 100644 test/spec/modules/missenaBidAdapter_spec.js
delete mode 100644 test/spec/modules/mobfoxpbBidAdapter_spec.js
delete mode 100644 test/spec/modules/mobsmartBidAdapter_spec.js
delete mode 100644 test/spec/modules/nanointeractiveBidAdapter_spec.js
delete mode 100644 test/spec/modules/nasmediaAdmixerBidAdapter_spec.js
delete mode 100644 test/spec/modules/nextMillenniumBidAdapter_spec.js
delete mode 100644 test/spec/modules/open8BidAdapter_spec.js
delete mode 100644 test/spec/modules/otmBidAdapter_spec.js
delete mode 100644 test/spec/modules/outconBidAdapter_spec.js
delete mode 100644 test/spec/modules/papyrusBidAdapter_spec.js
delete mode 100644 test/spec/modules/performaxBidAdapter_spec.js
delete mode 100644 test/spec/modules/piximediaBidAdapter_spec.js
delete mode 100644 test/spec/modules/projectLimeLightBidAdapter_spec.js
delete mode 100644 test/spec/modules/proxistoreBidAdapter_spec.js
delete mode 100644 test/spec/modules/pubxBidAdapter_spec.js
delete mode 100644 test/spec/modules/reklamstoreBidAdapter_spec.js
delete mode 100644 test/spec/modules/reloadBidAdapter_spec.js
delete mode 100644 test/spec/modules/resultsmediaBidAdapter_spec.js
delete mode 100644 test/spec/modules/riseBidAdapter_spec.js
delete mode 100644 test/spec/modules/rtbsapeBidAdapter_spec.js
delete mode 100644 test/spec/modules/rtbsolutionsBidAdapter_spec.js
delete mode 100755 test/spec/modules/seedingAllianceAdapter_spec.js
delete mode 100644 test/spec/modules/segmentoBidAdapter_spec.js
delete mode 100644 test/spec/modules/shinezBidAdapter_spec.js
delete mode 100644 test/spec/modules/slimcutBidAdapter_spec.js
delete mode 100644 test/spec/modules/smarticoBidAdapter_spec.js
delete mode 100644 test/spec/modules/smartrtbBidAdapter_spec.js
delete mode 100644 test/spec/modules/smmsBidAdapter_spec.js
delete mode 100644 test/spec/modules/stvBidAdapter_spec.js
delete mode 100644 test/spec/modules/taphypeBidAdapter_spec.js
delete mode 100644 test/spec/modules/topRTBBidAdapter_spec.js
delete mode 100644 test/spec/modules/trendqubeBidAdapter_spec.js
delete mode 100644 test/spec/modules/turktelekomBidAdapter_spec.js
delete mode 100644 test/spec/modules/unicornBidAdapter_spec.js
delete mode 100644 test/spec/modules/vdoaiBidAdapter_spec.js
delete mode 100644 test/spec/modules/viBidAdapter_spec.js
delete mode 100644 test/spec/modules/vidazooBidAdapter_spec.js
delete mode 100644 test/spec/modules/videoNowBidAdapter_spec.js
delete mode 100644 test/spec/modules/videofyBidAdapter_spec.js
delete mode 100644 test/spec/modules/videoreachBidAdapter_spec.js
delete mode 100644 test/spec/modules/vmgBidAdapter_spec.js
delete mode 100644 test/spec/modules/welectBidAdapter_spec.js
delete mode 100644 test/spec/modules/windtalkerBidAdapter_spec.js
delete mode 100644 test/spec/modules/wipesBidAdapter_spec.js
delete mode 100644 test/spec/modules/zedoBidAdapter_spec.js
diff --git a/modules/7xbidBidAdapter.js b/modules/7xbidBidAdapter.js
deleted file mode 100644
index b925912a399..00000000000
--- a/modules/7xbidBidAdapter.js
+++ /dev/null
@@ -1,159 +0,0 @@
-import * as utils from '../src/utils.js';
-import { registerBidder } from '../src/adapters/bidderFactory.js';
-
-const BIDDER_CODE = '7xbid';
-const BIDDER_ALIAS = '7xb';
-const ENDPOINT_BANNER = '//bidder.7xbid.com/api/v1/prebid/banner';
-const ENDPOINT_NATIVE = '//bidder.7xbid.com/api/v1/prebid/native';
-const COOKIE_SYNC_URL = '//bidder.7xbid.com/api/v1/cookie/gen';
-const SUPPORTED_MEDIA_TYPES = ['banner', 'native'];
-const SUPPORTED_CURRENCIES = ['USD', 'JPY'];
-const DEFAULT_CURRENCY = 'JPY';
-const NET_REVENUE = true;
-
-/**
- * updated to support prebid 3.0 - remove utils.getTopWindowUrl()
- */
-
-const _encodeURIComponent = function(a) {
- let b = window.encodeURIComponent(a);
- b = b.replace(/'/g, '%27');
- return b;
-}
-
-export const _getUrlVars = function(url) {
- var hash;
- var myJson = {};
- var hashes = url.slice(url.indexOf('?') + 1).split('&');
- for (var i = 0; i < hashes.length; i++) {
- hash = hashes[i].split('=');
- myJson[hash[0]] = hash[1];
- }
- return myJson;
-}
-
-export const spec = {
- code: BIDDER_CODE,
- aliases: [BIDDER_ALIAS], // short code
- supportedMediaTypes: SUPPORTED_MEDIA_TYPES,
- isBidRequestValid: function(bid) {
- if (!(bid.params.placementId)) {
- return false;
- }
-
- if (bid.params.hasOwnProperty('currency') &&
- SUPPORTED_CURRENCIES.indexOf(bid.params.currency) === -1) {
- utils.logInfo('Invalid currency type, we support only JPY and USD!')
- return false;
- }
-
- return true;
- },
- /**
- * Make a server request from the list of BidRequests.
- *
- * @param {validBidRequests[]} - an array of bids
- * @return ServerRequest Info describing the request to the server.
- */
- buildRequests: function(validBidRequests, bidderRequest) {
- let serverRequests = [];
- var refererInfo;
- if (bidderRequest && bidderRequest.refererInfo) {
- refererInfo = bidderRequest.refererInfo;
- }
- validBidRequests.forEach((bid, i) => {
- let endpoint = ENDPOINT_BANNER
- let data = {
- 'placementid': bid.params.placementId,
- 'cur': bid.params.hasOwnProperty('currency') ? bid.params.currency : DEFAULT_CURRENCY,
- 'ua': navigator.userAgent,
- 'loc': utils.deepAccess(bidderRequest, 'refererInfo.referer'),
- 'topframe': (window.parent === window.self) ? 1 : 0,
- 'sw': screen && screen.width,
- 'sh': screen && screen.height,
- 'cb': Math.floor(Math.random() * 99999999999),
- 'tpaf': 1,
- 'cks': 1,
- 'requestid': bid.bidId
- };
-
- if (bid.hasOwnProperty('nativeParams')) {
- endpoint = ENDPOINT_NATIVE
- data.tkf = 1 // return url tracker
- data.ad_track = '1'
- data.apiv = '1.1.0'
- }
-
- if (refererInfo && refererInfo.referer) {
- data.referer = refererInfo.referer;
- } else {
- data.referer = '';
- }
-
- serverRequests.push({
- method: 'GET',
- url: endpoint,
- data: utils.parseQueryStringParameters(data)
- })
- })
-
- return serverRequests;
- },
- interpretResponse: function(serverResponse, request) {
- const data = _getUrlVars(request.data)
- const successBid = serverResponse.body || {};
- let bidResponses = [];
- if (successBid.hasOwnProperty(data.placementid)) {
- let bid = successBid[data.placementid]
- let bidResponse = {
- requestId: bid.requestid,
- cpm: bid.price,
- creativeId: bid.creativeId,
- currency: bid.cur,
- netRevenue: NET_REVENUE,
- ttl: 700
- };
-
- if (bid.hasOwnProperty('title')) { // it is native ad response
- bidResponse.mediaType = 'native'
- bidResponse.native = {
- title: bid.title,
- body: bid.description,
- cta: bid.cta,
- sponsoredBy: bid.advertiser,
- clickUrl: _encodeURIComponent(bid.landingURL),
- impressionTrackers: bid.trackings,
- }
- if (bid.screenshots) {
- bidResponse.native.image = {
- url: bid.screenshots.url,
- height: bid.screenshots.height,
- width: bid.screenshots.width,
- }
- }
- if (bid.icon) {
- bidResponse.native.icon = {
- url: bid.icon.url,
- height: bid.icon.height,
- width: bid.icon.width,
- }
- }
- } else {
- bidResponse.ad = bid.adm
- bidResponse.width = bid.width
- bidResponse.height = bid.height
- }
-
- bidResponses.push(bidResponse);
- }
-
- return bidResponses;
- },
- getUserSyncs: function(syncOptions, serverResponses) {
- return [{
- type: 'image',
- url: COOKIE_SYNC_URL
- }];
- }
-}
-registerBidder(spec);
diff --git a/modules/aardvarkBidAdapter.js b/modules/aardvarkBidAdapter.js
deleted file mode 100644
index 0b864286868..00000000000
--- a/modules/aardvarkBidAdapter.js
+++ /dev/null
@@ -1,262 +0,0 @@
-import * as utils from '../src/utils.js';
-import {registerBidder} from '../src/adapters/bidderFactory.js';
-
-const BIDDER_CODE = 'aardvark';
-const DEFAULT_ENDPOINT = 'bidder.rtk.io';
-const SYNC_ENDPOINT = 'sync.rtk.io';
-const AARDVARK_TTL = 300;
-const AARDVARK_CURRENCY = 'USD';
-
-let hasSynced = false;
-
-export function resetUserSync() {
- hasSynced = false;
-}
-
-export const spec = {
- code: BIDDER_CODE,
- gvlid: 52,
- aliases: ['adsparc', 'safereach'],
-
- isBidRequestValid: function(bid) {
- return ((typeof bid.params.ai === 'string') && !!bid.params.ai.length &&
- (typeof bid.params.sc === 'string') && !!bid.params.sc.length);
- },
-
- buildRequests: function(validBidRequests, bidderRequest) {
- var auctionCodes = [];
- var requests = [];
- var requestsMap = {};
- var referer = bidderRequest.refererInfo.referer;
- var pageCategories = [];
- var tdId = '';
- var width = window.innerWidth;
- var height = window.innerHeight;
- var schain = '';
-
- // This reference to window.top can cause issues when loaded in an iframe if not protected with a try/catch.
- try {
- var topWin = utils.getWindowTop();
- if (topWin.rtkcategories && Array.isArray(topWin.rtkcategories)) {
- pageCategories = topWin.rtkcategories;
- }
- width = topWin.innerWidth;
- height = topWin.innerHeight;
- } catch (e) {}
-
- if (utils.isStr(utils.deepAccess(validBidRequests, '0.userId.tdid'))) {
- tdId = validBidRequests[0].userId.tdid;
- }
-
- schain = spec.serializeSupplyChain(utils.deepAccess(validBidRequests, '0.schain'));
-
- utils._each(validBidRequests, function(b) {
- var rMap = requestsMap[b.params.ai];
- if (!rMap) {
- rMap = {
- shortCodes: [],
- payload: {
- version: 1,
- jsonp: false,
- rtkreferer: referer,
- w: width,
- h: height
- },
- endpoint: DEFAULT_ENDPOINT
- };
-
- if (tdId) {
- rMap.payload.tdid = tdId;
- }
- if (schain) {
- rMap.payload.schain = schain;
- }
-
- if (pageCategories && pageCategories.length) {
- rMap.payload.categories = pageCategories.slice(0);
- }
-
- if (b.params.categories && b.params.categories.length) {
- rMap.payload.categories = rMap.payload.categories || []
- utils._each(b.params.categories, function(cat) {
- rMap.payload.categories.push(cat);
- });
- }
-
- if (bidderRequest.gdprConsent) {
- rMap.payload.gdpr = false;
- if (typeof bidderRequest.gdprConsent.gdprApplies === 'boolean') {
- rMap.payload.gdpr = bidderRequest.gdprConsent.gdprApplies;
- }
- if (rMap.payload.gdpr) {
- rMap.payload.consent = bidderRequest.gdprConsent.consentString;
- }
- }
-
- requestsMap[b.params.ai] = rMap;
- auctionCodes.push(b.params.ai);
- }
-
- if (bidderRequest.uspConsent) {
- rMap.payload.us_privacy = bidderRequest.uspConsent
- }
-
- rMap.shortCodes.push(b.params.sc);
- rMap.payload[b.params.sc] = b.bidId;
-
- if ((typeof b.params.host === 'string') && b.params.host.length &&
- (b.params.host !== rMap.endpoint)) {
- rMap.endpoint = b.params.host;
- }
- });
-
- utils._each(auctionCodes, function(auctionId) {
- var req = requestsMap[auctionId];
- requests.push({
- method: 'GET',
- url: `https://${req.endpoint}/${auctionId}/${req.shortCodes.join('_')}/aardvark`,
- data: req.payload,
- bidderRequest
- });
- });
-
- return requests;
- },
-
- interpretResponse: function(serverResponse, bidRequest) {
- var bidResponses = [];
-
- if (!Array.isArray(serverResponse.body)) {
- serverResponse.body = [serverResponse.body];
- }
-
- utils._each(serverResponse.body, function(rawBid) {
- var cpm = +(rawBid.cpm || 0);
-
- if (!cpm) {
- return;
- }
-
- var bidResponse = {
- requestId: rawBid.cid,
- cpm: cpm,
- width: rawBid.width || 0,
- height: rawBid.height || 0,
- currency: rawBid.currency ? rawBid.currency : AARDVARK_CURRENCY,
- netRevenue: rawBid.netRevenue ? rawBid.netRevenue : true,
- ttl: rawBid.ttl ? rawBid.ttl : AARDVARK_TTL,
- creativeId: rawBid.creativeId || 0
- };
-
- if (rawBid.hasOwnProperty('dealId')) {
- bidResponse.dealId = rawBid.dealId
- }
-
- if (rawBid.hasOwnProperty('ex')) {
- bidResponse.ex = rawBid.ex;
- }
-
- switch (rawBid.media) {
- case 'banner':
- bidResponse.ad = rawBid.adm + utils.createTrackPixelHtml(decodeURIComponent(rawBid.nurl));
- break;
-
- default:
- return utils.logError('bad Aardvark response (media)', rawBid);
- }
-
- bidResponses.push(bidResponse);
- });
-
- return bidResponses;
- },
-
- getUserSyncs: function(syncOptions, serverResponses, gdprConsent, uspConsent) {
- const syncs = [];
- const params = [];
- var gdprApplies = false;
- if (gdprConsent && (typeof gdprConsent.gdprApplies === 'boolean')) {
- gdprApplies = gdprConsent.gdprApplies;
- }
-
- if (!syncOptions.iframeEnabled) {
- utils.logWarn('Aardvark: Please enable iframe based user sync.');
- return syncs;
- }
-
- if (hasSynced) {
- return syncs;
- }
-
- hasSynced = true;
- if (gdprApplies) {
- params.push(['g', '1']);
- params.push(['c', gdprConsent.consentString]);
- }
-
- if (uspConsent) {
- params.push(['us_privacy', uspConsent]);
- }
-
- var queryStr = '';
- if (params.length) {
- queryStr = '?' + params.map(p => p[0] + '=' + encodeURIComponent(p[1])).join('&')
- }
-
- syncs.push({
- type: 'iframe',
- url: `https://${SYNC_ENDPOINT}/cs${queryStr}`
- });
- return syncs;
- },
-
- /**
- * Serializes schain params according to OpenRTB requirements
- * @param {Object} supplyChain
- * @returns {String}
- */
- serializeSupplyChain: function (supplyChain) {
- if (!hasValidSupplyChainParams(supplyChain)) {
- return '';
- }
-
- return `${supplyChain.ver},${supplyChain.complete}!${spec.serializeSupplyChainNodes(supplyChain.nodes)}`;
- },
-
- /**
- * Properly sorts schain object params
- * @param {Array} nodes
- * @returns {String}
- */
- serializeSupplyChainNodes: function (nodes) {
- const nodePropOrder = ['asi', 'sid', 'hp', 'rid', 'name', 'domain'];
- return nodes.map(node => {
- return nodePropOrder.map(prop => encodeURIComponent(node[prop] || '')).join(',');
- }).join('!');
- },
-};
-
-/**
- * Make sure the required params are present
- * @param {Object} schain
- * @param {Bool}
- */
-export function hasValidSupplyChainParams(schain) {
- if (!schain || !schain.nodes) {
- return false;
- }
- const requiredFields = ['asi', 'sid', 'hp'];
-
- let isValid = schain.nodes.reduce((status, node) => {
- if (!status) {
- return status;
- }
- return requiredFields.every(field => node[field]);
- }, true);
- if (!isValid) {
- utils.logError('Aardvark: required schain params missing');
- }
- return isValid;
-}
-
-registerBidder(spec);
diff --git a/modules/adbutlerBidAdapter.js b/modules/adbutlerBidAdapter.js
deleted file mode 100644
index 10edd8ae3e3..00000000000
--- a/modules/adbutlerBidAdapter.js
+++ /dev/null
@@ -1,140 +0,0 @@
-'use strict';
-
-import * as utils from '../src/utils.js';
-import {config} from '../src/config.js';
-import {registerBidder} from '../src/adapters/bidderFactory.js';
-
-const BIDDER_CODE = 'adbutler';
-
-export const spec = {
- code: BIDDER_CODE,
- pageID: Math.floor(Math.random() * 10e6),
- aliases: ['divreach', 'doceree'],
-
- isBidRequestValid: function (bid) {
- return !!(bid.params.accountID && bid.params.zoneID);
- },
-
- buildRequests: function (validBidRequests) {
- let i;
- let zoneID;
- let bidRequest;
- let accountID;
- let keyword;
- let domain;
- let requestURI;
- let serverRequests = [];
- let zoneCounters = {};
- let extraParams = {};
-
- for (i = 0; i < validBidRequests.length; i++) {
- bidRequest = validBidRequests[i];
- zoneID = utils.getBidIdParameter('zoneID', bidRequest.params);
- accountID = utils.getBidIdParameter('accountID', bidRequest.params);
- keyword = utils.getBidIdParameter('keyword', bidRequest.params);
- domain = utils.getBidIdParameter('domain', bidRequest.params);
- extraParams = utils.getBidIdParameter('extra', bidRequest.params);
-
- if (!(zoneID in zoneCounters)) {
- zoneCounters[zoneID] = 0;
- }
-
- if (typeof domain === 'undefined' || domain.length === 0) {
- domain = 'servedbyadbutler.com';
- }
-
- requestURI = 'https://' + domain + '/adserve/;type=hbr;';
- requestURI += 'ID=' + encodeURIComponent(accountID) + ';';
- requestURI += 'setID=' + encodeURIComponent(zoneID) + ';';
- requestURI += 'pid=' + encodeURIComponent(spec.pageID) + ';';
- requestURI += 'place=' + encodeURIComponent(zoneCounters[zoneID]) + ';';
-
- // append the keyword for targeting if one was passed in
- if (keyword !== '') {
- requestURI += 'kw=' + encodeURIComponent(keyword) + ';';
- }
-
- for (let key in extraParams) {
- if (extraParams.hasOwnProperty(key)) {
- let val = encodeURIComponent(extraParams[key]);
- requestURI += `${key}=${val};`;
- }
- }
-
- zoneCounters[zoneID]++;
- serverRequests.push({
- method: 'GET',
- url: requestURI,
- data: {},
- bidRequest: bidRequest
- });
- }
- return serverRequests;
- },
-
- interpretResponse: function (serverResponse, bidRequest) {
- const bidObj = bidRequest.bidRequest;
- let bidResponses = [];
- let bidResponse = {};
- let isCorrectSize = false;
- let isCorrectCPM = true;
- let CPM;
- let minCPM;
- let maxCPM;
- let width;
- let height;
-
- serverResponse = serverResponse.body;
- if (serverResponse && serverResponse.status === 'SUCCESS' && bidObj) {
- CPM = serverResponse.cpm;
- minCPM = utils.getBidIdParameter('minCPM', bidObj.params);
- maxCPM = utils.getBidIdParameter('maxCPM', bidObj.params);
- width = parseInt(serverResponse.width);
- height = parseInt(serverResponse.height);
-
- // Ensure response CPM is within the given bounds
- if (minCPM !== '' && CPM < parseFloat(minCPM)) {
- isCorrectCPM = false;
- }
- if (maxCPM !== '' && CPM > parseFloat(maxCPM)) {
- isCorrectCPM = false;
- }
-
- // Ensure that response ad matches one of the placement sizes.
- utils._each(utils.deepAccess(bidObj, 'mediaTypes.banner.sizes', []), function (size) {
- if (width === size[0] && height === size[1]) {
- isCorrectSize = true;
- }
- });
- if (isCorrectCPM && isCorrectSize) {
- bidResponse.requestId = bidObj.bidId;
- bidResponse.bidderCode = bidObj.bidder;
- bidResponse.creativeId = serverResponse.placement_id;
- bidResponse.cpm = CPM;
- bidResponse.width = width;
- bidResponse.height = height;
- bidResponse.ad = serverResponse.ad_code;
- bidResponse.ad += spec.addTrackingPixels(serverResponse.tracking_pixels);
- bidResponse.currency = 'USD';
- bidResponse.netRevenue = true;
- bidResponse.ttl = config.getConfig('_bidderTimeout');
- bidResponse.referrer = utils.deepAccess(bidObj, 'refererInfo.referer');
- bidResponses.push(bidResponse);
- }
- }
- return bidResponses;
- },
-
- addTrackingPixels: function (trackingPixels) {
- let trackingPixelMarkup = '';
- utils._each(trackingPixels, function (pixelURL) {
- let trackingPixel = '';
-
- trackingPixelMarkup += trackingPixel;
- });
- return trackingPixelMarkup;
- }
-};
-registerBidder(spec);
diff --git a/modules/adfinityBidAdapter.js b/modules/adfinityBidAdapter.js
deleted file mode 100644
index ebf1198fba2..00000000000
--- a/modules/adfinityBidAdapter.js
+++ /dev/null
@@ -1,125 +0,0 @@
-import { registerBidder } from '../src/adapters/bidderFactory.js';
-import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
-import * as utils from '../src/utils.js';
-
-const BIDDER_CODE = 'adfinity';
-const AD_URL = 'https://stat.adfinity.pro/?c=o&m=multi';
-const SYNC_URL = 'https://stat.adfinity.pro/?c=o&m=cookie'
-
-function isBidResponseValid(bid) {
- if (!bid.requestId || !bid.cpm || !bid.creativeId || !bid.ttl || !bid.currency) {
- return false;
- }
-
- switch (bid.mediaType) {
- case BANNER:
- return Boolean(bid.width && bid.height && bid.ad);
- case VIDEO:
- return Boolean(bid.vastUrl);
- case NATIVE:
- const n = bid.native
- return Boolean(n) && Boolean(n.title) && Boolean(n.body) && Boolean(n.image) && Boolean(n.impression_trackers);
- default:
- return false;
- }
-}
-
-export const spec = {
- code: BIDDER_CODE,
- supportedMediaTypes: [BANNER, VIDEO, NATIVE],
- /**
- * Determines whether or not the given bid request is valid.
- *
- * @param {object} bid The bid to validate.
- * @return boolean True if this is a valid bid, and false otherwise.
- */
- isBidRequestValid: (bid) => {
- return Boolean(bid.bidId && bid.params && !isNaN(bid.params.placement_id));
- },
-
- /**
- * Make a server request from the list of BidRequests.
- *
- * @param {BidRequest[]} validBidRequests A non-empty list of valid bid requests that should be sent to the Server.
- * @return ServerRequest Info describing the request to the server.
- */
- buildRequests: (validBidRequests, bidderRequest) => {
- let winTop = window;
- let location;
- try {
- location = new URL(bidderRequest.refererInfo.referer)
- winTop = window.top;
- } catch (e) {
- location = winTop.location;
- utils.logMessage(e);
- };
- let placements = [];
- let request = {
- 'deviceWidth': winTop.screen.width,
- 'deviceHeight': winTop.screen.height,
- 'language': (navigator && navigator.language) ? navigator.language : '',
- 'secure': 1,
- 'host': location.host,
- 'page': location.pathname,
- 'placements': placements
- };
-
- if (bidderRequest) {
- if (bidderRequest.gdprConsent) {
- request.gdpr_consent = bidderRequest.gdprConsent.consentString || 'ALL'
- request.gdpr_require = bidderRequest.gdprConsent.gdprApplies ? 1 : 0
- }
- }
-
- for (let i = 0; i < validBidRequests.length; i++) {
- let bid = validBidRequests[i];
- let traff = bid.params.traffic || BANNER
- let placement = {
- placementId: bid.params.placement_id,
- bidId: bid.bidId,
- sizes: bid.mediaTypes[traff].sizes,
- traffic: traff
- };
- if (bid.schain) {
- placement.schain = bid.schain;
- }
- placements.push(placement);
- }
- return {
- method: 'POST',
- url: AD_URL,
- data: request
- };
- },
-
- /**
- * Unpack the response from the server into a list of bids.
- *
- * @param {*} serverResponse A successful response from the server.
- * @return {Bid[]} An array of bids which were nested inside the server.
- */
- interpretResponse: (serverResponse) => {
- let response = [];
- try {
- serverResponse = serverResponse.body;
- for (let i = 0; i < serverResponse.length; i++) {
- let resItem = serverResponse[i];
- if (isBidResponseValid(resItem)) {
- response.push(resItem);
- }
- }
- } catch (e) {
- utils.logMessage(e);
- };
- return response;
- },
-
- getUserSyncs: () => {
- return [{
- type: 'image',
- url: SYNC_URL
- }];
- }
-};
-
-registerBidder(spec);
diff --git a/modules/adgenerationBidAdapter.js b/modules/adgenerationBidAdapter.js
deleted file mode 100644
index 7f92ab483f6..00000000000
--- a/modules/adgenerationBidAdapter.js
+++ /dev/null
@@ -1,236 +0,0 @@
-import * as utils from '../src/utils.js';
-import {registerBidder} from '../src/adapters/bidderFactory.js';
-import {BANNER, NATIVE} from '../src/mediaTypes.js';
-import {config} from '../src/config.js';
-const ADG_BIDDER_CODE = 'adgeneration';
-
-export const spec = {
- code: ADG_BIDDER_CODE,
- aliases: ['adg'], // short code
- supportedMediaTypes: [BANNER, NATIVE],
- /**
- * Determines whether or not the given bid request is valid.
- *
- * @param {BidRequest} bid The bid params to validate.
- * @return boolean True if this is a valid bid, and false otherwise.
- */
- isBidRequestValid: function (bid) {
- return !!(bid.params.id);
- },
- /**
- * Make a server request from the list of BidRequests.
- *
- * @param {validBidRequests[]} - an array of bids
- * @return ServerRequest Info describing the request to the server.
- */
- buildRequests: function (validBidRequests, bidderRequest) {
- const ADGENE_PREBID_VERSION = '1.0.1';
- let serverRequests = [];
- for (let i = 0, len = validBidRequests.length; i < len; i++) {
- const validReq = validBidRequests[i];
- const DEBUG_URL = 'https://api-test.scaleout.jp/adsv/v1';
- const URL = 'https://d.socdm.com/adsv/v1';
- const url = validReq.params.debug ? DEBUG_URL : URL;
- let data = ``;
- data = utils.tryAppendQueryString(data, 'posall', 'SSPLOC');
- const id = utils.getBidIdParameter('id', validReq.params);
- data = utils.tryAppendQueryString(data, 'id', id);
- data = utils.tryAppendQueryString(data, 'sdktype', '0');
- data = utils.tryAppendQueryString(data, 'hb', 'true');
- data = utils.tryAppendQueryString(data, 't', 'json3');
- data = utils.tryAppendQueryString(data, 'transactionid', validReq.transactionId);
- data = utils.tryAppendQueryString(data, 'sizes', getSizes(validReq));
- data = utils.tryAppendQueryString(data, 'currency', getCurrencyType());
- data = utils.tryAppendQueryString(data, 'pbver', '$prebid.version$');
- data = utils.tryAppendQueryString(data, 'sdkname', 'prebidjs');
- data = utils.tryAppendQueryString(data, 'adapterver', ADGENE_PREBID_VERSION);
- // native以外にvideo等の対応が入った場合は要修正
- if (!validReq.mediaTypes || !validReq.mediaTypes.native) {
- data = utils.tryAppendQueryString(data, 'imark', '1');
- }
- data = utils.tryAppendQueryString(data, 'tp', bidderRequest.refererInfo.referer);
- // remove the trailing "&"
- if (data.lastIndexOf('&') === data.length - 1) {
- data = data.substring(0, data.length - 1);
- }
- serverRequests.push({
- method: 'GET',
- url: url,
- data: data,
- bidRequest: validBidRequests[i]
- });
- }
- return serverRequests;
- },
- /**
- * Unpack the response from the server into a list of bids.
- *
- * @param {ServerResponse} serverResponse A successful response from the server.
- * @param {BidRequest} bidRequests
- * @return {Bid[]} An array of bids which were nested inside the server.
- */
- interpretResponse: function (serverResponse, bidRequests) {
- const body = serverResponse.body;
- if (!body.results || body.results.length < 1) {
- return [];
- }
- const bidRequest = bidRequests.bidRequest;
- const bidResponse = {
- requestId: bidRequest.bidId,
- cpm: body.cpm || 0,
- width: body.w ? body.w : 1,
- height: body.h ? body.h : 1,
- creativeId: body.creativeid || '',
- dealId: body.dealid || '',
- currency: getCurrencyType(),
- netRevenue: true,
- ttl: body.ttl || 10,
- };
- if (isNative(body)) {
- bidResponse.native = createNativeAd(body);
- bidResponse.mediaType = NATIVE;
- } else {
- // banner
- bidResponse.ad = createAd(body, bidRequest);
- }
- return [bidResponse];
- },
-
- /**
- * Register the user sync pixels which should be dropped after the auction.
- *
- * @param {SyncOptions} syncOptions Which user syncs are allowed?
- * @param {ServerResponse[]} serverResponses List of server's responses.
- * @return {UserSync[]} The user syncs which should be dropped.
- */
- getUserSyncs: function (syncOptions, serverResponses) {
- const syncs = [];
- return syncs;
- }
-};
-
-function createAd(body, bidRequest) {
- let ad = body.ad;
- if (body.vastxml && body.vastxml.length > 0) {
- ad = `${createAPVTag()}${insertVASTMethod(bidRequest.bidId, body.vastxml)}`;
- }
- ad = appendChildToBody(ad, body.beacon);
- if (removeWrapper(ad)) return removeWrapper(ad);
- return ad;
-}
-
-function isNative(body) {
- if (!body) return false;
- return body.native_ad && body.native_ad.assets.length > 0;
-}
-
-function createNativeAd(body) {
- let native = {};
- if (body.native_ad && body.native_ad.assets.length > 0) {
- const assets = body.native_ad.assets;
- for (let i = 0, len = assets.length; i < len; i++) {
- switch (assets[i].id) {
- case 1:
- native.title = assets[i].title.text;
- break;
- case 2:
- native.image = {
- url: assets[i].img.url,
- height: assets[i].img.h,
- width: assets[i].img.w,
- };
- break;
- case 3:
- native.icon = {
- url: assets[i].img.url,
- height: assets[i].img.h,
- width: assets[i].img.w,
- };
- break;
- case 4:
- native.sponsoredBy = assets[i].data.value;
- break;
- case 5:
- native.body = assets[i].data.value;
- break;
- case 6:
- native.cta = assets[i].data.value;
- break;
- case 502:
- native.privacyLink = encodeURIComponent(assets[i].data.value);
- break;
- }
- }
- native.clickUrl = body.native_ad.link.url;
- native.clickTrackers = body.native_ad.link.clicktrackers || [];
- native.impressionTrackers = body.native_ad.imptrackers || [];
- if (body.beaconurl && body.beaconurl != '') {
- native.impressionTrackers.push(body.beaconurl)
- }
- }
- return native;
-}
-
-function appendChildToBody(ad, data) {
- return ad.replace(/<\/\s?body>/, `${data}
');
- const lastBodyIndex = ad.lastIndexOf('', '').replace('`);
-}
-
-function createAPVTag() {
- const APVURL = 'https://cdn.apvdr.com/js/VideoAd.min.js';
- let apvScript = document.createElement('script');
- apvScript.type = 'text/javascript';
- apvScript.id = 'apv';
- apvScript.src = APVURL;
- return apvScript.outerHTML;
-}
-
-function insertVASTMethod(targetId, vastXml) {
- let apvVideoAdParam = {
- s: targetId
- };
- let script = document.createElement(`script`);
- script.type = 'text/javascript';
- script.innerHTML = `(function(){ new APV.VideoAd(${JSON.stringify(apvVideoAdParam)}).load('${vastXml.replace(/\r?\n/g, '')}'); })();`;
- return script.outerHTML;
-}
-
-/**
- *
- * @param ad
- */
-function removeWrapper(ad) {
- const bodyIndex = ad.indexOf('
');
- if (bodyIndex === -1 || lastBodyIndex === -1) return false;
- return ad.substr(bodyIndex, lastBodyIndex).replace('
', '');
-}
-
-/**
- * request
- * @param validReq request
- * @returns {?string} 300x250,320x50...
- */
-function getSizes(validReq) {
- const sizes = validReq.sizes;
- if (!sizes || sizes.length < 1) return null;
- let sizesStr = '';
- for (const i in sizes) {
- const size = sizes[i];
- if (size.length !== 2) return null;
- sizesStr += `${size[0]}x${size[1]},`;
- }
- if (sizesStr || sizesStr.lastIndexOf(',') === sizesStr.length - 1) {
- sizesStr = sizesStr.substring(0, sizesStr.length - 1);
- }
- return sizesStr;
-}
-
-/**
- * @return {?string} USD or JPY
- */
-function getCurrencyType() {
- if (config.getConfig('currency.adServerCurrency') && config.getConfig('currency.adServerCurrency').toUpperCase() === 'USD') return 'USD';
- return 'JPY';
-}
-
-registerBidder(spec);
diff --git a/modules/adglareBidAdapter.js b/modules/adglareBidAdapter.js
deleted file mode 100644
index d66a38482ec..00000000000
--- a/modules/adglareBidAdapter.js
+++ /dev/null
@@ -1,90 +0,0 @@
-'use strict';
-
-import {registerBidder} from '../src/adapters/bidderFactory.js';
-
-const BIDDER_CODE = 'adglare';
-
-export const spec = {
- code: BIDDER_CODE,
- isBidRequestValid: function (bid) {
- let p = bid.params;
- if (typeof p.domain === 'string' && !!p.domain.length && p.zID && !isNaN(p.zID) && p.type == 'banner') return true;
- return false;
- },
- buildRequests: function (validBidRequests, bidderRequest) {
- let i;
- let j;
- let bidRequest;
- let zID;
- let domain;
- let keywords;
- let url;
- let type;
- let availscreen = window.innerWidth + 'x' + window.innerHeight;
- let pixelRatio = window.devicePixelRatio || 1;
- let screen = (pixelRatio * window.screen.width) + 'x' + (pixelRatio * window.screen.height);
- let sizes = [];
- let serverRequests = [];
- let timeout = bidderRequest.timeout || 0;
- let referer = bidderRequest.refererInfo.referer || '';
- let reachedtop = bidderRequest.refererInfo.reachedTop || '';
- for (i = 0; i < validBidRequests.length; i++) {
- bidRequest = validBidRequests[i];
- zID = bidRequest.params.zID;
- domain = bidRequest.params.domain;
- keywords = bidRequest.params.keywords || '';
- type = bidRequest.params.type;
-
- // Build ad unit sizes
- if (bidRequest.mediaTypes && bidRequest.mediaTypes[type]) {
- for (j in bidRequest.mediaTypes[type].sizes) {
- sizes.push(bidRequest.mediaTypes[type].sizes[j].join('x'));
- }
- }
-
- // Build URL
- url = 'https://' + domain + '/?' + encodeURIComponent(zID) + '&pbjs&pbjs_version=1';
- url += '&pbjs_type=' + encodeURIComponent(type);
- url += '&pbjs_timeout=' + encodeURIComponent(timeout);
- url += '&pbjs_reachedtop=' + encodeURIComponent(reachedtop);
- url += '&sizes=' + encodeURIComponent(sizes.join(','));
- url += '&screen=' + encodeURIComponent(screen);
- url += '&availscreen=' + encodeURIComponent(availscreen);
- url += '&referer=' + encodeURIComponent(referer);
- if (keywords !== '') {
- url += '&keywords=' + encodeURIComponent(keywords);
- }
-
- // Push server request
- serverRequests.push({
- method: 'GET',
- url: url,
- data: {},
- bidRequest: bidRequest
- });
- }
- return serverRequests;
- },
- interpretResponse: function (serverResponse, request) {
- const bidObj = request.bidRequest;
- let bidResponses = [];
- let bidResponse = {};
- serverResponse = serverResponse.body;
-
- if (serverResponse && serverResponse.status == 'OK' && bidObj) {
- bidResponse.requestId = bidObj.bidId;
- bidResponse.bidderCode = bidObj.bidder;
- bidResponse.cpm = serverResponse.cpm;
- bidResponse.width = serverResponse.width;
- bidResponse.height = serverResponse.height;
- bidResponse.ad = serverResponse.adhtml;
- bidResponse.ttl = serverResponse.ttl;
- bidResponse.creativeId = serverResponse.crID;
- bidResponse.netRevenue = true;
- bidResponse.currency = serverResponse.currency;
- bidResponses.push(bidResponse);
- }
- return bidResponses;
- },
-};
-registerBidder(spec);
diff --git a/modules/adhashBidAdapter.js b/modules/adhashBidAdapter.js
deleted file mode 100644
index b30f9cebbc1..00000000000
--- a/modules/adhashBidAdapter.js
+++ /dev/null
@@ -1,102 +0,0 @@
-import { registerBidder } from '../src/adapters/bidderFactory.js';
-import includes from 'core-js-pure/features/array/includes.js';
-import { BANNER } from '../src/mediaTypes.js';
-
-const VERSION = '1.0';
-
-export const spec = {
- code: 'adhash',
- url: 'https://bidder.adhash.org/rtb?version=' + VERSION + '&prebid=true',
- supportedMediaTypes: [ BANNER ],
-
- isBidRequestValid: (bid) => {
- try {
- const { publisherId, platformURL } = bid.params;
- return (
- includes(Object.keys(bid.mediaTypes), BANNER) &&
- typeof publisherId === 'string' &&
- publisherId.length === 42 &&
- typeof platformURL === 'string' &&
- platformURL.length >= 13
- );
- } catch (error) {
- return false;
- }
- },
-
- buildRequests: (validBidRequests, bidderRequest) => {
- const { gdprConsent } = bidderRequest;
- const { url } = spec;
- const bidRequests = [];
- let referrer = '';
- if (bidderRequest && bidderRequest.refererInfo) {
- referrer = bidderRequest.refererInfo.referer;
- }
- for (var i = 0; i < validBidRequests.length; i++) {
- var index = Math.floor(Math.random() * validBidRequests[i].sizes.length);
- var size = validBidRequests[i].sizes[index].join('x');
- bidRequests.push({
- method: 'POST',
- url: url,
- bidRequest: validBidRequests[i],
- data: {
- timezone: new Date().getTimezoneOffset() / 60,
- location: referrer,
- publisherId: validBidRequests[i].params.publisherId,
- size: {
- screenWidth: window.screen.width,
- screenHeight: window.screen.height
- },
- navigator: {
- platform: window.navigator.platform,
- language: window.navigator.language,
- userAgent: window.navigator.userAgent
- },
- creatives: [{
- size: size,
- position: validBidRequests[i].adUnitCode
- }],
- blockedCreatives: [],
- currentTimestamp: new Date().getTime(),
- recentAds: [],
- GDPR: gdprConsent
- },
- options: {
- withCredentials: false,
- crossOrigin: true
- },
- });
- }
- return bidRequests;
- },
-
- interpretResponse: (serverResponse, request) => {
- const responseBody = serverResponse ? serverResponse.body : {};
-
- if (!responseBody.creatives || responseBody.creatives.length === 0) {
- return [];
- }
-
- const publisherURL = JSON.stringify(request.bidRequest.params.platformURL);
- const oneTimeId = request.bidRequest.adUnitCode + Math.random().toFixed(16).replace('0.', '.');
- const bidderResponse = JSON.stringify({ responseText: JSON.stringify(responseBody) });
- const requestData = JSON.stringify(request.data);
-
- return [{
- requestId: request.bidRequest.bidId,
- cpm: responseBody.creatives[0].costEUR,
- ad:
- `
-
- `,
- width: request.bidRequest.sizes[0][0],
- height: request.bidRequest.sizes[0][1],
- creativeId: request.bidRequest.adUnitCode,
- netRevenue: true,
- currency: 'EUR',
- ttl: 60
- }];
- }
-};
-
-registerBidder(spec);
diff --git a/modules/adheseBidAdapter.js b/modules/adheseBidAdapter.js
deleted file mode 100644
index b9dbae529ba..00000000000
--- a/modules/adheseBidAdapter.js
+++ /dev/null
@@ -1,233 +0,0 @@
-'use strict';
-
-import { registerBidder } from '../src/adapters/bidderFactory.js';
-import { BANNER, VIDEO } from '../src/mediaTypes.js';
-
-const BIDDER_CODE = 'adhese';
-const GVLID = 553;
-const USER_SYNC_BASE_URL = 'https://user-sync.adhese.com/iframe/user_sync.html';
-
-export const spec = {
- code: BIDDER_CODE,
- gvlid: GVLID,
- supportedMediaTypes: [BANNER, VIDEO],
-
- isBidRequestValid: function(bid) {
- return !!(bid.params.account && bid.params.location && (bid.params.format || bid.mediaTypes.banner.sizes));
- },
-
- buildRequests: function(validBidRequests, bidderRequest) {
- if (validBidRequests.length === 0) {
- return null;
- }
- const { gdprConsent, refererInfo } = bidderRequest;
-
- const gdprParams = (gdprConsent && gdprConsent.consentString) ? { xt: [gdprConsent.consentString] } : {};
- const refererParams = (refererInfo && refererInfo.referer) ? { xf: [base64urlEncode(refererInfo.referer)] } : {};
- const commonParams = { ...gdprParams, ...refererParams };
-
- const slots = validBidRequests.map(bid => ({
- slotname: bidToSlotName(bid),
- parameters: cleanTargets(bid.params.data)
- }));
-
- const payload = {
- slots: slots,
- parameters: commonParams,
- vastContentAsUrl: true,
- user: {
- ext: {
- eids: getEids(validBidRequests),
- }
- }
- };
-
- const account = getAccount(validBidRequests);
- const uri = 'https://ads-' + account + '.adhese.com/json';
-
- return {
- method: 'POST',
- url: uri,
- data: JSON.stringify(payload),
- bids: validBidRequests,
- options: {
- contentType: 'application/json'
- }
- };
- },
-
- interpretResponse: function(serverResponse, request) {
- const serverAds = serverResponse.body.reduce(function(map, ad) {
- map[ad.slotName] = ad;
- return map;
- }, {});
-
- serverResponse.account = getAccount(request.bids);
-
- return request.bids
- .map(bid => ({
- bid: bid,
- ad: serverAds[bidToSlotName(bid)]
- }))
- .filter(item => item.ad)
- .map(item => adResponse(item.bid, item.ad));
- },
-
- getUserSyncs: function(syncOptions, serverResponses, gdprConsent) {
- if (syncOptions.iframeEnabled && serverResponses.length > 0) {
- const account = serverResponses[0].account;
- if (account) {
- let syncurl = USER_SYNC_BASE_URL + '?account=' + account;
- if (gdprConsent) {
- syncurl += '&gdpr=' + (gdprConsent.gdprApplies ? 1 : 0);
- syncurl += '&consentString=' + encodeURIComponent(gdprConsent.consentString || '');
- }
- return [{type: 'iframe', url: syncurl}];
- }
- }
- return [];
- }
-};
-
-function adResponse(bid, ad) {
- const price = getPrice(ad);
- const adDetails = getAdDetails(ad);
- const markup = getAdMarkup(ad);
-
- const bidResponse = getbaseAdResponse({
- requestId: bid.bidId,
- mediaType: ad.extension.mediaType,
- cpm: Number(price.amount),
- currency: price.currency,
- width: Number(ad.width),
- height: Number(ad.height),
- creativeId: adDetails.creativeId,
- dealId: adDetails.dealId,
- adhese: {
- originData: adDetails.originData,
- origin: adDetails.origin,
- originInstance: adDetails.originInstance
- }
- });
-
- if (bidResponse.mediaType === VIDEO) {
- if (ad.cachedBodyUrl) {
- bidResponse.vastUrl = ad.cachedBodyUrl
- } else {
- bidResponse.vastXml = markup;
- }
- } else {
- const counter = ad.impressionCounter ? "" : '';
- bidResponse.ad = markup + counter;
- }
- return bidResponse;
-}
-
-function cleanTargets(target) {
- const targets = {};
- if (target) {
- Object.keys(target).forEach(function (key) {
- const val = target[key];
- const dirtyValues = Array.isArray(val) ? val : [val];
- const values = dirtyValues.filter(v => v === 0 || v);
- if (values.length > 0) {
- if (targets[key]) {
- const distinctValues = values.filter(v => targets[key].indexOf(v) < 0);
- targets[key].push.apply(targets[key], distinctValues);
- } else {
- targets[key] = values;
- }
- }
- });
- }
- return targets;
-}
-
-function bidToSlotName(bid) {
- if (bid.params.format) {
- return bid.params.location + '-' + bid.params.format;
- }
-
- var sizes = bid.mediaTypes.banner.sizes;
- sizes.sort();
- var format = sizes.map(size => size[0] + 'x' + size[1]).join('_');
-
- if (format.length > 0) {
- return bid.params.location + '-' + format;
- } else {
- return bid.params.location;
- }
-}
-
-function getAccount(validBidRequests) {
- return validBidRequests[0].params.account;
-}
-
-function getEids(validBidRequests) {
- if (validBidRequests[0] && validBidRequests[0].userIdAsEids) {
- return validBidRequests[0].userIdAsEids;
- }
-}
-
-function getbaseAdResponse(response) {
- return Object.assign({ netRevenue: true, ttl: 360 }, response);
-}
-
-function isAdheseAd(ad) {
- return !ad.origin || ad.origin === 'JERLICIA';
-}
-
-function getAdMarkup(ad) {
- if (!isAdheseAd(ad) || (ad.ext === 'js' && ad.body !== undefined && ad.body !== '' && ad.body.match(/`;
- let data = {
- bidderCode: BIDDER_CODE,
- requestId: res.id,
- currency: res.cur,
- cpm: parseFloat(bid.price) || 0,
- netRevenue: NET_REVENUE,
- width: bid.w,
- height: bid.h,
- creativeId: bid.crid,
- ttl: TTL,
- ad: bid.adm + callImpBeacon,
- };
- if (!utils.isEmpty(dealId)) {
- data.dealId = dealId;
- }
- bidResponses.push(data);
- }
- return bidResponses;
- },
-
- /*
- * Register the user sync pixels which should be dropped after the auction.
- *
- * @params {syncOptions} syncOptions which user syncs are allowed?
- * @params {ServerResponse[]} serverResponses List of server's responses.
- * @return {UserSync[]} The user syncs which should be dropped.
- *
- */
- getUserSyncs: (syncOptions, serverResponses) => {
- return [];
- },
-};
-
-registerBidder(spec);
diff --git a/modules/gammaBidAdapter.js b/modules/gammaBidAdapter.js
deleted file mode 100644
index 5fd3c56b2c6..00000000000
--- a/modules/gammaBidAdapter.js
+++ /dev/null
@@ -1,101 +0,0 @@
-import { registerBidder } from '../src/adapters/bidderFactory.js';
-
-const ENDPOINT = 'https://hb.gammaplatform.com';
-const ENDPOINT_USERSYNC = 'https://cm-supply-web.gammaplatform.com';
-const BIDDER_CODE = 'gamma';
-
-export const spec = {
- code: BIDDER_CODE,
- aliases: ['gamma'],
- supportedMediaTypes: ['banner', 'video'],
-
- /**
- * Determines whether or not the given bid request is valid.
- *
- * @param {object} bid The bid to validate.
- * @return boolean True if this is a valid bid, and false otherwise.
- */
- isBidRequestValid: function(bid) {
- return !!(bid.params.siteId || bid.params.zoneId);
- },
-
- /**
- * Make a server request from the list of BidRequests.
- *
- * @param {BidRequest[]} bidRequests A non-empty list of bid requests which should be sent to the Server.
- * @return ServerRequest Info describing the request to the server.
- */
- buildRequests: function(bidRequests, bidderRequest) {
- const serverRequests = [];
- const bidderRequestReferer = (bidderRequest && bidderRequest.refererInfo && bidderRequest.refererInfo.referer) || '';
- for (var i = 0, len = bidRequests.length; i < len; i++) {
- const gaxObjParams = bidRequests[i];
- serverRequests.push({
- method: 'GET',
- url: ENDPOINT + '/adx/request?wid=' + gaxObjParams.params.siteId + '&zid=' + gaxObjParams.params.zoneId + '&hb=pbjs&bidid=' + gaxObjParams.bidId + '&urf=' + encodeURIComponent(bidderRequestReferer)
- });
- }
- return serverRequests;
- },
-
- /**
- * Unpack the response from the server into a list of bids.
- *
- * @param {*} serverResponse A successful response from the server.
- * @return {Bid[]} An array of bids which were nested inside the server.
- */
- interpretResponse: function(serverResponse) {
- serverResponse = serverResponse.body;
-
- const bids = [];
-
- if (serverResponse.id) {
- const bid = newBid(serverResponse);
- bids.push(bid);
- }
-
- return bids;
- },
-
- getUserSyncs: function(syncOptions) {
- if (syncOptions.iframeEnabled) {
- return [{
- type: 'iframe',
- url: ENDPOINT_USERSYNC + '/adx/usersync'
- }];
- }
- }
-}
-
-/**
- * Unpack the Server's Bid into a Prebid-compatible one.
- * @param serverBid
- * @return Bid
- */
-function newBid(serverBid) {
- const bid = {
- ad: serverBid.seatbid[0].bid[0].adm,
- cpm: serverBid.seatbid[0].bid[0].price,
- creativeId: serverBid.seatbid[0].bid[0].adid,
- currency: serverBid.cur,
- dealId: serverBid.seatbid[0].bid[0].dealid,
- width: serverBid.seatbid[0].bid[0].w,
- height: serverBid.seatbid[0].bid[0].h,
- mediaType: serverBid.type,
- netRevenue: true,
- requestId: serverBid.id,
- ttl: serverBid.seatbid[0].bid[0].ttl || 300
- };
-
- if (serverBid.type == 'video') {
- Object.assign(bid, {
- vastXml: serverBid.seatbid[0].bid[0].vastXml,
- vastUrl: serverBid.seatbid[0].bid[0].vastUrl,
- ttl: 3600
- });
- }
-
- return bid;
-}
-
-registerBidder(spec);
diff --git a/modules/gnetBidAdapter.js b/modules/gnetBidAdapter.js
deleted file mode 100644
index 3469c897a6a..00000000000
--- a/modules/gnetBidAdapter.js
+++ /dev/null
@@ -1,101 +0,0 @@
-import { registerBidder } from '../src/adapters/bidderFactory.js';
-import * as utils from '../src/utils.js';
-import { BANNER } from '../src/mediaTypes.js';
-
-const BIDDER_CODE = 'gnet';
-const ENDPOINT = 'https://adserver.gnetproject.com/prebid.php';
-
-export const spec = {
- code: BIDDER_CODE,
- supportedMediaTypes: [BANNER],
-
- /**
- * Determines whether or not the given bid request is valid.
- *
- * @param {BidRequest} bid The bid params to validate.
- * @return boolean True if this is a valid bid, and false otherwise.
- */
- isBidRequestValid: function (bid) {
- return !!(bid.params.websiteId && bid.params.externalId);
- },
-
- /**
- * Make a server request from the list of BidRequests.
- *
- * @param {validBidRequests[]} - an array of bids
- * @return ServerRequest Info describing the request to the server.
- */
- buildRequests: function (validBidRequests, bidderRequest) {
- const bidRequests = [];
- const referer = bidderRequest.refererInfo.referer;
-
- utils._each(validBidRequests, (request) => {
- const data = {};
-
- data.referer = referer;
- data.adUnitCode = request.adUnitCode;
- data.bidId = request.bidId;
- data.transactionId = request.transactionId;
-
- data.sizes = utils.parseSizesInput(request.sizes);
-
- data.params = request.params;
-
- const payloadString = JSON.stringify(data);
-
- bidRequests.push({
- method: 'POST',
- url: ENDPOINT,
- mode: 'no-cors',
- options: {
- withCredentials: false,
- },
- data: payloadString
- });
- });
-
- return bidRequests;
- },
-
- /**
- * Unpack the response from the server into a list of bids.
- *
- * @param {*} serverResponse A successful response from the server.
- * @return {Bid[]} An array of bids which were nested inside the server.
- */
- interpretResponse: function (serverResponse, requests) {
- if (typeof serverResponse !== 'object') {
- return [];
- }
-
- const res = serverResponse && serverResponse.body;
-
- if (utils.isEmpty(res)) {
- return [];
- }
-
- if (res.bids) {
- const bids = [];
- utils._each(res.bids, (bidData) => {
- const bid = {
- requestId: bidData.bidId,
- cpm: bidData.cpm,
- currency: bidData.currency,
- width: bidData.width,
- height: bidData.height,
- ad: bidData.ad,
- ttl: 300,
- creativeId: bidData.creativeId,
- netRevenue: true,
- };
- bids.push(bid);
- });
-
- return bids;
- }
-
- return [];
- },
-};
-
-registerBidder(spec);
diff --git a/modules/haxmediaBidAdapter.js b/modules/haxmediaBidAdapter.js
deleted file mode 100644
index c4ce2eb3663..00000000000
--- a/modules/haxmediaBidAdapter.js
+++ /dev/null
@@ -1,107 +0,0 @@
-import { registerBidder } from '../src/adapters/bidderFactory.js';
-import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
-import * as utils from '../src/utils.js';
-
-const BIDDER_CODE = 'haxmedia';
-const AD_URL = 'https://balancer.haxmedia.io/?c=o&m=multi';
-
-function isBidResponseValid(bid) {
- if (!bid.requestId || !bid.cpm || !bid.creativeId ||
- !bid.ttl || !bid.currency) {
- return false;
- }
- switch (bid.mediaType) {
- case BANNER:
- return Boolean(bid.width && bid.height && bid.ad);
- case VIDEO:
- return Boolean(bid.vastUrl);
- case NATIVE:
- return Boolean(bid.native && bid.native.impressionTrackers);
- default:
- return false;
- }
-}
-
-export const spec = {
- code: BIDDER_CODE,
- supportedMediaTypes: [BANNER, VIDEO, NATIVE],
-
- isBidRequestValid: (bid) => {
- return Boolean(bid.bidId && bid.params && !isNaN(parseInt(bid.params.placementId)));
- },
-
- buildRequests: (validBidRequests = [], bidderRequest) => {
- let winTop = window;
- let location;
- try {
- location = new URL(bidderRequest.refererInfo.referer)
- winTop = window.top;
- } catch (e) {
- location = winTop.location;
- utils.logMessage(e);
- };
-
- const placements = [];
- const request = {
- 'deviceWidth': winTop.screen.width,
- 'deviceHeight': winTop.screen.height,
- 'language': (navigator && navigator.language) ? navigator.language.split('-')[0] : '',
- 'secure': 1,
- 'host': location.host,
- 'page': location.pathname,
- 'placements': placements
- };
-
- if (bidderRequest) {
- if (bidderRequest.uspConsent) {
- request.ccpa = bidderRequest.uspConsent;
- }
- if (bidderRequest.gdprConsent) {
- request.gdpr = bidderRequest.gdprConsent
- }
- }
-
- const len = validBidRequests.length;
- for (let i = 0; i < len; i++) {
- const bid = validBidRequests[i];
- const placement = {
- placementId: bid.params.placementId,
- bidId: bid.bidId,
- schain: bid.schain || {},
- };
- const mediaType = bid.mediaTypes
-
- if (mediaType && mediaType[BANNER] && mediaType[BANNER].sizes) {
- placement.sizes = mediaType[BANNER].sizes;
- placement.traffic = BANNER;
- } else if (mediaType && mediaType[VIDEO] && mediaType[VIDEO].playerSize) {
- placement.wPlayer = mediaType[VIDEO].playerSize[0];
- placement.hPlayer = mediaType[VIDEO].playerSize[1];
- placement.traffic = VIDEO;
- } else if (mediaType && mediaType[NATIVE]) {
- placement.native = mediaType[NATIVE];
- placement.traffic = NATIVE;
- }
- placements.push(placement);
- }
-
- return {
- method: 'POST',
- url: AD_URL,
- data: request
- };
- },
-
- interpretResponse: (serverResponse) => {
- let response = [];
- for (let i = 0; i < serverResponse.body.length; i++) {
- let resItem = serverResponse.body[i];
- if (isBidResponseValid(resItem)) {
- response.push(resItem);
- }
- }
- return response;
- },
-};
-
-registerBidder(spec);
diff --git a/modules/hpmdnetworkBidAdapter.js b/modules/hpmdnetworkBidAdapter.js
deleted file mode 100644
index 5cc28ab6362..00000000000
--- a/modules/hpmdnetworkBidAdapter.js
+++ /dev/null
@@ -1,96 +0,0 @@
-import { registerBidder } from '../src/adapters/bidderFactory.js';
-import { BANNER } from '../src/mediaTypes.js';
-
-const BIDDER_CODE = 'hpmdnetwork';
-const BIDDER_CODE_ALIAS = 'hpmd';
-const HPMDNETWORK_HOST = 'https://banner.hpmdnetwork.ru/bidder/request';
-const DEFAULT_TTL = 300;
-const DEFAULT_CURRENCY = 'RUB';
-
-export const spec = {
- code: BIDDER_CODE,
- aliases: [ BIDDER_CODE_ALIAS ],
- supportedMediaTypes: [ BANNER ],
- isBidRequestValid: isBidRequestValid,
- buildRequests: buildRequests,
- interpretResponse: interpretResponse,
-};
-
-function isBidRequestValid(bid) {
- const { placementId } = bid.params;
- return !!placementId;
-}
-
-function buildRequests(validBidRequests, bidderRequest) {
- const payload = {};
- payload.places = [];
-
- validBidRequests.forEach((bidRequest) => {
- const place = {
- id: bidRequest.bidId,
- placementId: bidRequest.params.placementId + '',
- };
- payload.places.push(place);
- });
-
- payload.url = bidderRequest.refererInfo.referer;
- payload.settings = { currency: DEFAULT_CURRENCY };
-
- return {
- method: 'POST',
- url: HPMDNETWORK_HOST,
- data: payload,
- };
-}
-
-function interpretResponse(serverResponse) {
- const { body } = serverResponse;
- const bidResponses = [];
-
- if (body.bids) {
- body.bids.forEach((bid) => {
- const size = getCreativeSize(bid);
- const bidResponse = {
- requestId: bid.id,
- cpm: bid.cpm,
- ad: wrapDisplayUrl(bid.displayUrl),
- width: size.width,
- height: size.height,
- creativeId: bid.creativeId || generateRandomInt(),
- currency: bid.currency || DEFAULT_CURRENCY,
- netRevenue: true,
- ttl: bid.ttl || DEFAULT_TTL,
- };
-
- bidResponses.push(bidResponse);
- });
- }
-
- return bidResponses;
-}
-
-function wrapDisplayUrl(displayUrl) {
- return `