![]() |
@ AdSense Tricks by Freeplay and SR7THEMES |
See first of all, I haven't got my AdSense approved. So you may fear that how can I give you the best AdSense tricks? See Physicswallah is also not an IITian but he made many students of him into IIT. Same is with me.
You will find these code in your template
<b:if cond='!data:view.isPage'>
<!--[ Lazy adsense Script with auto ads ]-->
<!--<script>/*<![CDATA[*/ var lazyadsense = false; window.addEventListener('scroll', function(){if ((document.documentElement.scrollTop != 0 && lazyadsense === false) || (document.body.scrollTop != 0 && lazyadsense === false)) { (function() { var ad = document.createElement('script'); ad.setAttribute('crossorigin','anonymous'); ad.async = true; ad.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-0000000000000000'; var sc = document.getElementsByTagName('script')[0]; sc.parentNode.insertBefore(ad, sc); })(); lazyadsense = true; }}, true); /*]]>*/</script>-->
</b:if>
This code is present but it is not doing any work. In order to make it working, replace the above code with the below code:
<b:if cond='!data:view.isPage'> <!--[ Lazy adsense Script with auto ads ]--> <script>/*<![CDATA[*/ var lazyadsense = false; window.addEventListener('scroll', function(){if ((document.documentElement.scrollTop != 0 && lazyadsense === false) || (document.body.scrollTop != 0 && lazyadsense === false)) { (function() { var ad = document.createElement('script'); ad.setAttribute('crossorigin','anonymous'); ad.async = true; ad.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-0000000000000000'; var sc = document.getElementsByTagName('script')[0]; sc.parentNode.insertBefore(ad, sc); })(); lazyadsense = true; }}, true); /*]]>*/</script> </b:if>
This will lazyload your ads. Now make one more replacement. Find:
<!--[ Defer Adsense script use shinsenter/defer.js ]-->
<!--<script type='deferjs' src='https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-0000000000000000' crossorigin='anonymous'/>-->
This code is present but it is not doing any work. In order to make it working, replace the above code with the below code:
<!--[ Defer Adsense script use shinsenter/defer.js ]--> <script type='deferjs' src='https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-0123456789012345' crossorigin='anonymous'/>
Now the great blogger AnuTrickz has shared a ad pop-up which closes only when you click the ads.
< div class='pre hl notranslate'>
/* CODE BY ANUTRICKZ */ <style> .AT-PCA-close {position: absolute; top: 38%; right: 46%; color: #666; margin: 0 auto; display: inline-block; font-size: 14px; font-weight: bold; cursor: pointer; z-index: 9;} .popup-container { max-width: 500px; margin: 0 auto; margin-top: 100px; background: white; padding: 15px; border-radius: 24px; position: relative; box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6); } .AD-pop-header{ font-size: 20px; text-align: center; font-weight: bold;text-align: center; border-bottom: 1px solid #ccc; padding-bottom: 14px; } .AT-PCA { background: rgba(0, 0, 0, 0.8); position: fixed; z-index: 100; height: 100vh; width: 100%; left: 0; top: 0; display: none; z-index:9999;transition: 0.5s ease;} .AT-PCA .AT-PCA-close-wrapper { margin: 4px 0 4px; min-height: 290px;position:relative; } .AT-PCA.show-btn{ display:block; transition: 0.5s ease; } .AT-PCA.hide-btn{ display: none; transition: 0.5s ease; } </style> <div class='AT-PCA show-btn'> <div class='popup-container'> <div class='AD-pop-header'> Click ad to close pop-up </div> <div class='AT-PCA-close-wrapper'> <p class=''> <ins class='adsbygoogle' data-ad-client='ca-pub-000000000000' data-ad-format='auto' data-ad-slot='000000' data-full-width-responsive='true' style='display:block'/> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </p><div class='AT-PCA-close'>close x</div> </div> </div></div> <script>//<![CDATA[ const adssContainer = document.querySelector(".AT-PCA"); const closeBtn = adssContainer.querySelector(".AT-PCA-close"); closeBtn.addEventListener("click", () => { document.cookie = "WebsiteName01=anutrickz01; max-age=" + 24*60*60; adssContainer.classList.add("hide-btn"); setTimeout(()=>{ adssContainer.classList.add("hide"); }, 2000); }); const siteCookie01 = document.cookie.indexOf("WebsiteName01="); if(siteCookie01 != -1){ adssContainer.classList.remove("show-btn"); } else{ adssContainer.classList.add("show-btn");} //]]> </script>