Skip to content

Commit 7d254a7

Browse files
Merge pull request #61 from gladly-team/spicer/add-index-video
Added index exchange video support
2 parents 2a69fd7 + acf9db6 commit 7d254a7

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

src/providers/prebid/__tests__/prebidBidder.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ describe('prebidBidder: fetchBids', () => {
204204
expect(adUnitConfig[1].bids.map((bid) => bid.bidder).sort()).toEqual([
205205
'grid',
206206
'ix',
207-
'ix',
208207
'medianet',
209208
'openx',
210209
'pulsepoint',

src/providers/prebid/built/pb.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/providers/prebid/prebidBidder.js

+4-10
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ import logger from 'src/utils/logger'
2222
const getPrebidAdUnit = (tabAdUnit, config) => {
2323
const { leaderboard, rectangleAdPrimary, rectangleAdSecondary } =
2424
config.newTabAds
25-
26-
console.log('tabAdUnit', tabAdUnit)
27-
2825
switch (tabAdUnit.adId) {
2926
case leaderboard.adId:
3027
// Leaderboard-style ad
@@ -132,7 +129,7 @@ const getPrebidAdUnit = (tabAdUnit, config) => {
132129
video: {
133130
context: 'outstream',
134131
playerSize: [300, 250],
135-
mimes: ['video/mp4'],
132+
mimes: ['video/mp4', 'application/javascript'],
136133
protocols: [1, 2, 3, 4, 5, 6, 7, 8],
137134
playbackmethod: [2],
138135
skip: 1,
@@ -214,12 +211,9 @@ const getPrebidAdUnit = (tabAdUnit, config) => {
214211
bidder: 'ix',
215212
params: {
216213
siteId: '995530',
217-
},
218-
},
219-
{
220-
bidder: 'ix',
221-
params: {
222-
siteId: '1023462',
214+
video: {
215+
siteId: '1023462',
216+
},
223217
},
224218
},
225219
],

0 commit comments

Comments
 (0)