Skip to content

Commit

Permalink
Marsmedia bid adapter (#2729)
Browse files Browse the repository at this point in the history
* Change params, add description

* Add support for gdpr, schain and video

* change param from ZoneId to zoneId
remove rows: top_nav_section , nav_section

* change param from ZoneId to zoneId
remove rows: top_nav_section , nav_section

* New adapter - videofy

* add updated supported, add example
  • Loading branch information
vladi-mmg authored Mar 3, 2021
1 parent 3cb7cb5 commit 2c1a526
Showing 1 changed file with 61 additions and 0 deletions.
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
}
}],
...
}
```

0 comments on commit 2c1a526

Please sign in to comment.