window.googletag = window.googletag || {cmd: []}; var priceRules = {"plusmob.com_Web_Content_1":{"DE-RelacionamentoBTN-FB":130,"BR-RelacionamentoBTN-FB":70,"FREU-RelacionamentoBTN-FB":325,"NL-RelacionamentoBTN-FB":350,"ENRU-RelacionamentoBTN-FB":275,"RU-RelacionamentoBTN-FB":70,"BR-RelacionamentoBTN2-FB":70,"ENAF-MusicsretroBTN-FB":55,"ENRU-filmeseriesBTN-FB":200,"RO-filmeseriesBTN-FB":100,"AREU-FutebolBTN-FB":400,"FRMD-FutebolBTN-FB":55,"ARM-FutebolBTN-FB":35,"ARM-RelacionamentoBTN3-FB":30,"AROM-RelacionamentoBTN3-FB":100,"DE-RelacionamentoBTN3-FB":350,"BR-RelacionamentoBTN3-FB":75,"ESM-RelacionamentoBTN3-FB":75,"ESCB-RelacionamentoBTN3-FB":45,"ESCH-RelacionamentoBTN3-FB":180,"ESEU-RelacionamentoBTN3-FB":375,"FREU-RelacionamentoBTN3-FB":350,"ENCA-RelacionamentoBTN3-FB":700,"ENRU-RelacionamentoBTN3-FB":700,"LT-RelacionamentoBTN-FB":225,"ARKU-RelacionamentoBTN3-FB":100,"ESMX-RelacionamentoBTN3-FB":60,"ESMX-GravidezBTN-FB":100,"SV-RelacionamentoBTN-FB":275},"plusmob.com_Top_Anchor":{"DE-RelacionamentoBTN-FB":75,"BR-RelacionamentoBTN-FB":55,"FREU-RelacionamentoBTN-FB":160,"NL-RelacionamentoBTN-FB":200,"ENRU-RelacionamentoBTN-FB":170,"RU-RelacionamentoBTN-FB":55,"BR-RelacionamentoBTN2-FB":55,"BN-MusicsretroBTN-FB":10,"SRO-MusicsretroBTN-FB":10,"ENAF-MusicsretroBTN-FB":45,"FRCN-filmeseriesBTN-FB":100,"ESCB-filmeseriesBTN-FB":45,"ENRU-filmeseriesBTN-FB":70,"RO-filmeseriesBTN-FB":25,"AREU-FutebolBTN-FB":250,"FRMD-FutebolBTN-FB":55,"ARM-FutebolBTN-FB":25,"ARM-RelacionamentoBTN3-FB":20,"AROM-RelacionamentoBTN3-FB":70,"DE-RelacionamentoBTN3-FB":170,"BR-RelacionamentoBTN3-FB":45,"ESM-RelacionamentoBTN3-FB":45,"ESCB-RelacionamentoBTN3-FB":40,"ESCH-RelacionamentoBTN3-FB":75,"ESEU-RelacionamentoBTN3-FB":100,"FREU-RelacionamentoBTN3-FB":150,"ENCA-RelacionamentoBTN3-FB":250,"ENRU-RelacionamentoBTN3-FB":180,"LT-RelacionamentoBTN-FB":150,"ARKU-RelacionamentoBTN3-FB":200,"ESMX-RelacionamentoBTN3-FB":35,"ESMX-GravidezBTN-FB":50,"SV-RelacionamentoBTN-FB":130,"HI-DivorciadaBTN-FB":20,"TH-DivorciadaBTN-FB":35,"TRM-DivorciadaBTN-FB":160,"BN-DivorciadaBTN-FB":10,"FREU-DivorciadaBTN-FB":120},"plusmob.com_m_Fixed":{"DE-RelacionamentoBTN-FB":20,"BR-RelacionamentoBTN-FB":20,"FREU-RelacionamentoBTN-FB":80,"NL-RelacionamentoBTN-FB":140,"ENRU-RelacionamentoBTN-FB":65,"RU-RelacionamentoBTN-FB":20,"BR-RelacionamentoBTN2-FB":15,"SRO-MusicsretroBTN-FB":10,"ENAF-MusicsretroBTN-FB":20,"ENRU-filmeseriesBTN-FB":35,"RO-filmeseriesBTN-FB":20,"AREU-FutebolBTN-FB":100,"FRMD-FutebolBTN-FB":25,"ARM-FutebolBTN-FB":10,"ARM-RelacionamentoBTN3-FB":7,"AROM-RelacionamentoBTN3-FB":20,"DE-RelacionamentoBTN3-FB":70,"BR-RelacionamentoBTN3-FB":10,"ESM-RelacionamentoBTN3-FB":15,"ESCB-RelacionamentoBTN3-FB":8,"ESCH-RelacionamentoBTN3-FB":30,"ESEU-RelacionamentoBTN3-FB":65,"FREU-RelacionamentoBTN3-FB":60,"ENCA-RelacionamentoBTN3-FB":30,"ENRU-RelacionamentoBTN3-FB":80,"LT-RelacionamentoBTN-FB":80,"ARKU-RelacionamentoBTN3-FB":25,"ESMX-RelacionamentoBTN3-FB":15,"ESMX-GravidezBTN-FB":40,"SV-RelacionamentoBTN-FB":50,"TRM-DivorciadaBTN-FB":15}}; 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);