Skip to content

Commit

Permalink
Add zoneId, refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
yegorHeiz committed Jan 15, 2021
1 parent 942aee2 commit b0a60b7
Showing 1 changed file with 52 additions and 66 deletions.
118 changes: 52 additions & 66 deletions modules/waardexBidAdapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,41 +21,27 @@ var sizes = [
var PREBID_TIMEOUT = 5000;
var FAILSAFE_TIMEOUT = 5000;

var adUnits = [{
code: '/19968336/header-bid-tag-0',
mediaTypes: {
banner: {
sizes: sizes,
},
},
bids: [{
bidder: 'waardex',
params: {
placementId: 13144370,
position: 1, // add position openrtb
bidfloor: 0.5,
instl: 0, // 1 - full screen
pubId: 1,
}
}]
},{
code: '/19968336/header-bid-tag-1',
mediaTypes: {
banner: {
sizes: sizes,
var adUnits = [
{
code: '/19968336/header-bid-tag-0',
mediaTypes: {
banner: {
sizes: sizes
}
},
},
bids: [{
bidder: 'waardex',
params: {
placementId: 333333333333,
position: 1, // add position openrtb
bidfloor: 0.5,
instl: 0, // 1 - full screen
pubId: 1,
}
}]
}];
bids: [
{
bidder: 'waardex',
params: {
bidfloor: 1.5,
position: 1,
instl: 1,
zoneId: 1
}
}
]
}
];
```

## Video
Expand All @@ -70,38 +56,38 @@ const sizes = [

const adUnits = [
{
code: 'video1',
mediaTypes: {
video: {
context: 'instream',
playerSize: sizes[0]
}
},
bids: [
{
bidder: 'waardex',
params: {
bidfloor: 1.5,
position: 1,
instl: 1,
zoneId: 1,
mimes: ['video/x-ms-wmv', 'video/mp4'],
minduration: 2,
maxduration: 10,
protocols: ['VAST 1.0', 'VAST 2.0'],
startdelay: -1,
placement: 1,
skip: 1,
skipafter: 2,
minbitrate: 0,
maxbitrate: 0,
delivery: [1, 2, 3],
playbackmethod: [1, 2],
api: [1, 2, 3, 4, 5, 6],
linearity: 1,
}
}
]
code: 'video1',
mediaTypes: {
video: {
context: 'instream',
playerSize: sizes[0]
}
},
bids: [
{
bidder: 'waardex',
params: {
bidfloor: 1.5,
position: 1,
instl: 1,
zoneId: 1,
mimes: ['video/x-ms-wmv', 'video/mp4'],
minduration: 2,
maxduration: 10,
protocols: ['VAST 1.0', 'VAST 2.0'],
startdelay: -1,
placement: 1,
skip: 1,
skipafter: 2,
minbitrate: 0,
maxbitrate: 0,
delivery: [1, 2, 3],
playbackmethod: [1, 2],
api: [1, 2, 3, 4, 5, 6],
linearity: 1,
}
}
]
}
]
```

0 comments on commit b0a60b7

Please sign in to comment.