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

prebid / Prebid.js / 16809528788

07 Aug 2025 03:57PM UTC coverage: 96.254%. Remained the same
16809528788

push

github

web-flow
Risemediatech Bid Adapter : New Bidder Adapter (#13600)

* RM-845 : Initial implementation for risemediatech bid adapter

* RM-845 : Added bidder parameter documentation for risemediatech Bid Adapter

* RM-845 : minor modifications

* RM-845 : Handled es lint errors

* RM-847 : Unit Test for Risemediatech Bid Adapter

* Updated unit tests

* Modified the bid adapter code and unit tests

* Modified prebid js code to remove validations and also added bidfloor to the request.

* added the vastxml field in the response for the video media type

* Fixed incorrect media type issue

* Added test mode impressions support

* Added test mode for video ad units

* Added bidfloor for example video ad unit

* Updated default TTL

* Minro fixes

* Update docs

* Minor changes

* Minor changes

* Code cleanup

* Changes as per review

* Semantic changes

* Added support for Http Status 204 No Bids Scenarios

* Updated failing unit tests.

* Modified the check for no bids

* Reverted the status check

* linter modifications

* Updated the documentation for the adapter and formatted adapter

* Modified the documentation as per discussion

* Resolved linter errors from upstream repo PR

39576 of 48646 branches covered (81.36%)

237 of 244 new or added lines in 2 files covered. (97.13%)

148 existing lines in 17 files now uncovered.

195874 of 203497 relevant lines covered (96.25%)

123.67 hits per line

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

95.45
/modules/debugging/pbsInterceptor.js
1
export function makePbsInterceptor({createBid, utils}) {
3✔
2
  const {deepClone, delayExecution} = utils;
3✔
3
  return function pbsBidInterceptor(next, interceptBids, s2sBidRequest, bidRequests, ajax, {
3✔
4
    onResponse,
5
    onError,
6
    onBid,
7
    onFledge,
8
  }) {
7✔
9
    let responseArgs;
10
    const done = delayExecution(() => onResponse(...responseArgs), bidRequests.length + 1)
7✔
11
    function signalResponse(...args) {
8✔
12
      responseArgs = args;
4✔
13
      done();
4✔
14
    }
15
    function addBid(bid, bidRequest) {
16
      onBid({
2✔
17
        adUnit: bidRequest.adUnitCode,
18
        bid: Object.assign(createBid(bidRequest), {requestBidder: bidRequest.bidder}, bid)
19
      })
20
    }
21
    bidRequests = bidRequests
7✔
22
      .map((req) => interceptBids({
18✔
23
        bidRequest: req,
24
        addBid,
25
        addPaapiConfig(config, bidRequest, bidderRequest) {
UNCOV
26
          onFledge({
×
27
            adUnitCode: bidRequest.adUnitCode,
28
            ortb2: bidderRequest.ortb2,
29
            ortb2Imp: bidRequest.ortb2Imp,
30
            ...config
31
          })
32
        },
33
        done
34
      }).bidRequest)
35
      .filter((req) => req.bids.length > 0)
18✔
36

37
    if (bidRequests.length > 0) {
7✔
38
      const bidIds = new Set();
4✔
39
      bidRequests.forEach((req) => req.bids.forEach((bid) => bidIds.add(bid.bidId)));
12✔
40
      s2sBidRequest = deepClone(s2sBidRequest);
4✔
41
      s2sBidRequest.ad_units.forEach((unit) => {
4✔
42
        unit.bids = unit.bids.filter((bid) => bidIds.has(bid.bid_id));
32✔
43
      })
44
      s2sBidRequest.ad_units = s2sBidRequest.ad_units.filter((unit) => unit.bids.length > 0);
12✔
45
      next(s2sBidRequest, bidRequests, ajax, {onResponse: signalResponse, onError, onBid});
4✔
46
    } else {
47
      signalResponse(true, []);
3✔
48
    }
49
  }
50
}
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