Bitmedia
Features
Bidder Code | bitmedia | Prebid.org Member | no |
---|---|---|---|
Prebid.js Adapter | yes | Prebid Server Adapter | no |
Media Types | display | Multi Format Support | will-not-bid |
TCF-EU Support | no | IAB GVL ID | none |
GPP Support | none | DSA Support | check with bidder |
USP/CCPA Support | no | COPPA Support | no |
Supply Chain Support | no | Demand Chain Support | no |
Safeframes OK | yes | Supports Deals | no |
Floors Module Support | yes | First Party Data Support | no |
User IDs | none | ORTB Blocking Support | no |
Privacy Sandbox | check with bidder |
Table of Contents
Description
The Bitmedia Bid Adapter allows publishers to integrate with BitmediaIO for banner advertising.
Key Points
- Supported Media Type: Banner
- Bids are only provided in USD.
- Access to local storage is optional.
Before using this adapter, simply create a publisher account on our platform to obtain your adUnitID
.
More about us: https://bitmedia.io
Bid Params
Name | Scope | Description | Example | Type |
---|---|---|---|---|
adUnitID |
required | The ad unit ID from Bitmedia | 'exampleAdUnitID' |
string |
currency |
optional | Currency of the bid (default: USD) | 'USD' |
string |
Test Parameters
Example
var adUnits = [
{
code: 'banner-div',
mediaTypes: {
banner: {
sizes: [[300, 250], [300, 600]],
},
},
bids: [{
bidder: 'bitmedia',
params: {
adUnitID: 'exampleAdUnitID',
currency: 'USD',
},
}],
},
];
Testing Instructions
The HTML file below can be used to test the integration of the Bitmedia Bid Adapter.
Simple Test HTML
Prebid note: please review with your legal counsel before enabling storageAllowed. Bidders utilizing browser storage may trigger the need for additional disclosures in your privacy policy and may imply that the bid adapter is performing an activity redundant with user ID systems like SharedID. See the ePrivacy Directive article 5(3) reference to ‘comprehensive information’.
<!--
This page runs an auction for 2 adunits, simply displaying the results
rather than sending targeting to an ad server.
Notes:
- this approach assumes that the adunit.code is the div name. There
are many other ways to match the adunit to the div.
- this approach won't work for refreshed adunits. For that scenario
you'll need to be more surgical about what's passed into the bidsbackhandler.
- there's not a separate failsafe timeout here. Since there's no call to
an ad server waiting impatiently, Prebid's the only ad game in town and its
timeout is sufficient.
-->
<html>
<head>
<!-- Your prebid build with Bitmedia adapter included -->
<script type="text/javascript" src="Should_Include_Bitmedia_Adapter/prebid.js" async></script>
<script>
var adUnits = [
{
code: 'test-div',
mediaTypes: {
banner: {
sizes: [
[300, 600],
[300, 250]
]
}
},
bids: [
{
bidder: 'bitmedia',
params: {
adUnitID: 'exampleAdUnitID',
currency: 'USD'
},
},
]
},
{
code: 'test-div2',
mediaTypes: {
banner: {
sizes: [[320, 100]]
}
},
bids: [{
bidder: 'bitmedia',
params: {
adUnitID: 'exampleAdUnitID',
currency: 'USD'
}
}]
}
];
var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];
</script>
<!-- Your prebid settings -->
<script>
pbjs.que.push(function () {
pbjs.setConfig({
debug: true,
});
pbjs.bidderSettings = {
bitmedia: {
storageAllowed: true, // recommended
},
};
});
</script>
<script>
pbjs.que.push(function() {
pbjs.addAdUnits(adUnits);
});
// you could instead pass an array of adUnits
// to getHighestCpmBids() if desired
function renderAllAdUnits() {
var winners=pbjs.getHighestCpmBids();
for (var i = 0; i < winners.length; i++) {
renderOne(winners[i]);
}
}
function renderOne(winningBid) {
if (winningBid && winningBid.adId) {
var div = document.getElementById(winningBid.adUnitCode);
if (div) {
let iframe = document.createElement('iframe');
iframe.frameBorder = '0';
div.appendChild(iframe);
var iframeDoc = iframe.contentWindow.document;
pbjs.renderAd(iframeDoc, winningBid.adId);
}
}
}
</script>
<script>
pbjs.que.push(function() {
pbjs.requestBids({
timeout: 2000,
bidsBackHandler: renderAllAdUnits
});
});
</script>
</head>
<body>
<h2>Ad Serverless Test Page</h2>
<div id='test-div'></div>
<br/>
<div id='test-div2'></div>
</body>
</html>
"Send All Bids" Ad Server Keys
These are the bidder-specific keys that would be targeted within GAM in a Send-All-Bids scenario. GAM truncates keys to 20 characters.hb_pb_bitmedia |
hb_bidder_bitmedia |
hb_adid_bitmedia |
hb_size_bitmedia |
hb_source_bitmedia |
hb_format_bitmedia |
hb_cache_host_bitmed |
hb_cache_id_bitmedia |
hb_uuid_bitmedia |
hb_cache_path_bitmed |
hb_deal_bitmedia |