Wine News & Opinions

= 0.5) { headers = “leaderboard” } else { headers = “billboard” } } adContainer.classList.add(headers); // Conditional on which ad to load. if (headers == “leaderboard”) { googletag.cmd.push(function() { var mapping = googletag.sizeMapping() .addSize([1024,0], [[728,90]]) .addSize([748,0], [[728,90]]) .addSize([300,0], [[300,50],[300, 40]]) .build(); googletag.defineSlot(dfp_zone, [[728, 90], [300, 50], [300, 40]],’first-ad’) .addService(googletag.pubads()) .setTargeting(“pos”, “NEWLeaderboard_Desktop”) .setTargeting(“rb”, “y”) .defineSizeMapping(mapping); googletag.enableServices(); googletag.display(‘first-ad’); }); } else if (headers == “billboard”) { googletag.cmd.push(function() { var mapping = googletag.sizeMapping() .addSize([1024,0], [[970,250]]) .addSize([748,0], [[728,90]]) .addSize([300,0], [[300,50],[300, 40]]) .build(); googletag.defineSlot(dfp_zone, [[970, 250], [728, 90], [300, 50], [300, 40]],’first-ad’) .addService(googletag.pubads()) .setTargeting(“pos”, “NEWBillboard_Desktop”) .setTargeting(“rb”, “y”) .defineSizeMapping(mapping); googletag.enableServices(); googletag.display(‘first-ad’); }); } ]]>

Source

Leave a Reply

Your email address will not be published. Required fields are marked *