Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marsmedia bid adapter #2729

Merged
merged 10 commits into from
Mar 3, 2021
61 changes: 61 additions & 0 deletions dev-docs/bidders/marsmedia.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ pbs: true
biddercode: marsmedia
media_types: video, banner
gdpr_supported: true
tcf2_supported: true
getFloor: true
schain_supported: true
usp_supported: true
coppa_supported: true
---

### Bid Params
Expand All @@ -16,3 +20,60 @@ schain_supported: true
| Name | Scope | Description | Example | Type |
|---------------|----------|-------------|---------|----------|
| zoneId | required | The zone ID from Mars Media Group. | 9999 | integer |


### Banner - Ad Unit Setup
```javascript
var adUnits = [
{
code: 'marsmedia-ad-123456-1', // ad slot HTML element ID
mediaTypes: {
banner: {
sizes: [
[300, 250]
]
}
}
bids: [{
bidder: 'marsmedia',
params: {
zoneId: 9999 // required
}
}]
}
```

### Instream Video - Ad Unit Setup
```javascript
var adUnits = [
{
code: 'marsmedia-ad-123456-1', // ad slot HTML element ID
mediaTypes: {
video: { // We recommend setting the following video params
// in Ad Unit rather than bidder params as per Prebid 4.0 recommendation.
playerSize: [300, 250], // required
context: 'instream', // required
mimes: ['video/mp4','video/x-flv'], // required
protocols: [ 2, 3 ], // required, set at least 1 value in array
placement: 1, // optional, defaults to 1 when context = instream
startdelay: 0, // optional, defaults to 0 when context = instream
api: [ 1, 2 ], // optional
skip: 0, // optional
minduration: 5, // optional
maxduration: 30, // optional
playbackmethod: [1,3], // optional
battr: [ 13, 14 ], // optional
linearity: 1, // optional
minbitrate: 10, // optional
maxbitrate: 10 // optional
}
},
bids: [{
bidder: 'marsmedia',
params: {
zoneId: 9999 // required
}
}],
...
}
```