Skip to content

Commit

Permalink
Merge pull request #4 from 33Across/XCH-1994_add_video_support
Browse files Browse the repository at this point in the history
Xch 1994:  Add video support
  • Loading branch information
curlyblueeagle authored Oct 21, 2020
2 parents 0452a4a + 4781ed1 commit 6e5b65d
Showing 1 changed file with 138 additions and 1 deletion.
139 changes: 138 additions & 1 deletion dev-docs/bidders/33across.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title: 33Across
description: Prebid 33Across Bidder Adapter
hide: true
biddercode: 33across
media_types: banner, video
gdpr_supported: true
schain_supported: true
usp_supported: true
Expand All @@ -16,4 +17,140 @@ usp_supported: true
| Name | Scope | Description | Example | Type |
|-------------|----------|--------------------------------------------------------------------------------------------------------------------------------|------------|----------|
| `siteId` | required | Publisher GUID from 33Across | `'examplePub123'` | `string` |
| `productId` | required | 33Across Product ID that the Publisher has registered for (use `'siab'` for standard supply and `'inview'` for renderer) | `'siab'` | `string` |
| `productId` | required | 33Across Product ID that the Publisher has registered for (use `'siab'` for Banner or Outstream Video , `'inview'` for Adhesion, `'instream'` for Instream Video) | `'siab'` | `string` |

### Ad Unit Setup for Banner
```javascript
var adUnits = [
{
code: '33across-hb-ad-123456-1', // ad slot HTML element ID
mediaTypes: {
banner: {
sizes: [
[300, 250],
[728, 90]
]
}
}
bids: [{
bidder: '33across',
params: {
siteId: 'examplePub123', // required
productId: 'siab|inview' // required
}
}]
}
```

### Ad Unit Setup for Outstream Video
```javascript
var adUnits = [
{
code: '33across-hb-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: 'outstream', // required
mimes: ['video/mp4','video/x-flv'], // required
protocols: [ 2, 3 ], // required, set at least 1 value in array
placement: 2, // optional, defaults to 2 when context = outstream
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: '33across',
params: {
siteId: 'examplePub123', // required
productId: 'siab' // required
}
}],
...
}
```

### Ad Unit Setup for Instream Video
```javascript
var adUnits = [
{
code: '33across-hb-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: '33across',
params: {
siteId: 'examplePub123', // required
productId: 'instream' // required
}
}],
...
}
```

### Ad Unit Setup for Multi-format: Banner, Video (Outstream)
```javascript
var adUnits = [
{
code: '33across-hb-ad-123456-1', // ad slot HTML element ID
mediaTypes: {
banner: {
sizes: [
[300, 250],
[728, 90]
]
},
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: 'outstream', // required
mimes: ['video/mp4','video/x-flv'], // required
protocols: [ 2, 3 ], // required, set at least 1 value in array
placement: 2, // optional, defaults to 2 when context = outstream
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: '33across',
params: {
siteId: 'examplePub123', // required
productId: 'siab' // required
}
}],
...
}
```

0 comments on commit 6e5b65d

Please sign in to comment.