stpd = window.stpd || {que: []}; window.googletag = window.googletag || {}; googletag.cmd = googletag.cmd || []; googletag.cmd.push (function () { if(window.innerWidth > 1024) { googletag.defineSlot('/23003497639/modsfire.com_1000x100_anchor_desktop', [[1000,100],[970,90],[728,90],[990,90],[970,50],[960,90],[950,90],[980,90]], 'modsfire_com_1000x100_anchor_responsive').addService(googletag.pubads()); googletag.defineSlot('/23003497639/modsfire.com_1050x336_billboard_1_desktop', [[970,250],[728,90],[970,90],[1000,300],[980,300],[980,200],[1000,200],[1000,250],[1000,150],[1000,100],[970,300],[980,240],[980,120],[970,200],[970,120],[950,90],[728,100],[728,250]], 'modsfire_com_1050x336_billboard_1_responsive').addService(googletag.pubads()); googletag.defineSlot('/23003497639/modsfire.com_336x336_top_double_banner_left_desktop', [[336,336],[336,320],[320,336],[320,320],[300,300],[336,280],[320,250],[300,250]], 'modsfire_com_336x336_top_double_banner_left').addService(googletag.pubads()); googletag.defineSlot('/23003497639/modsfire.com_336x336_top_double_banner_right_desktop', [[336,336],[336,320],[320,336],[320,320],[300,300],[336,280],[320,250],[300,250]], 'modsfire_com_336x336_top_double_banner_right_desktop').addService(googletag.pubads()); } else { googletag.defineSlot('/23003497639/modsfire.com_320x100_anchor_mobile', [[320,100],[320,50],[300,100],[300,50]], 'modsfire_com_1000x100_anchor_responsive').addService(googletag.pubads()); googletag.defineSlot('/23003497639/modsfire.com_336x336_billboard_1_mobile', [[336,336],[336,320],[320,336],[320,320],[300,300],[336,280],[320,250],[300,250]], 'modsfire_com_1050x336_billboard_1_responsive').addService(googletag.pubads()); googletag.defineSlot('/23003497639/modsfire.com_336x336_top_double_banner_left_mobile', [[336,336],[336,320],[320,336],[320,320],[300,300],[336,280],[320,250],[300,250]], 'modsfire_com_336x336_top_double_banner_left').addService(googletag.pubads()); } googletag.cmd.push(function() { googletag.pubads().addEventListener('slotRenderEnded', function(event) { var slotId = event.slot.getSlotElementId(); // Get the slot's ID var slotName = event.slot.getAdUnitPath(); // Get the slot's ad unit path // Check for specific ad units if (event.isEmpty) { console.log("Ad slot not filled: ID = " + slotId + ", Name = " + slotName); // Get the ad container var adContainer = document.getElementById(slotId); adContainer.style.display = 'block'; if (slotName === '/23003497639/modsfire.com_1050x336_billboard_bottom_desktop') { // Fallback code for bottom banner var scriptBottomBanner = document.createElement('script'); scriptBottomBanner.async = false; scriptBottomBanner.setAttribute('data-cfasync', 'true'); scriptBottomBanner.src = "//pl21832361.toprevenuegate.com/d64e14187ad204ab33c0ae928b36025f/invoke.js"; adContainer.appendChild(scriptBottomBanner); var divBottomBanner = document.createElement('div'); divBottomBanner.id = "container-d64e14187ad204ab33c0ae928b36025f"; adContainer.appendChild(divBottomBanner); } else if (slotName === '/23003497639/modsfire.com_1050x336_billboard_1_desktop') { // Original fallback code for first 1 billboard /*var ins = document.createElement('ins'); ins.setAttribute('data-revive-zoneid', '2'); ins.setAttribute('data-revive-id', 'b12d8d1d69ebfab1550cab1ab4d14752'); adContainer.appendChild(ins); var script = document.createElement('script'); script.src = "//ahrefurl.ink/www/delivery/asyncjs.php"; script.async = true; adContainer.appendChild(script);*/ } } else { console.log("Ad slot filled: ID = " + slotId + ", Name = " + slotName); } }); }); googletag.pubads().disableInitialLoad(); googletag.pubads().enableSingleRequest(); googletag.pubads().collapseEmptyDivs(); googletag.enableServices(); });