var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
googletag.cmd.push(function() {
googletag.pubads().disableInitialLoad();
});
//this function refreshes [adhesion] ad slot every 60 second and makes prebid bid on it every 60 seconds
// Set timer to refresh slot every 60 seconds
function setIntervalMobile() {
if (!device.mobile()) return
if (adhesion) setInterval(function(){
googletag.pubads().refresh([adhesion]);
}, 60000);
}
if(device.desktop())
{
googletag.cmd.push(function() {
leaderboard_top = googletag.defineSlot('/22018898626/LC_Article_detail_page', [728, 90], 'div-gpt-ad-1591620860846-0').setTargeting('pos', ['1']).setTargeting('div_id', ['leaderboard_top']).addService(googletag.pubads());
googletag.pubads().collapseEmptyDivs();
googletag.enableServices();
});
}
else if(device.tablet())
{
googletag.cmd.push(function() {
leaderboard_top = googletag.defineSlot('/22018898626/LC_Article_detail_page', [320, 50], 'div-gpt-ad-1591620860846-0').setTargeting('pos', ['1']).setTargeting('div_id', ['leaderboard_top']).addService(googletag.pubads());
googletag.pubads().collapseEmptyDivs();
googletag.enableServices();
});
}
else if(device.mobile())
{
googletag.cmd.push(function() {
leaderboard_top = googletag.defineSlot('/22018898626/LC_Article_detail_page', [320, 50], 'div-gpt-ad-1591620860846-0').setTargeting('pos', ['1']).setTargeting('div_id', ['leaderboard_top']).addService(googletag.pubads());
googletag.pubads().collapseEmptyDivs();
googletag.enableServices();
});
}
googletag.cmd.push(function() {
// Enable lazy loading with...
googletag.pubads().enableLazyLoad({
// Fetch slots within 5 viewports. // fetchMarginPercent: 500,
fetchMarginPercent: 100,
// Render slots within 2 viewports. // renderMarginPercent: 200,
renderMarginPercent: 100,
// Double the above values on mobile, where viewports are smaller
// and users tend to scroll faster.
mobileScaling: 2.0
});
});
I Have Been Accepted to Fordham and Cornell. What Should I Do?