window.googletag = window.googletag || {cmd: []}; var priceRules = {"plusmob.com_Web_Content_1":{"FREU-RelacionamentoBTN-FB":10,"NL-RelacionamentoBTN-FB":25,"ENRU-RelacionamentoBTN-FB":30,"RU-RelacionamentoBTN-FB":9,"BR-RelacionamentoBTN2-FB":5,"AREU-FutebolBTN-FB":30,"FRMD-FutebolBTN-FB":3,"ARM-RelacionamentoBTN3-FB":2,"AROM-RelacionamentoBTN3-FB":8,"DE-RelacionamentoBTN3-FB":45,"BR-RelacionamentoBTN3-FB":5,"ESCH-RelacionamentoBTN3-FB":10,"FREU-RelacionamentoBTN3-FB":35,"ENCA-RelacionamentoBTN3-FB":15,"ENRU-RelacionamentoBTN3-FB":45,"LT-RelacionamentoBTN-FB":20,"ESMX-RelacionamentoBTN3-FB":9,"ARM-RelacionamentoBTN4-FB":1,"ARKU-RelacionamentoBTN4-FB":10,"BR-RelacionamentoBTN4-FB":6,"ENCA-RelacionamentoBTN4-FB":25,"MS-RelacionamentoBTN4-FB":3,"RO-RelacionamentoBTN4-FB":15,"EL-RelacionamentoBTN4-FB":25,"TRM-RelacionamentoBTN4-FB":10,"AREU-RelacionamentoBTN4-FB":30,"BREU-RelacionamentoBTN4-FB":15,"ESEUA-RelacionamentoBTN4-FB":30,"ENAU-RelacionamentoBTN4-FB":25,"PL-RelacionamentoBTN4-FB":10,"ARM-RelacionamentoBTN5-FB":2,"BR-RelacionamentoBTN5-FB":3,"BG-RelacionamentoBTN5-FB":10,"AREU-RelacionamentoBTN5-FB":50,"DE-RelacionamentoBTN5-FB":60,"BREU-RelacionamentoBTN5-FB":25,"ESARG-RelacionamentoBTN5-FB":1,"ESCH-RelacionamentoBTN5-FB":2,"FRMD-RelacionamentoBTN5-FB":1,"RUEU-RelacionamentoBTN5-FB":15,"RU-RelacionamentoBTN5-FB":10,"SK-RelacionamentoBTN5-FB":25,"ESM-RelacionamentoBTN5-FB":2,"ESCB-RelacionamentoBTN5-FB":5,"ESEUA-RelacionamentoBTN5-FB":95,"ESMX-RelacionamentoBTN5-FB":15,"RO-RelacionamentoBTN5-FB":15,"SRO-RelacionamentoBTN5-FB":20,"TRM-RelacionamentoBTN5-FB":10,"SV-RelacionamentoBTN-FB":25,"SV-RelacionamentoBTN4-FB":35,"SV-RelacionamentoBTN5-FB":25},"plusmob.com_Top_Anchor":{"FREU-RelacionamentoBTN-FB":10,"NL-RelacionamentoBTN-FB":20,"ENRU-RelacionamentoBTN-FB":15,"RU-RelacionamentoBTN-FB":6,"BR-RelacionamentoBTN2-FB":5,"AREU-FutebolBTN-FB":25,"FRMD-FutebolBTN-FB":3,"ARM-RelacionamentoBTN3-FB":1,"AROM-RelacionamentoBTN3-FB":6,"DE-RelacionamentoBTN3-FB":15,"BR-RelacionamentoBTN3-FB":4,"ESCH-RelacionamentoBTN3-FB":5,"FREU-RelacionamentoBTN3-FB":15,"ENCA-RelacionamentoBTN3-FB":9,"ENRU-RelacionamentoBTN3-FB":15,"LT-RelacionamentoBTN-FB":20,"ESMX-RelacionamentoBTN3-FB":4,"ARM-RelacionamentoBTN4-FB":1,"ARKU-RelacionamentoBTN4-FB":25,"BR-RelacionamentoBTN4-FB":4,"ENCA-RelacionamentoBTN4-FB":10,"MS-RelacionamentoBTN4-FB":2,"RO-RelacionamentoBTN4-FB":10,"EL-RelacionamentoBTN4-FB":10,"TRM-RelacionamentoBTN4-FB":6,"AREU-RelacionamentoBTN4-FB":30,"BREU-RelacionamentoBTN4-FB":10,"ESEUA-RelacionamentoBTN4-FB":15,"ENAU-RelacionamentoBTN4-FB":15,"PL-RelacionamentoBTN4-FB":6,"ARM-RelacionamentoBTN5-FB":1,"BN-RelacionamentoBTN5-FB":1,"BR-RelacionamentoBTN5-FB":2,"BG-RelacionamentoBTN5-FB":3,"AREU-RelacionamentoBTN5-FB":20,"DE-RelacionamentoBTN5-FB":20,"BREU-RelacionamentoBTN5-FB":10,"ESARG-RelacionamentoBTN5-FB":2,"ESCH-RelacionamentoBTN5-FB":2,"FRMD-RelacionamentoBTN5-FB":2,"RUEU-RelacionamentoBTN5-FB":3,"RU-RelacionamentoBTN5-FB":6,"SK-RelacionamentoBTN5-FB":15,"ESM-RelacionamentoBTN5-FB":2,"ESCB-RelacionamentoBTN5-FB":3,"ESEUA-RelacionamentoBTN5-FB":30,"ESMX-RelacionamentoBTN5-FB":4,"RO-RelacionamentoBTN5-FB":10,"SRO-RelacionamentoBTN5-FB":25,"TRM-RelacionamentoBTN5-FB":7,"SV-RelacionamentoBTN-FB":10,"SV-RelacionamentoBTN4-FB":10,"SV-RelacionamentoBTN5-FB":15},"plusmob.com_m_Fixed":{"FREU-RelacionamentoBTN-FB":5,"NL-RelacionamentoBTN-FB":10,"ENRU-RelacionamentoBTN-FB":8,"RU-RelacionamentoBTN-FB":2,"BR-RelacionamentoBTN2-FB":1,"AREU-FutebolBTN-FB":9,"FRMD-FutebolBTN-FB":1,"AROM-RelacionamentoBTN3-FB":1,"DE-RelacionamentoBTN3-FB":6,"ESCH-RelacionamentoBTN3-FB":1,"FREU-RelacionamentoBTN3-FB":7,"ENCA-RelacionamentoBTN3-FB":3,"ENRU-RelacionamentoBTN3-FB":7,"LT-RelacionamentoBTN-FB":10,"ESMX-RelacionamentoBTN3-FB":1,"ARKU-RelacionamentoBTN4-FB":2,"BR-RelacionamentoBTN4-FB":1,"ENCA-RelacionamentoBTN4-FB":3,"RO-RelacionamentoBTN4-FB":6,"EL-RelacionamentoBTN4-FB":8,"TRM-RelacionamentoBTN4-FB":2,"AREU-RelacionamentoBTN4-FB":5,"BREU-RelacionamentoBTN4-FB":3,"ESEUA-RelacionamentoBTN4-FB":8,"ENAU-RelacionamentoBTN4-FB":5,"PL-RelacionamentoBTN4-FB":5,"BG-RelacionamentoBTN5-FB":3,"AREU-RelacionamentoBTN5-FB":8,"DE-RelacionamentoBTN5-FB":10,"BREU-RelacionamentoBTN5-FB":6,"RUEU-RelacionamentoBTN5-FB":1,"RU-RelacionamentoBTN5-FB":2,"SK-RelacionamentoBTN5-FB":4,"ESCB-RelacionamentoBTN5-FB":2,"ESEUA-RelacionamentoBTN5-FB":10,"ESMX-RelacionamentoBTN5-FB":2,"RO-RelacionamentoBTN5-FB":8,"SRO-RelacionamentoBTN5-FB":10,"TRM-RelacionamentoBTN5-FB":2,"SV-RelacionamentoBTN-FB":7,"SV-RelacionamentoBTN4-FB":4,"SV-RelacionamentoBTN5-FB":8}}; var urlParams = new URLSearchParams(window.location.search); var src = urlParams.get('src'); function listenAdClicks() { let isAdsArea = false; let ad_link = ''; function detectAdsArea(e) { const iframe = e.target.closest('iframe'); if (iframe) { isAdsArea = true; ad_link = iframe.getAttribute('src'); } else { isAdsArea = false; ad_link = ''; } } document.addEventListener('mouseover', detectAdsArea); document.addEventListener('touchmove', detectAdsArea, { passive: true }); window.addEventListener('blur', function () { if(isAdsArea) { fbq('track', 'ViewContent'); } }); } googletag.cmd.push(function() { googletag.pubads().addEventListener('slotVisibilityChanged', function(event) { const visibility = event.inViewPercentage; if (visibility > 0) { listenAdClicks(); } }); }); googletag.cmd.push(function() { googletag.pubads().addEventListener('slotVisibilityChanged', function(event) { const slotPath = event.slot.getAdUnitPath(); const visibility = event.inViewPercentage; if (slotPath.includes('interstitial') && visibility >= 1) { fbq('track', 'ViewContent'); } }); }); function startContent1Script() { try { var priceRule = 4; if (priceRules['plusmob.com_Web_Content_1']) { if (priceRules['plusmob.com_Web_Content_1'][src]) { priceRule = priceRules['plusmob.com_Web_Content_1'][src]; } } let adSlot; let hasTriedRebid = false; googletag.cmd.push(function() { adSlot = googletag.defineSlot('/22013536576/plusmob.com/plusmob.com_web_content_1', [[336, 280], [300, 250], [250, 250], 'fluid'], 'div-gpt-ad-1715818371803-0'); adSlot.setTargeting("floor_price", [`r_${priceRule}`]); adSlot.addService(googletag.pubads()); googletag.pubads().addEventListener('slotRenderEnded', function(event) { if (event.slot.getSlotElementId() === 'div-gpt-ad-1715818371803-0') { if (event.isEmpty && !hasTriedRebid) { hasTriedRebid = true; googletag.destroySlots([adSlot]); setTimeout(() => { adSlot = googletag.defineSlot('/22013536576/plusmob.com/plusmob.com_web_content_1_rebid', [[336, 280], [300, 250], [250, 250], 'fluid'], 'div-gpt-ad-1715818371803-0').addService(googletag.pubads()); googletag.display('div-gpt-ad-1715818371803-0'); googletag.pubads().refresh([adSlot]); }, 150); } } }); googletag.enableServices(); googletag.display('div-gpt-ad-1715818371803-0'); }); } catch (error) { console.error('Error in startContent1Script:', error); } } startContent1Script(); function startTopAnchorScript() { try { var priceRule = 4; if (priceRules['plusmob.com_Top_Anchor']) { if (priceRules['plusmob.com_Top_Anchor'][src]) { priceRule = priceRules['plusmob.com_Top_Anchor'][src]; } } let anchorSlot; let hasTriedRebid = false; googletag.cmd.push(function() { anchorSlot = googletag.defineOutOfPageSlot('/22013536576/plusmob.com/plusmob.com_top_anchor', googletag.enums.OutOfPageFormat.TOP_ANCHOR); anchorSlot.setTargeting("floor_price", [`r_${priceRule}`]); anchorSlot.addService(googletag.pubads()); googletag.pubads().addEventListener('slotRenderEnded', function(event) { if (event.slot.getSlotElementId() === anchorSlot.getSlotElementId()) { if (event.isEmpty && !hasTriedRebid) { hasTriedRebid = true; googletag.destroySlots([anchorSlot]); setTimeout(() => { anchorSlot = googletag.defineOutOfPageSlot('/22013536576/plusmob.com/plusmob.com_top_anchor_rebid', googletag.enums.OutOfPageFormat.TOP_ANCHOR).addService(googletag.pubads()); googletag.display(anchorSlot.getSlotElementId()); googletag.pubads().refresh([anchorSlot]); }, 150); } } }); googletag.enableServices(); googletag.display(anchorSlot.getSlotElementId()); }); } catch (error) { console.error('Error in startTopAnchorScript:', error); } } startTopAnchorScript(); function startMFixedScript() { try { var priceRule = 4; if (priceRules['plusmob.com_m_Fixed']) { if (priceRules['plusmob.com_m_Fixed'][src]) { priceRule = priceRules['plusmob.com_m_Fixed'][src]; } } let mfixedSlot; let hasTriedRebid = false; googletag.cmd.push(function() { mfixedSlot = googletag.defineSlot('/22013536576/plusmob.com/plusmob.com_m_fixed', [[300, 50], [320, 50]], 'div-gpt-ad-1686178920381-0'); mfixedSlot.setTargeting("floor_price", [`r_${priceRule}`]); mfixedSlot.addService(googletag.pubads()); googletag.pubads().addEventListener('slotRenderEnded', function(event) { if (event.slot.getSlotElementId() === mfixedSlot.getSlotElementId()) { if (event.isEmpty && !hasTriedRebid) { hasTriedRebid = true; googletag.destroySlots([mfixedSlot]); setTimeout(() => { mfixedSlot = googletag.defineSlot('/22013536576/plusmob.com/plusmob.com_m_fixed_rebid', [[300, 50], [320, 50]], 'div-gpt-ad-1686178920381-0').addService(googletag.pubads()); googletag.display(mfixedSlot.getSlotElementId()); googletag.pubads().refresh([mfixedSlot]); }, 150); } } }); googletag.enableServices(); googletag.display(mfixedSlot.getSlotElementId()); }); } catch (error) { console.error('Error in startMFixedScript:', error); } } setTimeout(startMFixedScript, 150);