aboutsummaryrefslogtreecommitdiffstats
path: root/demo/src/js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2019-02-01 00:24:48 +1100
committerSam Potts <sam@potts.es>2019-02-01 00:24:48 +1100
commiteb628c8e4f109bb6aa4dc9196ee8f075092b225e (patch)
tree36c71f639a06c0c96d2bc9655d6c162ca03a3fca /demo/src/js
parentd0e3c7c6d00d66ea2dc8533e68aa0af0ca952d1d (diff)
downloadplyr-eb628c8e4f109bb6aa4dc9196ee8f075092b225e.tar.lz
plyr-eb628c8e4f109bb6aa4dc9196ee8f075092b225e.tar.xz
plyr-eb628c8e4f109bb6aa4dc9196ee8f075092b225e.zip
Ads bug fixes
Diffstat (limited to 'demo/src/js')
-rw-r--r--demo/src/js/demo.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/demo/src/js/demo.js b/demo/src/js/demo.js
index add123e5..dd4b3b5d 100644
--- a/demo/src/js/demo.js
+++ b/demo/src/js/demo.js
@@ -58,6 +58,13 @@ import Plyr from '../../../src/js/plyr';
}, 10);
});
+ const userType = 'annon';
+ const contentType = 'on-demand';
+ const cmsid = 2490180;
+ const vid = 3788;
+
+ const tagUrl = `https://pubads.g.doubleclick.net/gampad/live/ads?sz=640x360&iu=/21736521837/ovo/web&impl=s&gdfp_req=1&env=vp&output=vast&cust_params=usergroup%3D${userType}%26content-type%3D${contentType}&cmsid=${cmsid}&vid=${vid}`;
+
// Setup the player
const player = new Plyr(selector, {
debug: true,
@@ -76,8 +83,8 @@ import Plyr from '../../../src/js/plyr';
google: 'AIzaSyDrNwtN3nLH_8rjCmu5Wq3ZCm4MNAVdc0c',
},
ads: {
- enabled: env.prod || env.dev,
- publisherId: '918848828995742',
+ enabled: true, // env.prod || env.dev,
+ tagUrl,
},
previewThumbnails: {
enabled: true,