1 || className.split(‘-feed’).length > 1) { %>
1 || className.split(‘-feed’).length > 1) {
if ( ‘future’ === tense ) {
platform = ‘pre’;
} else if ( ‘past’ === tense ) {
platform = ‘post’;
} else {
platform = ‘in’;
}
window.msgn_ads.scoreboard_platform = platform;
%>
jQuery(window).load(function() { var logger = {
log: function() {
}
},
slotID = “”,
slotFluid = 0,
slotName = “/6654/msg.msg.oao/teams/knicks/landing”,
slotSizeMap = [],
slotRefresh = 1,
slotLazy = 0,
slotSizes = null,
slotTags = false;
if ( slotFluid ) {
jQuery( document.getElementById( slotID ) ).css( ‘max-width’, slotSizes[0] );
slotSizes = ‘fluid’;
}
if ( getUrlVar( ‘dfpdebug’ ) ) {
logger.log = console.log;
}
logger.log(‘DFP in-page slot ‘+slotID );
logger.log(‘DFP in-page slot name’+slotName );
googletag.cmd.push(function() {
logger.log(‘DFP in-page slot ‘+slotID );
var slot = googletag.defineSlot( slotName, slotSizes, slotID );
if ( !slot ) {
return;
}
slot.addService(googletag.pubads());
logger.log(‘DFP in-page slot ‘+slotID );
for (var i = 0; i 0 ) {
slot.setTargeting( ‘platform’, window.msgn_ads.scoreboard_platform );
logger.log(‘— ‘+slotID+’ slot-level targeting: platform/’+window.msgn_ads.scoreboard_platform );
}
if ( slotID.startsWith(‘js-dfp-in-feed-billboard’) ) {
window.msgn_ads.in_feed_count++;
var feed_count = [ ‘pos’, ‘feed’+window.msgn_ads.in_feed_count ]
slot.setTargeting( feed_count[0], feed_count[1] );
logger.log(‘— ‘+slotID+’ slot-level targeting: ‘+feed_count.join(‘/’) );
}
if ( slotSizeMap.length > 0 ) {
var mapping = [];
for (var i = 0; i < slotSizeMap.length; i++) {
mapping.push( [ slotSizeMap[i].viewport, slotSizeMap[i].available_sizes ] );
logger.log('— '+slotID+' size map viewport: '+mapping[i][0].join('/')+' sizes '+mapping[i][1].join('/') );
}
slot.defineSizeMapping(mapping);
} else {
if ( 'object' === typeof slotSizes ) {
logger.log('— '+slotID+' sizes: '+slotSizes.join('/') );
} else if ( 'string' === typeof slotSizes ) {
logger.log('— '+slotID+' sizes: '+slotSizes );
}
}
googletag.display( slotID );
if ( ! window.msgn_ads.ad_units ) window.msgn_ads.ad_units = {};
window.msgn_ads.ad_units[slotID] = slot;
if ( slotRefresh && ! slotLazy ) {
logger.log('— refresh called');
googletag.pubads().refresh( [slot] );
} else {
logger.log('— refresh not called');
}
logger.log('——————————————' );
});
});
The post IQ & Grimes Lead Knicks To Statement Win Over Heat appeared first on MSGNetworks.com.