pbjs.que.push(function() { var adUnits = computeAdUnits(); if (hasDeckAd && adUnits[0] && adUnits[0].code.endsWith("-0")) { var removedAdUnit = adUnits.shift(); } pbjs.addAdUnits(adUnits); pbjs.bidderSettings = { appnexus: {storageAllowed: true }, oms: {storageAllowed: true }, conversant: {storageAllowed: true }, ix: {storageAllowed: true }, sharethrough: {storageAllowed: true }, triplelift: {storageAllowed: true }, lockerdome: {storageAllowed: true }, nextMillennium: {storageAllowed: true} } }); pbjs.que.push(function() { pbjs.setConfig({ // Prebid v9 consent keys + safe defaults for non-EU consentManagement: { gdpr: { cmpApi: 'iab', timeout: 1000, defaultGdprScope: false, allowAuctionWithoutConsent: true }, usp: { cmpApi: 'iab', timeout: 1000 }, gpp: { cmpApi: 'iab', timeout: 1000 } }, // Prebid lazy-load lazyLoad: { enabled: true, fetchMarginPercent: 200, renderMarginPercent: 75, mobileScaling: 2 }, realTimeData: { auctionDelay: 200, dataProviders: [{ name: 'confiant', waitForIt: true, params: { propertyId: 'VL8lOwQoXaT7N2b9dvJx4oGnlrY' } }] }, userSync: { userIds: [ { name: 'pubCommonId', storage: { type: 'cookie', name: '_pubcid', expires: 365 } }, { name: 'sharedId', storage: { name: 'sharedid', type: 'cookie', expires: 28 } } ], syncDelay: 5000, filterSettings: { iframe: { bidders: '*', filter: 'include' }, image: { bidders: '*', filter: 'include' } } }, enableSendAllBids: true, priceGranularity: "high", useBidCache: false, pageUrl: "/mtg-decks/cant-touch-this-competitive-bogles/image-export/", enableTIDs: true }); }); function sendAdserverRequest() { if (pbjs.adserverRequestSent) return; pbjs.adserverRequestSent = true; googletag.cmd.push(function() { pbjs.que.push(function() { pbjs.setTargetingForGPTAsync(); googletag.pubads().addEventListener("slotRenderEnded", function(event) { var slot = event.slot.getSlotElementId(); if (slot === "div-gpt-ad-1569348723527-0" && document.getElementById(slot)) { if (event.isEmpty && document.getElementById(slot).querySelector("iframe") === null) { document.getElementById(slot).parentNode.style.visibility = "hidden"; } else { document.getElementById(slot).parentNode.removeAttribute("style"); } } } ) googletag.pubads().refresh(); }); }); } var googleSlots = []; /* ======= KEEP your existing slot definitions exactly as-is ======= */ googletag.cmd.push(function() { var w = window; var d = document; var e = d.documentElement; var g = d.getElementsByTagName('body')[0]; var browserWidth = w.innerWidth || e.clientWidth || g.clientWidth; // legacy var kept var browserHeight = w.innerHeight || e.clientHeight || g.clientHeight; // legacy var kept var slot, slotCode, slotName; if (browserWidth >= 992 && browserHeight >= 0) { slotName = '/' + GAMCODE + '/Tapped_Out_728x90_ROS'; slotCode = 'div-gpt-ad-1491787755236-0'; slot = googletag.defineSlot(slotName, [[970, 250]], slotCode).setTargeting("refresh", ["1"]).addService(googletag.pubads()); googleSlots.push({code: slotCode, name: slotName, slot: slot, wasSeen: false, refreshTimes: 1}); slotName = '/' + GAMCODE + '/Tapped_Out_160x600_ROS'; slotCode = 'div-gpt-ad-1491787755236-2'; slot = googletag.defineSlot(slotName, [[300, 600], [300, 250], [160, 600]], slotCode).setTargeting("refresh", ["1"]).addService(googletag.pubads()); googleSlots.push({code: slotCode, name: slotName, slot: slot, wasSeen: false, refreshTimes: 1}); // sticky ad slotName = '/' + GAMCODE + '/Tapped_Out_Adhesion'; slotCode = 'div-gpt-ad-1569348723527-0'; slot = googletag.defineSlot(slotName, [[728, 90]], slotCode).setTargeting("refresh", ["1"]).addService(googletag.pubads()); googleSlots.push({code: slotCode, name: slotName, slot: slot, wasSeen: false, refreshTimes: 1}); } else if (browserWidth >= 768 && browserHeight >= 0) { slotName = '/' + GAMCODE + '/Tapped_Out_728x90_ROS'; slotCode = 'div-gpt-ad-1491787755236-0'; slot = googletag.defineSlot(slotName, [[728, 90]], slotCode).setTargeting("refresh", ["1"]).addService(googletag.pubads()); googleSlots.push({code: slotCode, name: slotName, slot: slot, wasSeen: false, refreshTimes: 1}); slotName = '/' + GAMCODE + '/Tapped_Out_160x600_ROS'; slotCode = 'div-gpt-ad-1491787755236-2'; slot = googletag.defineSlot(slotName, [[300, 600], [300, 250], [160, 600]], slotCode).setTargeting("refresh", ["1"]).addService(googletag.pubads()); googleSlots.push({code: slotCode, name: slotName, slot: slot, wasSeen: false, refreshTimes: 1}); // sticky ad slotName = '/' + GAMCODE + '/Tapped_Out_Adhesion'; slotCode = 'div-gpt-ad-1569348723527-0'; slot = googletag.defineSlot(slotName, [[728, 90]], slotCode).setTargeting("refresh", ["1"]).addService(googletag.pubads()); googleSlots.push({code: slotCode, name: slotName, slot: slot, wasSeen: false, refreshTimes: 1}); } else { slotName = '/' + GAMCODE + '/Tapped_Out_728x90_ROS'; slotCode = 'div-gpt-ad-1491787755236-0'; slot = googletag.defineSlot(slotName, [[320, 50]], slotCode).setTargeting("refresh", ["1"]).addService(googletag.pubads()); googleSlots.push({code: slotCode, name: slotName, slot: slot, wasSeen: false, refreshTimes: 1}); // sticky ad slotName = '/' + GAMCODE + '/Tapped_Out_Adhesion'; slotCode = 'div-gpt-ad-1569348723527-0'; slot = googletag.defineSlot(slotName, [[320, 50]], slotCode).setTargeting("refresh", ["1"]).addService(googletag.pubads()); googleSlots.push({code: slotCode, name: slotName, slot: slot, wasSeen: false, refreshTimes: 1}); } if (hasDeckAd && googleSlots[0] && googleSlots[0].code.endsWith("-0")) { var removedGoogleSlot = googleSlots.shift(); } var adSectionReference = (function() { var pathArray = window.location.pathname.replace(/\//g, " ").trim().split(/\s+/); var basePath = pathArray[0]; var lastPath = pathArray[pathArray.length - 1]; var basePathToSection = { "magic-cards": "Cards", "communcommunity": "Community", "mtg-cube-drafts": "Cubes", "mtg-deck-builder": "Deck Builder", "mtg-draft-simulator": "Draft Sim", "meets": "Events", "mtg-forum": "Forums", "mtg-questions": "Rules", "users": "Users", "mtg-decks": "Decks" }; if (basePath === "") return "Home"; else if (basePath === "mtg-deck-builder" && lastPath === "dragonshield-deck-challenge-superman") return "Dragonshield1"; else if (basePath === "mtg-deck-builder" && lastPath === "dragonshield-deck-challenge-wonderwoman") return "Dragonshield2"; else if (basePathToSection.hasOwnProperty(basePath)) return basePathToSection[basePath]; else return "Unmatched Section: " + basePath; })(); googletag.pubads().setTargeting("sections", adSectionReference); googletag.pubads().enableSingleRequest(); googletag.pubads().setForceSafeFrame(true); googletag.pubads().setSafeFrameConfig({ allowOverlayExpansion:false, allowPushExpansion:false }); // IMPORTANT: enableServices will be called later after privacy is set // googletag.enableServices(); // CHANGE 2: remember first successful (non-empty) render per slot googletag.pubads().addEventListener('slotRenderEnded', function (event) { var id = event.slot.getSlotElementId(); var s = (window.googleSlots || []).find(function (x) { return x.code === id; }); if (s && !event.isEmpty) { s.initialRenderDone = true; } }); // END CHANGE 2 });

Bogles

Modern GeminiSpartanX

SCORE: 4 | 10 COMMENTS | 2467 VIEWS | IN 2 FOLDERS


Feel free to tag @TappedOutNet in your posts!