-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JW Player Bid Adapter : initial release (#11344)
* jwplayerBidAdapter module created * created initial skeleton of jwplayerBidAdapter * cleaned up initial skeleton for jwplayerBidAdapter * added description to jwplayerBidAdapter.md * created jwplayerBidAdapter unit test suite * implemented isBidRequestValid with unit tests * initial creation of the buildRequests function * incorporated feedback from pr and refactored. * added video object, impExt object, and site content object to jwplayerBidAdapter * added feedback from pr * fixed parameters for methods in jwplayerBidAdapter * added feedback from pr and unit tests * removed superfluous array * fixed nits * added feedback to jw adapter and tests for buildRequests * added feedback * one last feedback for request site * added site object unit test * fixed buildRequestSite object * added unit tests for site object * fixed unit tests for buildRequestSite * skeleton of interpretResponse * initial attempt at interpretResponse * started unit test * finished interpretResponse with unit test * populates schain as well as other params * reads schain from bidrequest * updates unit tests * improves tests * tests tmax * deletes obsolete comments * errors when url is missing * updates tests * implements usersync * supports iframe sync * registers user sync properly * tests user sync * uses boost email * improves ortb reqs * interprets response * updates tests * updates tests * removes playerSize official support * adds md * updates demo * adds content url * adds jwplayer ssp * renames demo --------- Co-authored-by: Jorge Rocha <jrocha@jwplayer.com>
- Loading branch information
1 parent
be66a45
commit fadc303
Showing
21 changed files
with
1,092 additions
and
4 deletions.
There are no files selected for viewing
75 changes: 75 additions & 0 deletions
75
integrationExamples/noadserver/jwplayerBidAdapter_sample.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<script async src="../../../build/dev/prebid.js"></script> | ||
|
||
<script> | ||
const adUnit = { | ||
code: 'test-ad-unit', | ||
mediaTypes: { | ||
video: { | ||
pos: 0, | ||
w: 640, | ||
h: 480, | ||
mimes : ['application/vnd.apple.mpegurl', 'video/mp4'], | ||
minduration : 0, | ||
maxduration: 60, | ||
protocols : [2,3,7,5,6,8], | ||
startdelay: 0, | ||
placement: 1, | ||
plcmt: 1, | ||
skip: 1, | ||
skipafter: 10, | ||
playbackmethod: [3], | ||
api: [2], | ||
linearity: 1 | ||
} | ||
}, | ||
bids: [{ | ||
bidder: 'jwplayer', | ||
params: { | ||
publisherId: 'test-publisher-id', | ||
siteId: 'test-site-id', | ||
placementId: 'test-placement-id' | ||
} | ||
}] | ||
}; | ||
|
||
var pbjs = pbjs || {}; | ||
pbjs.que = pbjs.que || []; | ||
|
||
pbjs.que.push(function() { | ||
pbjs.setConfig({ | ||
debug: true, | ||
realTimeData: { | ||
dataProviders: [{ | ||
name: "jwplayer", | ||
waitForIt: true, | ||
params: { | ||
mediaIDs: ['test-media-id'], | ||
overrideContentUrl: 'always', | ||
overrideContentId: 'always', | ||
overrideContentTitle: 'always', | ||
overrideContentDescription: 'always' | ||
} | ||
}] | ||
}, | ||
ortb2: { | ||
site: { | ||
content: { | ||
url: 'test.mp4' | ||
} | ||
} | ||
} | ||
}); | ||
pbjs.addAdUnits([adUnit]); | ||
pbjs.requestBids({ | ||
timeout: 4000 | ||
}); | ||
}); | ||
</script> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.