Module Name: Brave Bidder Adapter
Module Type: Bidder Adapter
Maintainer: [email protected]
Module which connects to Brave SSP demand sources
250x300 banner test
var adUnits = [{
code: 'brave-prebid',
mediaTypes: {
banner: {
sizes: [[300, 250]]
}
},
bids: [{
bidder: 'brave',
params : {
placementId : "to0QI2aPgkbBZq6vgf0oHitouZduz0qw" // test placementId, please replace after test
}
}]
}];
native test
var adUnits = [{
code: 'brave-native-prebid',
mediaTypes: {
native: {
title: {
required: true,
len: 800
},
image: {
required: true,
len: 80
},
sponsoredBy: {
required: true
},
clickUrl: {
required: true
},
privacyLink: {
required: false
},
body: {
required: true
},
icon: {
required: true,
sizes: [50, 50]
}
}
},
bids: [{
bidder: 'brave',
params: {
placementId : "to0QI2aPgkbBZq6vgf0oHitouZduz0qw" // test placementId, please replace after test
}
}]
}];
video test
var adUnits = [{
code: 'brave-video-prebid',
mediaTypes: {
video: {
minduration:1,
maxduration:999,
boxingallowed:1,
skip:0,
mimes:[
'application/javascript',
'video/mp4'
],
playerSize: [[768, 1024]],
protocols:[
2,3
],
linearity:1,
api:[
1,
2
]
}
},
bids: [{
bidder: 'brave',
params: {
placementId : "to0QI2aPgkbBZq6vgf0oHitouZduz0qw" // test placementId, please replace after test
}
}]
}];
Name | Scope | Type | Description | Example |
---|---|---|---|---|
placementId |
required | String | The placement ID from Brave | "to0QI2aPgkbBZq6vgf0oHitouZduz0qw" |
<!-- Prebid Config section -->
<script>
var PREBID_TIMEOUT = 700;
var adUnits = [{
code: 'brave-prebid',
sizes: [[300, 250]],
bids: [{
bidder: 'brave'
placementId : "PUT_YOUR_brave_placementId",
}]
}];
var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];
</script>
<!-- End Prebid Config section -->