var adServerUrl = ""; var $el = $( "#video_container-451782" ); var permalink = $el.closest('.snet-single-article').data('permalink');
if ( "1" == true && 'undefined' !== typeof window.getIndexAds ) { var so = {preroll:{1:{1:{siteID:191888},2:{siteID:191889}}}}; adServerUrl = window.getIndexAds( 'http://pubads.g.doubleclick.net/gampad/ads?sz=640x360&iu=%2F7326%2Frogers.broadcast%2FSportsNet.Sportsnet%2FVideo&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&ad_rule=1&vid=5643076114001&cmsid=384', so, permalink); } else { adServerUrl = "http://pubads.g.doubleclick.net/gampad/ads?sz=640x360&iu=%2F7326%2Frogers.broadcast%2FSportsNet.Sportsnet%2FVideo&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&ad_rule=1&vid=5643076114001&cmsid=384"; }
$el.after( unescape("%3Cscript src=\"" + (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js\" %3E%3C/script%3E") );
$( document ).one( 'ready', function() { $( "#video_container-451782" ).SNPlayer( { bc_account_id: "1704050871", bc_player_id: "rkedLxwfab", //autoplay: false, //is_has_autoplay_switch: false, bc_videos: 5643076114001, is_has_continuous_play: "false", adserverurl: adServerUrl, section: "", thumbnail: "http://assets1.sportsnet.ca/wp-content/uploads/2017/11/1704050871_5643084157001_5643076114001-vs-1024x576.jpg" }); });
0 comments:
Post a Comment