Developers · Header bidding
Header-bidding adapter
Bid adapter module for the open-source Prebid.js header-bidding wrapper. Bidder code "msads", banner / display, first-price.
Module Live
The adapter source is published at msadsnetwork.com/prebid/msadsBidAdapter.js. Build it into your wrapper bundle as msadsBidAdapter. It sends one request per auction to https://msadsnetwork.com/hb/v1/bid.
Ad unit configuration
var adUnits = [{
code: 'div-top-300x250',
mediaTypes: { banner: { sizes: [[300, 250], [336, 280]] } },
bids: [{ bidder: 'msads', params: { placementId: 'YOUR_UNIT_CODE' } }]
}];
pbjs.que.push(function () {
pbjs.addAdUnits(adUnits);
pbjs.requestBids({ bidsBackHandler: sendAdserverRequest });
});| Param | Type | Description | |
|---|---|---|---|
placementId | string | R | Unit code from the MS Ads Network dashboard (1–64 chars, A–Z a–z 0–9 _ -). |
Behaviour
- Media types: banner / display only.
- Floors: uses the wrapper floor module when present (USD).
- Rendering: creatives render inside a SafeFrame-compatible container when available.