• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

prebid / Prebid.js / 19437775255

17 Nov 2025 05:00PM UTC coverage: 96.213% (-0.02%) from 96.231%
19437775255

push

github

web-flow
sevioBidAdapter_bugfix: Send all sizes instead of just maxSize (#14133)

* Send all sizes instead of just maxSize

* Added tests to cover modifs in the sizes that we are sending

53222 of 65234 branches covered (81.59%)

10 of 10 new or added lines in 2 files covered. (100.0%)

304 existing lines in 58 files now uncovered.

202715 of 210693 relevant lines covered (96.21%)

71.77 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

82.0
/modules/datablocksBidAdapter.js
1
import {deepAccess, getWinDimensions, getWindowTop, isEmpty, isGptPubadsDefined} from '../src/utils.js';
1✔
2
import {registerBidder} from '../src/adapters/bidderFactory.js';
3
import {config} from '../src/config.js';
4
import {BANNER, NATIVE} from '../src/mediaTypes.js';
5
import {getStorageManager} from '../src/storageManager.js';
6
import {ajax} from '../src/ajax.js';
7
import {convertOrtbRequestToProprietaryNative} from '../src/native.js';
8
import {getAdUnitSizes} from '../libraries/sizeUtils/sizeUtils.js';
9
import {isWebdriverEnabled} from '../libraries/webdriver/webdriver.js';
10

11
export const storage = getStorageManager({bidderCode: 'datablocks'});
1✔
12

13
const NATIVE_ID_MAP = {};
1✔
14
const NATIVE_PARAMS = {
1✔
15
  title: {
16
    id: 1,
17
    name: 'title'
18
  },
19
  icon: {
20
    id: 2,
21
    type: 1,
22
    name: 'img'
23
  },
24
  image: {
25
    id: 3,
26
    type: 3,
27
    name: 'img'
28
  },
29
  body: {
30
    id: 4,
31
    name: 'data',
32
    type: 2
33
  },
34
  sponsoredBy: {
35
    id: 5,
36
    name: 'data',
37
    type: 1
38
  },
39
  cta: {
40
    id: 6,
41
    type: 12,
42
    name: 'data'
43
  },
44
  body2: {
45
    id: 7,
46
    name: 'data',
47
    type: 10
48
  },
49
  rating: {
50
    id: 8,
51
    name: 'data',
52
    type: 3
53
  },
54
  likes: {
55
    id: 9,
56
    name: 'data',
57
    type: 4
58
  },
59
  downloads: {
60
    id: 10,
61
    name: 'data',
62
    type: 5
63
  },
64
  displayUrl: {
65
    id: 11,
66
    name: 'data',
67
    type: 11
68
  },
69
  price: {
70
    id: 12,
71
    name: 'data',
72
    type: 6
73
  },
74
  salePrice: {
75
    id: 13,
76
    name: 'data',
77
    type: 7
78
  },
79
  address: {
80
    id: 14,
81
    name: 'data',
82
    type: 9
83
  },
84
  phone: {
85
    id: 15,
86
    name: 'data',
87
    type: 8
88
  }
89
};
90

91
Object.keys(NATIVE_PARAMS).forEach((key) => {
1✔
92
  NATIVE_ID_MAP[NATIVE_PARAMS[key].id] = key;
15✔
93
});
94

95
// DEFINE THE PREBID BIDDER SPEC
96
export const spec = {
1✔
97
  supportedMediaTypes: [BANNER, NATIVE],
98
  code: 'datablocks',
99

100
  // DATABLOCKS SCOPED OBJECT
101
  db_obj: {metrics_host: 'prebid.dblks.net', metrics: [], metrics_timer: null, metrics_queue_time: 1000, vis_optout: false, source_id: 0},
102

103
  // STORE THE DATABLOCKS BUYERID IN STORAGE
104
  store_dbid: function(dbid) {
105
    let stored = false;
2✔
106

107
    // CREATE 1 YEAR EXPIRY DATE
108
    const d = new Date();
2✔
109
    d.setTime(Date.now() + (365 * 24 * 60 * 60 * 1000));
2✔
110

111
    // TRY TO STORE IN COOKIE
112
    if (storage.cookiesAreEnabled) {
2✔
113
      storage.setCookie('_db_dbid', dbid, d.toUTCString(), 'None', null);
2✔
114
      stored = true;
2✔
115
    }
116

117
    // TRY TO STORE IN LOCAL STORAGE
118
    if (storage.localStorageIsEnabled) {
2✔
119
      storage.setDataInLocalStorage('_db_dbid', dbid);
2✔
120
      stored = true;
2✔
121
    }
122

123
    return stored;
2✔
124
  },
125

126
  // FETCH DATABLOCKS BUYERID FROM STORAGE
127
  get_dbid: function() {
128
    let dbId = '';
3✔
129
    if (storage.cookiesAreEnabled) {
3✔
130
      dbId = storage.getCookie('_db_dbid') || '';
3✔
131
    }
132

133
    if (!dbId && storage.localStorageIsEnabled) {
3✔
134
      dbId = storage.getDataFromLocalStorage('_db_dbid') || '';
3✔
135
    }
136
    return dbId;
3✔
137
  },
138

139
  // STORE SYNCS IN STORAGE
140
  store_syncs: function(syncs) {
141
    if (storage.localStorageIsEnabled) {
1✔
142
      const syncObj = {};
1✔
143
      syncs.forEach(sync => {
1✔
144
        syncObj[sync.id] = sync.uid;
1✔
145
      });
146

147
      // FETCH EXISTING SYNCS AND MERGE NEW INTO STORAGE
148
      const storedSyncs = this.get_syncs();
1✔
149
      storage.setDataInLocalStorage('_db_syncs', JSON.stringify(Object.assign(storedSyncs, syncObj)));
1✔
150

151
      return true;
1✔
152
    }
153
  },
154

155
  // GET SYNCS FROM STORAGE
156
  get_syncs: function() {
157
    if (storage.localStorageIsEnabled) {
3!
158
      const syncData = storage.getDataFromLocalStorage('_db_syncs');
3✔
159
      if (syncData) {
3!
160
        return JSON.parse(syncData);
×
161
      } else {
162
        return {};
3✔
163
      }
164
    } else {
165
      return {};
×
166
    }
167
  },
168

169
  // ADD METRIC DATA TO THE METRICS RESPONSE QUEUE
170
  queue_metric: function(metric) {
171
    if (typeof metric === 'object') {
×
172
      // PUT METRICS IN THE QUEUE
173
      this.db_obj.metrics.push(metric);
×
174

175
      // RESET PREVIOUS TIMER
176
      if (this.db_obj.metrics_timer) {
×
177
        clearTimeout(this.db_obj.metrics_timer);
×
178
      }
179

180
      // SETUP THE TIMER TO FIRE BACK THE DATA
181
      const scope = this;
×
182
      this.db_obj.metrics_timer = setTimeout(function() {
×
183
        scope.send_metrics();
×
184
      }, this.db_obj.metrics_queue_time);
185

186
      return true;
×
187
    } else {
188
      return false;
×
189
    }
190
  },
191

192
  // POST CONSOLIDATED METRICS BACK TO SERVER
193
  send_metrics: function() {
194
    // POST TO SERVER
195
    ajax(`https://${this.db_obj.metrics_host}/a/pb/`, null, JSON.stringify(this.db_obj.metrics), {method: 'POST', withCredentials: true});
×
196

197
    // RESET THE QUEUE OF METRIC DATA
198
    this.db_obj.metrics = [];
×
199

200
    return true;
×
201
  },
202

203
  // GET BASIC CLIENT INFORMATION
204
  get_client_info: function () {
205
    const botTest = new BotClientTests();
2✔
206
    const win = getWindowTop();
2✔
207
    const windowDimensions = getWinDimensions();
2✔
208
    return {
2✔
209
      'wiw': windowDimensions.innerWidth,
210
      'wih': windowDimensions.innerHeight,
211
      'saw': windowDimensions.screen.availWidth,
212
      'sah': windowDimensions.screen.availHeight,
213
      'scd': windowDimensions.screen.colorDepth,
214
      'sw': windowDimensions.screen.width,
215
      'sh': windowDimensions.screen.height,
216
      'whl': win.history.length,
217
      'wxo': win.pageXOffset,
218
      'wyo': win.pageYOffset,
219
      'wpr': win.devicePixelRatio,
220
      'is_bot': botTest.doTests(),
221
      'is_hid': win.document.hidden,
222
      'vs': win.document.visibilityState
223
    };
224
  },
225

226
  // LISTEN FOR GPT VIEWABILITY EVENTS
227
  get_viewability: function(bid) {
228
    // ONLY RUN ONCE IF PUBLISHER HAS OPTED IN
229
    if (!this.db_obj.vis_optout && !this.db_obj.vis_run) {
2✔
230
      this.db_obj.vis_run = true;
1✔
231

232
      // ADD GPT EVENT LISTENERS
233
      const scope = this;
1✔
234
      if (isGptPubadsDefined()) {
1✔
235
        if (typeof window['googletag'].pubads().addEventListener === 'function') {
1✔
236
          // TODO: fix auctionId leak: https://github.com/prebid/Prebid.js/issues/9781
237
          window['googletag'].pubads().addEventListener('impressionViewable', function(event) {
1✔
238
            scope.queue_metric({type: 'slot_view', source_id: scope.db_obj.source_id, auction_id: bid.auctionId, div_id: event.slot.getSlotElementId(), slot_id: event.slot.getSlotId().getAdUnitPath()});
×
239
          });
240
          window['googletag'].pubads().addEventListener('slotRenderEnded', function(event) {
1✔
241
            scope.queue_metric({type: 'slot_render', source_id: scope.db_obj.source_id, auction_id: bid.auctionId, div_id: event.slot.getSlotElementId(), slot_id: event.slot.getSlotId().getAdUnitPath()});
×
242
          })
243
        }
244
      }
245
    }
246
  },
247

248
  // VALIDATE THE BID REQUEST
249
  isBidRequestValid: function(bid) {
250
    // SET GLOBAL VARS FROM BIDDER CONFIG
251
    this.db_obj.source_id = bid.params.source_id;
3✔
252
    if (bid.params.vis_optout) {
3✔
253
      this.db_obj.vis_optout = true;
1✔
254
    }
255

256
    return !!(bid.params.source_id && bid.mediaTypes && (bid.mediaTypes.banner || bid.mediaTypes.native));
3!
257
  },
258

259
  // GENERATE THE RTB REQUEST
260
  buildRequests: function(validRequests, bidderRequest) {
261
    // convert Native ORTB definition to old-style prebid native definition
262
    validRequests = convertOrtbRequestToProprietaryNative(validRequests);
2✔
263

264
    // RETURN EMPTY IF THERE ARE NO VALID REQUESTS
265
    if (!validRequests.length) {
2✔
266
      return [];
1✔
267
    }
268

269
    // CONVERT PREBID NATIVE REQUEST OBJ INTO RTB OBJ
270
    function createNativeRequest(bid) {
271
      const assets = [];
1✔
272
      if (bid.nativeParams) {
1✔
273
        Object.keys(bid.nativeParams).forEach((key) => {
1✔
274
          if (NATIVE_PARAMS[key]) {
3✔
275
            const {name, type, id} = NATIVE_PARAMS[key];
3✔
276
            const assetObj = type ? {type} : {};
3✔
277
            let {len, sizes, required, aspect_ratios: aRatios} = bid.nativeParams[key];
3✔
278
            if (len) {
3!
279
              assetObj.len = len;
×
280
            }
281
            if (aRatios && aRatios[0]) {
3!
282
              aRatios = aRatios[0];
×
283
              const wmin = aRatios.min_width || 0;
×
284
              const hmin = aRatios.ratio_height * wmin / aRatios.ratio_width | 0;
×
285
              assetObj.wmin = wmin;
×
286
              assetObj.hmin = hmin;
×
287
            }
288
            if (sizes && sizes.length) {
3✔
289
              sizes = [].concat(...sizes);
1✔
290
              assetObj.w = sizes[0];
1✔
291
              assetObj.h = sizes[1];
1✔
292
            }
293
            const asset = {required: required ? 1 : 0, id};
3!
294
            asset[name] = assetObj;
3✔
295
            assets.push(asset);
3✔
296
          }
297
        });
298
      }
299
      return {
1✔
300
        ver: '1.2',
301
        request: {
302
          assets: assets,
303
          context: 1,
304
          plcmttype: 1,
305
          ver: '1.2'
306
        }
307
      }
308
    }
309
    const imps = [];
1✔
310
    // ITERATE THE VALID REQUESTS AND GENERATE IMP OBJECT
311
    validRequests.forEach(bidRequest => {
1✔
312
      // BUILD THE IMP OBJECT
313
      const imp = {
3✔
314
        id: bidRequest.bidId,
315
        tagid: bidRequest.params.tagid || bidRequest.adUnitCode,
6✔
316
        placement_id: bidRequest.params.placement_id || 0,
6✔
317
        secure: window.location.protocol === 'https:',
318
        ortb2: deepAccess(bidRequest, `ortb2Imp`) || {},
6✔
319
        floor: {}
320
      }
321

322
      // CHECK FOR FLOORS
323
      if (typeof bidRequest.getFloor === 'function') {
3!
324
        imp.floor = bidRequest.getFloor({
×
325
          currency: 'USD',
326
          mediaType: '*',
327
          size: '*'
328
        });
329
      }
330

331
      // BUILD THE SIZES
332
      if (deepAccess(bidRequest, `mediaTypes.banner`)) {
3✔
333
        const sizes = getAdUnitSizes(bidRequest);
2✔
334
        if (sizes.length) {
2✔
335
          imp.banner = {
2✔
336
            w: sizes[0][0],
337
            h: sizes[0][1],
338
            format: sizes.map(size => ({ w: size[0], h: size[1] }))
2✔
339
          };
340

341
          // ADD TO THE LIST OF IMP REQUESTS
342
          imps.push(imp);
2✔
343
        }
344
      } else if (deepAccess(bidRequest, `mediaTypes.native`)) {
1✔
345
        // ADD TO THE LIST OF IMP REQUESTS
346
        imp.native = createNativeRequest(bidRequest);
1✔
347
        imps.push(imp);
1✔
348
      }
349
    });
350

351
    // RETURN EMPTY IF THERE WERE NO PROPER ADUNIT REQUESTS TO BE MADE
352
    if (!imps.length) {
1!
353
      return [];
×
354
    }
355

356
    // GENERATE SITE OBJECT
357
    const site = {
1✔
358
      domain: window.location.host,
359
      // TODO: is 'page' the right value here?
360
      page: bidderRequest.refererInfo.page,
361
      schain: validRequests[0]?.ortb2?.source?.ext?.schain || {},
7!
362
      ext: {
363
        p_domain: bidderRequest.refererInfo.domain,
364
        rt: bidderRequest.refererInfo.reachedTop,
365
        frames: bidderRequest.refererInfo.numIframes,
366
        stack: bidderRequest.refererInfo.stack,
367
        timeout: config.getConfig('bidderTimeout')
368
      },
369
    };
370

371
    // ADD REF URL IF FOUND
372
    if (self === top && document.referrer) {
1!
373
      site.ref = document.referrer;
×
374
    }
375

376
    // ADD META KEYWORDS IF FOUND
377
    const keywords = document.getElementsByTagName('meta')['keywords'];
1✔
378
    if (keywords && keywords.content) {
1!
379
      site.keywords = keywords.content;
×
380
    }
381

382
    // GENERATE DEVICE OBJECT
383
    const device = {
1✔
384
      ip: 'peer',
385
      ua: window.navigator.userAgent,
386
      js: 1,
387
      language: ((navigator.language || navigator.userLanguage || '').split('-'))[0] || 'en',
2!
388
      buyerid: this.get_dbid() || 0,
2✔
389
      ext: {
390
        pb_eids: validRequests[0].userIdAsEids || {},
2✔
391
        syncs: this.get_syncs() || {},
1!
392
        coppa: config.getConfig('coppa') || 0,
2✔
393
        gdpr: bidderRequest.gdprConsent || {},
2✔
394
        usp: bidderRequest.uspConsent || {},
2✔
395
        client_info: this.get_client_info(),
396
        ortb2: bidderRequest.ortb2 || {}
2✔
397
      }
398
    };
399

400
    const sourceId = validRequests[0].params.source_id || 0;
1!
401
    const host = validRequests[0].params.host || 'prebid.dblks.net';
1!
402

403
    // RETURN WITH THE REQUEST AND PAYLOAD
404
    return {
1✔
405
      method: 'POST',
406
      url: `https://${host}/openrtb/?sid=${sourceId}`,
407
      data: {
408
        id: bidderRequest.bidderRequestId,
409
        imp: imps,
410
        site: site,
411
        device: device
412
      },
413
      options: {
414
        withCredentials: true
415
      }
416
    };
417
  },
418

419
  // INITIATE USER SYNCING
420
  getUserSyncs: function(options, rtbResponse, gdprConsent) {
421
    const syncs = [];
1✔
422
    const bidResponse = rtbResponse?.[0]?.body ?? null;
1!
423
    const scope = this;
1✔
424

425
    // LISTEN FOR SYNC DATA FROM IFRAME TYPE SYNC
426
    window.addEventListener('message', function (event) {
1✔
UNCOV
427
      if (event.data.sentinel && event.data.sentinel === 'dblks_syncData') {
×
428
        // STORE FOUND SYNCS
429
        if (event.data.syncs) {
×
430
          scope.store_syncs(event.data.syncs);
×
431
        }
432
      }
433
    });
434

435
    // POPULATE GDPR INFORMATION
436
    const gdprData = {
1✔
437
      gdpr: 0,
438
      gdprConsent: ''
439
    }
440
    if (typeof gdprConsent === 'object') {
1✔
441
      if (typeof gdprConsent.gdprApplies === 'boolean') {
1!
442
        gdprData.gdpr = Number(gdprConsent.gdprApplies);
1✔
443
        gdprData.gdprConsent = gdprConsent.consentString;
1✔
444
      } else {
445
        gdprData.gdprConsent = gdprConsent.consentString;
×
446
      }
447
    }
448

449
    // EXTRACT BUYERID COOKIE VALUE FROM BID RESPONSE AND PUT INTO STORAGE
450
    let dbBuyerId = this.get_dbid() || '';
1✔
451
    if (bidResponse.ext && bidResponse.ext.buyerid) {
1✔
452
      dbBuyerId = bidResponse.ext.buyerid;
1✔
453
      this.store_dbid(dbBuyerId);
1✔
454
    }
455

456
    // EXTRACT USERSYNCS FROM BID RESPONSE
457
    if (bidResponse.ext && bidResponse.ext.syncs) {
1✔
458
      bidResponse.ext.syncs.forEach(sync => {
1✔
459
        if (checkValid(sync)) {
2✔
460
          syncs.push(addParams(sync));
2✔
461
        }
462
      })
463
    }
464

465
    // APPEND PARAMS TO SYNC URL
466
    function addParams(sync) {
467
      // PARSE THE URL
468
      try {
2✔
469
        const url = new URL(sync.url);
2✔
470
        const urlParams = {};
2✔
471
        for (const [key, value] of url.searchParams.entries()) {
2✔
472
          urlParams[key] = value;
×
473
        };
474

475
        // APPLY EXTRA VARS
476
        urlParams.gdpr = gdprData.gdpr;
2✔
477
        urlParams.gdprConsent = gdprData.gdprConsent;
2✔
478
        urlParams.bidid = bidResponse.bidid;
2✔
479
        urlParams.id = bidResponse.id;
2✔
480
        urlParams.uid = dbBuyerId;
2✔
481

482
        // REBUILD URL
483
        sync.url = `${url.origin}${url.pathname}?${Object.keys(urlParams).map(key => key + '=' + encodeURIComponent(urlParams[key])).join('&')}`;
10✔
484
      } catch (e) {};
485

486
      // RETURN THE REBUILT URL
487
      return sync;
2✔
488
    }
489

490
    // ENSURE THAT THE SYNC TYPE IS VALID AND HAS PERMISSION
491
    function checkValid(sync) {
492
      if (!sync.type || !sync.url) {
2!
493
        return false;
×
494
      }
495
      switch (sync.type) {
2!
496
        case 'iframe':
497
          return options.iframeEnabled;
1✔
498
        case 'image':
499
          return options.pixelEnabled;
1✔
500
        default:
501
          return false;
×
502
      }
503
    }
504
    return syncs;
1✔
505
  },
506

507
  // DATABLOCKS WON THE AUCTION - REPORT SUCCESS
508
  onBidWon: function(bid) {
509
    this.queue_metric({type: 'bid_won', source_id: bid.params[0].source_id, req_id: bid.requestId, slot_id: bid.adUnitCode, auction_id: bid.auctionId, size: bid.size, cpm: bid.cpm, pb: bid.adserverTargeting.hb_pb, rt: bid.timeToRespond, ttl: bid.ttl});
1✔
510
  },
511

512
  // TARGETING HAS BEEN SET
513
  onSetTargeting: function(bid) {
514
    // LISTEN FOR VIEWABILITY EVENTS
515
    this.get_viewability(bid);
1✔
516
  },
517

518
  // PARSE THE RTB RESPONSE AND RETURN FINAL RESULTS
519
  interpretResponse: function(rtbResponse, bidRequest) {
520
    // CONVERT NATIVE RTB RESPONSE INTO PREBID RESPONSE
521
    function parseNative(native) {
522
      const {assets, link, imptrackers, jstracker} = native;
1✔
523
      const result = {
1✔
524
        clickUrl: link.url,
525
        clickTrackers: link.clicktrackers || [],
2✔
526
        impressionTrackers: imptrackers || [],
1!
527
        javascriptTrackers: jstracker ? [jstracker] : []
1!
528
      };
529

530
      (assets || []).forEach((asset) => {
1!
531
        const {id, img, data, title} = asset;
3✔
532
        const key = NATIVE_ID_MAP[id];
3✔
533
        if (key) {
3✔
534
          if (!isEmpty(title)) {
3✔
535
            result.title = title.text
1✔
536
          } else if (!isEmpty(img)) {
2✔
537
            result[key] = {
1✔
538
              url: img.url,
539
              height: img.h,
540
              width: img.w
541
            }
542
          } else if (!isEmpty(data)) {
1✔
543
            result[key] = data.value;
1✔
544
          }
545
        }
546
      });
547

548
      return result;
1✔
549
    }
550

551
    const bids = [];
1✔
552
    const resBids = deepAccess(rtbResponse, 'body.seatbid') || [];
1!
553
    resBids.forEach(bid => {
1✔
554
      const resultItem = {requestId: bid.id, cpm: bid.price, creativeId: bid.crid, currency: bid.currency || 'USD', netRevenue: true, ttl: bid.ttl || 360, meta: {advertiserDomains: bid.adomain}};
3✔
555

556
      const mediaType = deepAccess(bid, 'ext.mtype') || '';
3!
557
      switch (mediaType) {
3!
558
        case 'banner':
559
          bids.push(Object.assign({}, resultItem, {mediaType: BANNER, width: bid.w, height: bid.h, ad: bid.adm}));
2✔
560
          break;
2✔
561

562
        case 'native':
563
          const nativeResult = JSON.parse(bid.adm);
1✔
564
          bids.push(Object.assign({}, resultItem, {mediaType: NATIVE, native: parseNative(nativeResult.native)}));
1✔
565
          break;
1✔
566

567
        default:
568
          break;
×
569
      }
570
    })
571

572
    return bids;
1✔
573
  }
574
};
575

576
// DETECT BOTS
577
export class BotClientTests {
578
  constructor() {
579
    this.tests = {
3✔
580
      headless_chrome: function() {
581
        // Warning: accessing navigator.webdriver may impact fingerprinting scores when this API is included in the built script.
582
        return isWebdriverEnabled();
3✔
583
      },
584

585
      selenium: function () {
586
        let response = false;
3✔
587

588
        if (window && document) {
3✔
589
          const results = [
3✔
590
            'webdriver' in window,
591
            '_Selenium_IDE_Recorder' in window,
592
            'callSelenium' in window,
593
            '_selenium' in window,
594
            '__webdriver_script_fn' in document,
595
            '__driver_evaluate' in document,
596
            '__webdriver_evaluate' in document,
597
            '__selenium_evaluate' in document,
598
            '__fxdriver_evaluate' in document,
599
            '__driver_unwrapped' in document,
600
            '__webdriver_unwrapped' in document,
601
            '__selenium_unwrapped' in document,
602
            '__fxdriver_unwrapped' in document,
603
            '__webdriver_script_func' in document,
604
            document.documentElement.getAttribute('selenium') !== null,
605
            document.documentElement.getAttribute('webdriver') !== null,
606
            document.documentElement.getAttribute('driver') !== null
607
          ];
608

609
          results.forEach(result => {
3✔
610
            if (result === true) {
51!
611
              response = true;
×
612
            }
613
          })
614
        }
615

616
        return response;
3✔
617
      },
618
    }
619
  }
620
  doTests() {
621
    let response = false;
3✔
622
    for (const i of Object.keys(this.tests)) {
3✔
623
      if (this.tests[i]() === true) {
6!
624
        response = true;
×
625
      }
626
    }
627
    return response;
3✔
628
  }
629
}
630

631
// INIT OUR BIDDER WITH PREBID
632
registerBidder(spec);
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc