From 09fe6aa335aeb1823716e49f53d3473074c50e16 Mon Sep 17 00:00:00 2001 From: radiantmediaplayer Date: Thu, 29 Apr 2021 13:38:53 +0200 Subject: [PATCH] 3.0.1 - updates online example --- ad-scheduling-client-side.html | 2 +- js/ad-scheduling-client-side.js | 4 ++-- js/instream-client-side.js | 2 +- js/instream-prebid-server.js | 2 +- js/outstream.js | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ad-scheduling-client-side.html b/ad-scheduling-client-side.html index f449163..fa99189 100644 --- a/ad-scheduling-client-side.html +++ b/ad-scheduling-client-side.html @@ -21,7 +21,7 @@
-

Using Prebid.js with Radiant Media Player (client-side adapter)

+

Using Prebid.js with Radiant Media Player (Ad-scheduling)

Instream Video (muted autoplay)

Go back to GitHub

Go back to { pbjs.addAdUnits(videoAdUnit); pbjs.setConfig({ //debug: true, diff --git a/js/instream-client-side.js b/js/instream-client-side.js index 54fc38b..81e80c2 100644 --- a/js/instream-client-side.js +++ b/js/instream-client-side.js @@ -16,7 +16,7 @@ const invokeVideoPlayer = function (adTagUrl) { ] }; const settings = { - licenseKey: 'Kl8lZ292K3N6Mm9pZz9yb201ZGFzaXMzMGRiMEElXyo=', + licenseKey: 'your-license-key', src: src, width: 640, height: 360, diff --git a/js/instream-prebid-server.js b/js/instream-prebid-server.js index d311ce1..8036e38 100644 --- a/js/instream-prebid-server.js +++ b/js/instream-prebid-server.js @@ -16,7 +16,7 @@ const invokeVideoPlayer = function (adTagUrl) { ] }; const settings = { - licenseKey: 'Kl8lZ292K3N6Mm9pZz9yb201ZGFzaXMzMGRiMEElXyo=', + licenseKey: 'your-license-key', src: src, width: 640, height: 360, diff --git a/js/outstream.js b/js/outstream.js index 4d8e490..2f2aa1c 100644 --- a/js/outstream.js +++ b/js/outstream.js @@ -12,7 +12,7 @@ const invokeVideoPlayer = function (adTagUrl, xml) { window.console.log('invokeVideoPlayer with Prebid VAST url'); window.console.log(adTagUrl); const settings = { - licenseKey: 'Kl8lZ292K3N6Mm9pZz9yb201ZGFzaXMzMGRiMEElXyo=', + licenseKey: 'your-license-key', width: 640, height: 360, autoplay: true, @@ -58,11 +58,11 @@ if (window.pbjs) { } }] }]; - pbjs.que.push(function () { + pbjs.que.push(() => { pbjs.addAdUnits(adUnits); pbjs.requestBids({ timeout: 1000, - bidsBackHandler: function (bids) { + bidsBackHandler: (bids) => { window.console.log('winning bid follows'); window.console.log(bids); // we get the VAST XML from bids adResponse and pass it to our outstream player