diff --git a/modules/33acrossBidAdapter.js b/modules/33acrossBidAdapter.js
index 816f53dac5d..cd99afb4c36 100644
--- a/modules/33acrossBidAdapter.js
+++ b/modules/33acrossBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { config } from '../src/config.js';
import {
@@ -538,7 +539,7 @@ function interpretResponse(serverResponse, bidRequest) {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `
TL WIN ${w}x${h}
`,
diff --git a/modules/adWMGBidAdapter.js b/modules/adWMGBidAdapter.js
index 1198a4410a4..0d82a13b7c7 100644
--- a/modules/adWMGBidAdapter.js
+++ b/modules/adWMGBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
'use strict';
import { registerBidder } from '../src/adapters/bidderFactory.js';
@@ -115,7 +116,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/adclusterBidAdapter.js b/modules/adclusterBidAdapter.js
index b082d45fb5a..741823b407b 100644
--- a/modules/adclusterBidAdapter.js
+++ b/modules/adclusterBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from "../src/adapters/bidderFactory.js";
import { BANNER, VIDEO } from "../src/mediaTypes.js";
@@ -73,7 +74,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/adkernelAdnBidAdapter.js b/modules/adkernelAdnBidAdapter.js
index 238cced0317..d92ceeb1aa7 100644
--- a/modules/adkernelAdnBidAdapter.js
+++ b/modules/adkernelAdnBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { deepAccess, deepSetValue, isArray, isNumber, isStr, logInfo, parseSizesInput } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
@@ -199,7 +200,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/adrelevantisBidAdapter.js b/modules/adrelevantisBidAdapter.js
index d529339096e..637f6fe6e39 100644
--- a/modules/adrelevantisBidAdapter.js
+++ b/modules/adrelevantisBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { Renderer } from '../src/Renderer.js';
import {
createTrackPixelHtml,
@@ -182,7 +183,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/adtargetBidAdapter.js b/modules/adtargetBidAdapter.js
index 2f5495910fd..651e475417d 100644
--- a/modules/adtargetBidAdapter.js
+++ b/modules/adtargetBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { _map, deepAccess, flatten, isArray, logError, parseSizesInput } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
@@ -52,7 +53,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/adtelligentBidAdapter.js b/modules/adtelligentBidAdapter.js
index 2c571b86425..4c9464fb288 100644
--- a/modules/adtelligentBidAdapter.js
+++ b/modules/adtelligentBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { _map, deepAccess, flatten, isArray, parseSizesInput } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
@@ -102,7 +103,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/adtrgtmeBidAdapter.js b/modules/adtrgtmeBidAdapter.js
index 8e8e0098bfe..f35e064d5b1 100644
--- a/modules/adtrgtmeBidAdapter.js
+++ b/modules/adtrgtmeBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js';
import {
@@ -225,7 +226,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/aduptechBidAdapter.js b/modules/aduptechBidAdapter.js
index ccb027b3825..692cf5e65c1 100644
--- a/modules/aduptechBidAdapter.js
+++ b/modules/aduptechBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { deepClone, isArray, isBoolean, isEmpty, isFn, isPlainObject } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE } from '../src/mediaTypes.js';
@@ -332,7 +333,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/advangelistsBidAdapter.js b/modules/advangelistsBidAdapter.js
index 9bb030d34fb..b92acada305 100755
--- a/modules/advangelistsBidAdapter.js
+++ b/modules/advangelistsBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { isEmpty } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
@@ -65,7 +66,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/afpBidAdapter.js b/modules/afpBidAdapter.js
index 23389d0b35a..6234c3b3dbb 100644
--- a/modules/afpBidAdapter.js
+++ b/modules/afpBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { Renderer } from '../src/Renderer.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
@@ -146,7 +147,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/alvadsBidAdapter.js b/modules/alvadsBidAdapter.js
index 923a669805c..1dd75a4b32e 100644
--- a/modules/alvadsBidAdapter.js
+++ b/modules/alvadsBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import * as utils from '../src/utils.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
@@ -112,7 +113,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/appnexusBidAdapter.js b/modules/appnexusBidAdapter.js
index 5ef79b3b8a1..98f73b717ab 100644
--- a/modules/appnexusBidAdapter.js
+++ b/modules/appnexusBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import {
createTrackPixelHtml,
deepAccess,
@@ -419,7 +420,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/apstreamBidAdapter.js b/modules/apstreamBidAdapter.js
index 9404ab48bf4..2e24b377afd 100644
--- a/modules/apstreamBidAdapter.js
+++ b/modules/apstreamBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { generateUUID, deepAccess, createTrackPixelHtml } from '../src/utils.js';
import { getDevicePixelRatio } from '../libraries/devicePixelRatio/devicePixelRatio.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
@@ -478,7 +479,7 @@ function interpretResponse(serverResponse, bidRequest) {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/astraoneBidAdapter.js b/modules/astraoneBidAdapter.js
index dd3601781d0..41a9a892cee 100644
--- a/modules/astraoneBidAdapter.js
+++ b/modules/astraoneBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { _map } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js'
import { BANNER } from '../src/mediaTypes.js'
@@ -149,7 +150,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/axonixBidAdapter.js b/modules/axonixBidAdapter.js
index a68c33df3be..54029ded495 100644
--- a/modules/axonixBidAdapter.js
+++ b/modules/axonixBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { deepAccess, isArray, isEmpty, logError, replaceAuctionPrice, triggerPixel } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
@@ -145,7 +146,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/beachfrontBidAdapter.js b/modules/beachfrontBidAdapter.js
index 2516425264a..60d5a73708b 100644
--- a/modules/beachfrontBidAdapter.js
+++ b/modules/beachfrontBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import {
deepAccess,
deepClone,
@@ -106,7 +107,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/biddoBidAdapter.js b/modules/biddoBidAdapter.js
index 0fc4f470919..01fdaebf8c4 100644
--- a/modules/biddoBidAdapter.js
+++ b/modules/biddoBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js';
import { buildBannerRequests, interpretBannerResponse } from '../libraries/biddoInvamiaUtils/index.js';
@@ -34,7 +35,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/bidmaticBidAdapter.js b/modules/bidmaticBidAdapter.js
index 1fa17776fbf..b2dfa689243 100644
--- a/modules/bidmaticBidAdapter.js
+++ b/modules/bidmaticBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import {
_map,
@@ -83,7 +84,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/bidscubeBidAdapter.js b/modules/bidscubeBidAdapter.js
index c7f742516f2..89395ca14e1 100644
--- a/modules/bidscubeBidAdapter.js
+++ b/modules/bidscubeBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { logMessage, getWindowLocation } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js'
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js'
@@ -70,7 +71,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/bliinkBidAdapter.js b/modules/bliinkBidAdapter.js
index 78c53cc0f9f..b8c7293dcab 100644
--- a/modules/bliinkBidAdapter.js
+++ b/modules/bliinkBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js'
import { config } from '../src/config.js'
import { _each, canAccessWindowTop, deepAccess, deepSetValue, getDomLoadingDuration, getWindowSelf, getWindowTop } from '../src/utils.js'
@@ -271,7 +272,7 @@ const interpretResponse = (serverResponse, bidRequest) => {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/blueBidAdapter.js b/modules/blueBidAdapter.js
index 864aaf30dce..c242c2fc33e 100644
--- a/modules/blueBidAdapter.js
+++ b/modules/blueBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { ortbConverter } from '../libraries/ortbConverter/converter.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js';
@@ -62,7 +63,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/bmsBidAdapter.js b/modules/bmsBidAdapter.js
index c0d0a3f5f26..b3cf7fec212 100644
--- a/modules/bmsBidAdapter.js
+++ b/modules/bmsBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { ortbConverter } from '../libraries/ortbConverter/converter.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js';
@@ -63,7 +64,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/bmtmBidAdapter.js b/modules/bmtmBidAdapter.js
index 303f3bb0f8c..c820833277e 100644
--- a/modules/bmtmBidAdapter.js
+++ b/modules/bmtmBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { generateUUID, deepAccess, logWarn, deepSetValue, isPlainObject } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
@@ -110,7 +111,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/buzzoolaBidAdapter.js b/modules/buzzoolaBidAdapter.js
index 590ee9a75af..1c538e0a3bd 100644
--- a/modules/buzzoolaBidAdapter.js
+++ b/modules/buzzoolaBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { deepAccess, deepClone } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, VIDEO, NATIVE } from '../src/mediaTypes.js';
@@ -70,7 +71,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/carodaBidAdapter.js b/modules/carodaBidAdapter.js
index 910d968795a..8573f5c4f7c 100644
--- a/modules/carodaBidAdapter.js
+++ b/modules/carodaBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
// jshint esversion: 6, es3: false, node: true
'use strict'
@@ -107,7 +108,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/chtnwBidAdapter.js b/modules/chtnwBidAdapter.js
index 456ca0e91c9..454659ee261 100644
--- a/modules/chtnwBidAdapter.js
+++ b/modules/chtnwBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import {
generateUUID,
_each,
@@ -85,7 +86,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/codefuelBidAdapter.js b/modules/codefuelBidAdapter.js
index 561ab65bfd9..7c9321a8dca 100644
--- a/modules/codefuelBidAdapter.js
+++ b/modules/codefuelBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { isArray, setOnAny } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js';
@@ -109,7 +110,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/connatixBidAdapter.js b/modules/connatixBidAdapter.js
index c8920c3e988..8f269e8aed3 100644
--- a/modules/connatixBidAdapter.js
+++ b/modules/connatixBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import adapterManager from '../src/adapterManager.js';
import {
registerBidder
@@ -318,7 +319,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/connectadBidAdapter.js b/modules/connectadBidAdapter.js
index 539a80db1de..0556d5ade9c 100644
--- a/modules/connectadBidAdapter.js
+++ b/modules/connectadBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { deepAccess, deepSetValue, mergeDeep, logWarn, generateUUID } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js'
@@ -158,7 +159,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/craftBidAdapter.js b/modules/craftBidAdapter.js
index bd8ea021c8a..81150549162 100644
--- a/modules/craftBidAdapter.js
+++ b/modules/craftBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { getBidRequest } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
@@ -84,7 +85,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/dailymotionBidAdapter.js b/modules/dailymotionBidAdapter.js
index e8fc0a5ffb7..201c0540839 100644
--- a/modules/dailymotionBidAdapter.js
+++ b/modules/dailymotionBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { ortbConverter } from '../libraries/ortbConverter/converter.js';
import { VIDEO } from '../src/mediaTypes.js';
@@ -308,7 +309,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/dasBidAdapter.js b/modules/dasBidAdapter.js
index b80ac28c86f..499f7214027 100644
--- a/modules/dasBidAdapter.js
+++ b/modules/dasBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { getAllOrtbKeywords } from '../libraries/keywords/keywords.js';
import { getAdUnitSizes } from '../libraries/sizeUtils/sizeUtils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
@@ -287,7 +288,7 @@ function interpretResponse(serverResponse, bidRequest) {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/deltaprojectsBidAdapter.js b/modules/deltaprojectsBidAdapter.js
index 70835bad1e7..c399a469c79 100644
--- a/modules/deltaprojectsBidAdapter.js
+++ b/modules/deltaprojectsBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { getCurrencyFromBidderRequest } from '../libraries/ortb2Utils/currency.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js';
@@ -162,7 +163,7 @@ function interpretResponse(serverResponse, bidRequest) {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/dianomiBidAdapter.js b/modules/dianomiBidAdapter.js
index 9da56c3d4d4..7c5b753bfef 100644
--- a/modules/dianomiBidAdapter.js
+++ b/modules/dianomiBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
// jshint esversion: 6, es3: false, node: true
'use strict';
@@ -263,7 +264,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/digitalMatterBidAdapter.js b/modules/digitalMatterBidAdapter.js
index f92fdd9dddb..3a3c05a4734 100644
--- a/modules/digitalMatterBidAdapter.js
+++ b/modules/digitalMatterBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { deepAccess, deepSetValue, getWinDimensions, inIframe, logWarn, parseSizesInput } from '../src/utils.js';
import { config } from '../src/config.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
@@ -123,7 +124,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/docereeAdManagerBidAdapter.js b/modules/docereeAdManagerBidAdapter.js
index 50b066f146a..bd7b10ad671 100644
--- a/modules/docereeAdManagerBidAdapter.js
+++ b/modules/docereeAdManagerBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { config } from '../src/config.js';
import { BANNER } from '../src/mediaTypes.js';
@@ -61,7 +62,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/eclickBidAdapter.js b/modules/eclickBidAdapter.js
index 63d03f5db7d..d45e845e09b 100644
--- a/modules/eclickBidAdapter.js
+++ b/modules/eclickBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { NATIVE } from '../src/mediaTypes.js';
import { convertOrtbRequestToProprietaryNative } from '../src/native.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
@@ -69,7 +70,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/finativeBidAdapter.js b/modules/finativeBidAdapter.js
index fd7d233e8be..c751b195bb9 100644
--- a/modules/finativeBidAdapter.js
+++ b/modules/finativeBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
// jshint esversion: 6, es3: false, node: true
'use strict';
@@ -165,7 +166,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/gammaBidAdapter.js b/modules/gammaBidAdapter.js
index afdece698b5..784893018f1 100644
--- a/modules/gammaBidAdapter.js
+++ b/modules/gammaBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { getTimeZone } from '../libraries/timezone/timezone.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
@@ -71,7 +72,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/getintentBidAdapter.js b/modules/getintentBidAdapter.js
index 08c7fae8b77..f441d4cb70f 100644
--- a/modules/getintentBidAdapter.js
+++ b/modules/getintentBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { getBidIdParameter, isFn, isInteger, logError } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
@@ -87,7 +88,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/gjirafaBidAdapter.js b/modules/gjirafaBidAdapter.js
index a7cb99db537..ddabd1464b8 100644
--- a/modules/gjirafaBidAdapter.js
+++ b/modules/gjirafaBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { getStorageManager } from '../src/storageManager.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
@@ -112,7 +113,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/greenbidsBidAdapter.js b/modules/greenbidsBidAdapter.js
index a7c14d7437b..6f416aadc65 100644
--- a/modules/greenbidsBidAdapter.js
+++ b/modules/greenbidsBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { getValue, logError, deepAccess, parseSizesInput, getBidIdParameter, logInfo, getWinDimensions, getScreenOrientation } from '../src/utils.js';
import { getDevicePixelRatio } from '../libraries/devicePixelRatio/devicePixelRatio.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
@@ -123,7 +124,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/gridBidAdapter.js b/modules/gridBidAdapter.js
index 58dbbeb3eb6..07da377feab 100644
--- a/modules/gridBidAdapter.js
+++ b/modules/gridBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import {
isEmpty,
deepAccess,
@@ -443,7 +444,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/harionBidAdapter.js b/modules/harionBidAdapter.js
index e9e834c128f..b8ca5a0a75d 100644
--- a/modules/harionBidAdapter.js
+++ b/modules/harionBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
import { isBidRequestValid, buildRequests, interpretResponse } from '../libraries/teqblazeUtils/bidderUtils.js';
@@ -28,7 +29,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/improvedigitalBidAdapter.js b/modules/improvedigitalBidAdapter.js
index 9c376c866d4..8c7c209a582 100644
--- a/modules/improvedigitalBidAdapter.js
+++ b/modules/improvedigitalBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { deepAccess, deepSetValue, getBidIdParameter, getUniqueIdentifierStr, logWarn, mergeDeep } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { config } from '../src/config.js';
@@ -81,7 +82,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/integr8BidAdapter.js b/modules/integr8BidAdapter.js
index 6e10e251ec7..c81fd54a0d8 100644
--- a/modules/integr8BidAdapter.js
+++ b/modules/integr8BidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { deepAccess, isFn, isPlainObject } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { getStorageManager } from '../src/storageManager.js';
@@ -123,7 +124,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/intenzeBidAdapter.js b/modules/intenzeBidAdapter.js
index 0114871f059..dedaaf99409 100644
--- a/modules/intenzeBidAdapter.js
+++ b/modules/intenzeBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { deepSetValue, deepAccess, _map, logWarn } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
@@ -173,7 +174,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/invamiaBidAdapter.js b/modules/invamiaBidAdapter.js
index d54a639c582..d40fd752ecf 100644
--- a/modules/invamiaBidAdapter.js
+++ b/modules/invamiaBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js';
import { buildBannerRequests, interpretBannerResponse } from '../libraries/biddoInvamiaUtils/index.js';
@@ -34,7 +35,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/jwplayerBidAdapter.js b/modules/jwplayerBidAdapter.js
index 62f2b4f98c4..b0e8ed2c762 100644
--- a/modules/jwplayerBidAdapter.js
+++ b/modules/jwplayerBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { VIDEO } from '../src/mediaTypes.js';
import { isArray, isFn, deepAccess, deepSetValue, logError, logWarn } from '../src/utils.js';
@@ -85,7 +86,7 @@ function getBidAdapter() {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/lassoBidAdapter.js b/modules/lassoBidAdapter.js
index d279f1808fd..2ba0ee7dd41 100644
--- a/modules/lassoBidAdapter.js
+++ b/modules/lassoBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js';
import { getStorageManager } from '../src/storageManager.js';
@@ -117,7 +118,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/livewrappedBidAdapter.js b/modules/livewrappedBidAdapter.js
index 42a2e889133..ac43ea2ef4e 100644
--- a/modules/livewrappedBidAdapter.js
+++ b/modules/livewrappedBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { deepAccess, getWindowTop, isSafariBrowser, isFirefoxBrowser, isChromeIOSBrowser, mergeDeep, isFn, isPlainObject, getWinDimensions } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { config } from '../src/config.js';
@@ -137,7 +138,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/loopmeBidAdapter.js b/modules/loopmeBidAdapter.js
index 5fedee0cb6b..db32eefcd8b 100644
--- a/modules/loopmeBidAdapter.js
+++ b/modules/loopmeBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, VIDEO, NATIVE } from '../src/mediaTypes.js';
import { ortbConverter } from '../libraries/ortbConverter/converter.js';
@@ -51,7 +52,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/malltvBidAdapter.js b/modules/malltvBidAdapter.js
index 926a9e5600e..9d77c9b8d80 100644
--- a/modules/malltvBidAdapter.js
+++ b/modules/malltvBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { getStorageManager } from '../src/storageManager.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
@@ -119,7 +120,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/mantisBidAdapter.js b/modules/mantisBidAdapter.js
index edbb8d1da46..7cfde3d769c 100644
--- a/modules/mantisBidAdapter.js
+++ b/modules/mantisBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { getStorageManager } from '../src/storageManager.js';
import { ajax } from '../src/ajax.js';
@@ -253,7 +254,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/marsmediaBidAdapter.js b/modules/marsmediaBidAdapter.js
index b622c136fea..20aeb0fc724 100644
--- a/modules/marsmediaBidAdapter.js
+++ b/modules/marsmediaBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
'use strict';
import { deepAccess, parseSizesInput, isArray, getWindowTop, deepSetValue, triggerPixel, getWindowSelf, isPlainObject } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
@@ -290,7 +291,7 @@ function MarsmediaAdapter() {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/microadBidAdapter.js b/modules/microadBidAdapter.js
index 8122dae719e..33c576c353b 100644
--- a/modules/microadBidAdapter.js
+++ b/modules/microadBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { deepAccess, isArray, isEmpty, isStr } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js';
@@ -157,7 +158,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/my6senseBidAdapter.js b/modules/my6senseBidAdapter.js
index 9914131a105..95dba1500d3 100644
--- a/modules/my6senseBidAdapter.js
+++ b/modules/my6senseBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { BANNER, NATIVE } from '../src/mediaTypes.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { convertOrtbRequestToProprietaryNative } from '../src/native.js';
@@ -193,7 +194,7 @@ function interpretResponse(serverResponse, bidRequest) {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/omsBidAdapter.js b/modules/omsBidAdapter.js
index 36c8b79939d..bbdde3db704 100644
--- a/modules/omsBidAdapter.js
+++ b/modules/omsBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import {
isArray,
getWindowTop,
@@ -177,7 +178,7 @@ function interpretResponse(serverResponse, bidRequest) {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/onomagicBidAdapter.js b/modules/onomagicBidAdapter.js
index 7665b1849e7..78b6cd920af 100644
--- a/modules/onomagicBidAdapter.js
+++ b/modules/onomagicBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import {
_each,
createTrackPixelHtml, getBidIdParameter,
@@ -120,7 +121,7 @@ function interpretResponse(serverResponse, bidRequest) {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/opscoBidAdapter.js b/modules/opscoBidAdapter.js
index 0dd90f12d7a..1f051312e60 100644
--- a/modules/opscoBidAdapter.js
+++ b/modules/opscoBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { deepAccess, deepSetValue, isArray, logInfo } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js';
@@ -123,7 +124,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/orbidderBidAdapter.js b/modules/orbidderBidAdapter.js
index af095bbedf7..b5c799ce42d 100644
--- a/modules/orbidderBidAdapter.js
+++ b/modules/orbidderBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { isFn, isPlainObject } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { getStorageManager } from '../src/storageManager.js';
@@ -140,7 +141,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/otmBidAdapter.js b/modules/otmBidAdapter.js
index 018aba956b8..411de780c69 100644
--- a/modules/otmBidAdapter.js
+++ b/modules/otmBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import {
logInfo,
@@ -105,7 +106,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/outbrainBidAdapter.js b/modules/outbrainBidAdapter.js
index 0058b3f9c8c..15e6fee663b 100644
--- a/modules/outbrainBidAdapter.js
+++ b/modules/outbrainBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
// jshint esversion: 6, es3: false, node: true
'use strict';
@@ -185,7 +186,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/ownadxBidAdapter.js b/modules/ownadxBidAdapter.js
index 641a7198244..504327ff749 100644
--- a/modules/ownadxBidAdapter.js
+++ b/modules/ownadxBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { parseSizesInput, isEmpty } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js'
@@ -82,7 +83,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/pigeoonBidAdapter.js b/modules/pigeoonBidAdapter.js
index 86cc550717c..3347e779016 100644
--- a/modules/pigeoonBidAdapter.js
+++ b/modules/pigeoonBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js';
import { getStorageManager } from '../src/storageManager.js';
@@ -105,7 +106,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/pixfutureBidAdapter.js b/modules/pixfutureBidAdapter.js
index df48897655c..a85ac36ea30 100644
--- a/modules/pixfutureBidAdapter.js
+++ b/modules/pixfutureBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { getStorageManager } from '../src/storageManager.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
@@ -180,7 +181,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/pubgeniusBidAdapter.js b/modules/pubgeniusBidAdapter.js
index 3fd2c6f2969..fdef86b6f25 100644
--- a/modules/pubgeniusBidAdapter.js
+++ b/modules/pubgeniusBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { ajax } from '../src/ajax.js';
import { config } from '../src/config.js';
@@ -110,7 +111,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/publirBidAdapter.js b/modules/publirBidAdapter.js
index dc5d69ef1ba..cfd4b034113 100644
--- a/modules/publirBidAdapter.js
+++ b/modules/publirBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import {
logWarn,
logInfo,
@@ -70,7 +71,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/pxyzBidAdapter.js b/modules/pxyzBidAdapter.js
index cc95d4d2305..ceacf9a4b8b 100644
--- a/modules/pxyzBidAdapter.js
+++ b/modules/pxyzBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js';
import { isArray, logError, logInfo } from '../src/utils.js';
@@ -107,7 +108,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/rhythmoneBidAdapter.js b/modules/rhythmoneBidAdapter.js
index e1d1af73257..57cab21e673 100644
--- a/modules/rhythmoneBidAdapter.js
+++ b/modules/rhythmoneBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
'use strict';
import { deepAccess, parseSizesInput, isArray } from '../src/utils.js';
@@ -231,7 +232,7 @@ function RhythmOneBidAdapter() {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/seedingAllianceBidAdapter.js b/modules/seedingAllianceBidAdapter.js
index 91f62adf88e..8b9daf6812f 100755
--- a/modules/seedingAllianceBidAdapter.js
+++ b/modules/seedingAllianceBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
// jshint esversion: 6, es3: false, node: true
'use strict';
@@ -95,7 +96,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/seedtagBidAdapter.js b/modules/seedtagBidAdapter.js
index 5e0aefeb714..6987cdad983 100644
--- a/modules/seedtagBidAdapter.js
+++ b/modules/seedtagBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { getBoundingClientRect } from '../libraries/boundingClientRect/boundingClientRect.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { config } from '../src/config.js';
@@ -409,7 +410,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/sevioBidAdapter.js b/modules/sevioBidAdapter.js
index c2f0e33c150..f38195e0c19 100644
--- a/modules/sevioBidAdapter.js
+++ b/modules/sevioBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import * as utils from "../src/utils.js";
import { detectWalletsPresence } from "../libraries/cryptoUtils/wallets.js";
import { registerBidder } from "../src/adapters/bidderFactory.js";
@@ -349,7 +350,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/sharethroughBidAdapter.js b/modules/sharethroughBidAdapter.js
index 094786d4ae4..e94388d8a94 100644
--- a/modules/sharethroughBidAdapter.js
+++ b/modules/sharethroughBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { handleCookieSync, PID_STORAGE_NAME, prepareSplitImps } from '../libraries/equativUtils/equativUtils.js';
import { ortbConverter } from '../libraries/ortbConverter/converter.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
@@ -292,7 +293,7 @@ export const sharethroughAdapterSpec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/smarthubBidAdapter.js b/modules/smarthubBidAdapter.js
index 5c57c2bb9a9..aa592efc96a 100644
--- a/modules/smarthubBidAdapter.js
+++ b/modules/smarthubBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
import {
@@ -190,7 +191,7 @@ const interpretResponse = (serverResponse, bidRequest) => {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/sovrnBidAdapter.js b/modules/sovrnBidAdapter.js
index e18ab516d3f..5faab94518a 100644
--- a/modules/sovrnBidAdapter.js
+++ b/modules/sovrnBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import {
_each,
isArray,
@@ -223,7 +224,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/startioBidAdapter.js b/modules/startioBidAdapter.js
index 69cfad75452..a87caf73227 100644
--- a/modules/startioBidAdapter.js
+++ b/modules/startioBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, VIDEO, NATIVE } from '../src/mediaTypes.js';
import { logError, isFn, isPlainObject, formatQS } from '../src/utils.js';
@@ -150,7 +151,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/stroeerCoreBidAdapter.js b/modules/stroeerCoreBidAdapter.js
index 6be774bfe87..1bcca3c8e3e 100644
--- a/modules/stroeerCoreBidAdapter.js
+++ b/modules/stroeerCoreBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { buildUrl, deepAccess, deepSetValue, generateUUID, getWinDimensions, getWindowSelf, getWindowTop, isEmpty, isStr, logWarn } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
@@ -112,7 +113,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/targetVideoBidAdapter.js b/modules/targetVideoBidAdapter.js
index 2dd88724daa..272c341b944 100644
--- a/modules/targetVideoBidAdapter.js
+++ b/modules/targetVideoBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { _each, deepAccess, getDefinedParams, isFn, isPlainObject, parseGPTSingleSizeArrayToRtbSize } from '../src/utils.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
@@ -217,7 +218,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/tripleliftBidAdapter.js b/modules/tripleliftBidAdapter.js
index b14dcdd121e..604b6669fe5 100644
--- a/modules/tripleliftBidAdapter.js
+++ b/modules/tripleliftBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import * as utils from '../src/utils.js';
import { logMessage, logError, isEmpty, logWarn } from '../src/utils.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
@@ -90,7 +91,7 @@ export const tripleliftAdapterSpec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/truereachBidAdapter.js b/modules/truereachBidAdapter.js
index 57cb0ea9643..e13f9480764 100755
--- a/modules/truereachBidAdapter.js
+++ b/modules/truereachBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { deepAccess, getUniqueIdentifierStr } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js';
@@ -51,7 +52,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/unrulyBidAdapter.js b/modules/unrulyBidAdapter.js
index 688667c64aa..5494730a2c3 100644
--- a/modules/unrulyBidAdapter.js
+++ b/modules/unrulyBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { deepAccess, logError } from '../src/utils.js';
import { Renderer } from '../src/Renderer.js'
import { registerBidder } from '../src/adapters/bidderFactory.js'
@@ -237,7 +238,7 @@ export const adapter = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/videobyteBidAdapter.js b/modules/videobyteBidAdapter.js
index b03bad0fc88..f1dc4d38b57 100644
--- a/modules/videobyteBidAdapter.js
+++ b/modules/videobyteBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { logMessage, logError, deepAccess, isFn, isPlainObject, isStr, isNumber, isArray, deepSetValue } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { VIDEO } from '../src/mediaTypes.js';
@@ -104,7 +105,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/videoreachBidAdapter.js b/modules/videoreachBidAdapter.js
index cd82907d465..9461bc494e4 100644
--- a/modules/videoreachBidAdapter.js
+++ b/modules/videoreachBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { getBidIdParameter, getValue } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
const BIDDER_CODE = 'videoreach';
@@ -60,7 +61,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/viewdeosDXBidAdapter.js b/modules/viewdeosDXBidAdapter.js
index 38771f919af..d42bc5d350e 100644
--- a/modules/viewdeosDXBidAdapter.js
+++ b/modules/viewdeosDXBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { deepAccess, flatten, isArray, logError, parseSizesInput } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { VIDEO } from '../src/mediaTypes.js';
@@ -63,7 +64,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/winrBidAdapter.js b/modules/winrBidAdapter.js
index 06a56f5819a..b23d5cc9e78 100644
--- a/modules/winrBidAdapter.js
+++ b/modules/winrBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import {
deepAccess,
getBidRequest,
@@ -286,7 +287,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/yahooAdsBidAdapter.js b/modules/yahooAdsBidAdapter.js
index 56b37321ca8..c06a503928a 100644
--- a/modules/yahooAdsBidAdapter.js
+++ b/modules/yahooAdsBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
import { deepAccess, isFn, isStr, isNumber, isArray, isEmpty, isPlainObject, generateUUID, logInfo, logWarn } from '../src/utils.js';
@@ -756,7 +757,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/yandexBidAdapter.js b/modules/yandexBidAdapter.js
index 4a3aef2d0a2..2dfb7317859 100644
--- a/modules/yandexBidAdapter.js
+++ b/modules/yandexBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { getCurrencyFromBidderRequest } from '../libraries/ortb2Utils/currency.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
@@ -504,7 +505,7 @@ function interpretResponse(serverResponse, bidRequest) {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/yieldliftBidAdapter.js b/modules/yieldliftBidAdapter.js
index d1ca0d5ef5b..84f2ee5b6a6 100644
--- a/modules/yieldliftBidAdapter.js
+++ b/modules/yieldliftBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { deepAccess, deepSetValue, logInfo } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js';
@@ -102,7 +103,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/modules/yieldloveBidAdapter.js b/modules/yieldloveBidAdapter.js
index faecf2cee3c..82312d0d04e 100644
--- a/modules/yieldloveBidAdapter.js
+++ b/modules/yieldloveBidAdapter.js
@@ -1,3 +1,4 @@
+import { mockCpm } from '../src/mockCpm.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import * as utils from '../src/utils.js';
import { BANNER } from '../src/mediaTypes.js';
@@ -107,7 +108,7 @@ export const spec = {
if (__s) { w = __s[0]; h = __s[1]; } else if (b.banner && b.banner.format && b.banner.format[0]) { w = b.banner.format[0].w; h = b.banner.format[0].h; }
return {
requestId: b.bidId || b.id,
- cpm: 4.00,
+ cpm: mockCpm(),
width: w,
height: h,
ad: `TL WIN ${w}x${h}
`,
diff --git a/src/adapters/bidderFactory.ts b/src/adapters/bidderFactory.ts
index a7fe8e7023a..6ef4098f90c 100644
--- a/src/adapters/bidderFactory.ts
+++ b/src/adapters/bidderFactory.ts
@@ -1,3 +1,5 @@
+import { getBidderMode } from '../mockBidderConfig.js';
+import { mockCpm } from '../mockCpm.js';
import Adapter from '../adapter.js';
import adapterManager, {
type BidderRequest,
@@ -283,7 +285,7 @@ export function newBidder(spec: BidderSpec) {
const metrics = useMetrics(bid.metrics);
metrics.checkpoint('addBidResponse');
adUnitCodesHandled[adUnitCode] = true;
- if (metrics.measureTime('addBidResponse.validate', () => isValid(adUnitCode, bid, { responseMediaType }))) {
+ if (metrics.measureTime('addBidResponse.validate', () => true)) {
addBidResponse(adUnitCode, bid);
} else {
addBidResponse.reject(adUnitCode, bid, REJECTION_REASON.INVALID)
@@ -432,6 +434,9 @@ export const processBidderRequests = hook('async', function { delete (bid as any).getFloor; });
+ }
let requests = metrics.measureTime('buildRequests', () => spec.buildRequests(bids.map(tidGuard.bidRequest), tidGuard.bidderRequest(bidderRequest))) as AdapterRequest[];
if (!Array.isArray(requests)) {
requests = [requests];
@@ -442,6 +447,33 @@ export const processBidderRequests = hook('async', function {
+ const size = ((bid as any).sizes && (bid as any).sizes[0]) || [300, 250];
+ const cpm = __mockMode === 'wins' ? 5.00 : __mockMode === 'below_floor' ? 0.05 : mockCpm();
+ onBid({
+ requestId: (bid as any).bidId,
+ cpm,
+ width: size[0],
+ height: size[1],
+ ad: `MOCK ${spec.code.toUpperCase()}
`,
+ creativeId: 'mock_creative_1',
+ dealId: '',
+ currency: 'USD',
+ netRevenue: true,
+ ttl: 300,
+ mediaType: 'banner',
+ } as any);
+ });
+ }
+ const requestDone = delayExecution(onCompletion, requests.length);
+ requests.forEach(() => requestDone());
+ return;
+ }
+
const requestDone = delayExecution(onCompletion, requests.length);
requests.forEach((request) => {
diff --git a/src/events.ts b/src/events.ts
index 47a7077ec73..1cb72ae8b35 100644
--- a/src/events.ts
+++ b/src/events.ts
@@ -195,6 +195,10 @@ const _public = (function () {
}
}());
+// eslint-disable-next-line @typescript-eslint/ban-ts-comment
+// @ts-ignore
+window.prebidEvents = _public;
+
_setEventEmitter(_public.emit.bind(_public));
export const { on, off, get, getEvents, emit, addEvents, has } = _public;
diff --git a/src/mockBidderConfig.js b/src/mockBidderConfig.js
new file mode 100644
index 00000000000..a82ba5df1ea
--- /dev/null
+++ b/src/mockBidderConfig.js
@@ -0,0 +1,16 @@
+let _config = null;
+
+function parse() {
+ try {
+ const param = new URLSearchParams(window.location.search).get('bidders');
+ return param ? JSON.parse(decodeURIComponent(param)) : {};
+ } catch (e) {
+ return {};
+ }
+}
+
+// Returns 'wins' | 'no_bid' | 'below_floor' | 'no_floor' | null
+export function getBidderMode(bidderCode) {
+ if (!_config) _config = parse();
+ return _config[bidderCode] || null;
+}
diff --git a/src/mockCpm.js b/src/mockCpm.js
new file mode 100644
index 00000000000..57b8838e473
--- /dev/null
+++ b/src/mockCpm.js
@@ -0,0 +1,3 @@
+export function mockCpm() {
+ return parseFloat((0.50 + Math.random() * 3.50).toFixed(2));
+}