Introduction
Welcome to my blog SR7Themes!
Today the topic is Adsense Approval Tricks and Tips Part 1
Hope this post might be useful to you and please stay tuned to our blog for further updates. Remember the end contains surprises!
Today we will guide you to Adsense Approval Tricks and Tips So please read the tutorial.
![]() |
Adsense Approval Tricks and Tips | © 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.
/* 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>
But if a person uses ad-blocker he willn't see this pop-up. So, we are going to use anti-ad blocker which detects the presence of ad-blocker and stops person from surfing the site further.
<b:widget id='HTML23' locked='true' title='Anti Ad-Blocker' type='HTML' version='2' visible='true'> <b:widget-settings> <b:widget-setting name='content'><![CDATA[<!--[ This is Anti Ad-Blocker that appears when visitors use Ad-Blocker ]-->]]></b:widget-setting> </b:widget-settings> <b:includable id='main'> <!--[ Anti Ad-Blocker by Freeplay]--> <div class='popSc hidden' id='antiAdBlock'> <div class='popBo'> <svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><circle cx='12' cy='12' r='10'/><line x1='12' x2='12' y1='8' y2='12'/><line x1='12' x2='12.01' y1='16' y2='16'/></svg> <h2>Ad-Blocker Detected!</h2> <p>Sorry, we detected that you have activated Ad-Blocker.<br/>Please consider supporting us by disabling your Ad-Blocker, it helps us in developing this Website.<br/>Thank you!</p> </div></div> <script>/*<![CDATA[*/ /* Anti Ad-Blocker Script by Freeplay */ var lazyAnti=!1;window.addEventListener("scroll",function(){(0!=document.documentElement.scrollTop&&!1===lazyAnti||0!=document.body.scrollTop&&!1===lazyAnti)&&(!function(){var antiAdBlock=document.querySelector("#antiAdBlock");var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js";e.onerror=function(){if(antiAdBlock!=null){antiAdBlock.classList.remove("hidden");window.lazyAnti=!0}};var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(e,a)}(),lazyAnti=!0)},!0); /*]]>*/</script> </b:includable> </b:widget>
Add this widget wherever you want but must be inside a section.
The second part of the tutorial would come in the Freeplay website.
Conclusion
I expressed my views on the topic 'Adsense Approval Tricks and Tips Part 1'. Hope you are furnished my opinion. The post mustn't be copied without prior permission by emailing or telegram.Source:
https://www.sr7themes.eu.org/2022/07/adsense-approval-tricks-and-tips.html