AdRotate Adsense not displayed
-
Hi, I have a problem on the homepage.
I can’t see the AdSense banners in this script I created to place AdRotate banners on the homepage.
The AdRotate code is contained within this script:<div id="banner2702">[adrotate group="49"]</div> <script>setTimeout(function(){ var $sitename = jQuery('#content .section-twin-wrap:eq(0) .category-section:eq(0)'); $sitename.find('header').removeClass('bd2').css('padding', '3px'); $sitename.find('header h2').remove(); $sitename.find('header a').remove();$sitename.find('article').remove(); var cormagad = jQuery('#banner2702').html(); jQuery('#banner2702').remove(); $sitename.find('header').after(cormagad); setTimeout(function(){ try { } catch(e) { console.log(e);} }, 100); }, 10);</script>
The following is displayed in the homepage source:
<script type="text/javascript">var timesIsCustomCodeModule=!0,timesCustomCodeModule=[{"mobile":"<script>jQuery('#content .section-twin-wrap:eq(0) .category-section:eq(0)').remove();<\/script>","tablet":"<script>jQuery('#content .section-twin-wrap:eq(0) .category-section:eq(0)').remove();<\/script>","desktop":"<div id=\"banner2702\"><div class=\"gacaole gacaole-5\"><div class=\"gacaole-dyn aacaole-48 c-1\"><img src=\"https:\/\/www.mysite.it\/wp-content\/uploads\/2019\/05\/banner-300x600-1.jpg\" \/><\/div><div class=\"gacaole-dyn aacaole-15 c-2\"><img src=\"\/wp-content\/uploads\/2019\/03\/bannerr930525.jpg\" \/><\/div><div class=\"gacaole-dyn aacaole-45 c-3\"><a class=\"gofollow\" data-track=\"NDUsNSwxLDYw\" href=\"https:\/\/www.facebook.com\/clientpage\/\"><img src=\"https:\/\/www.mysite.it\/wp-content\/uploads\/2019\/05\/300x600_banner_3x2_mag2019.png\" \/><\/a><\/div><div class=\"gacaole-dyn aacaole-49 c-4\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n\r\n<ins class=\"adsbygoogle\"\r\n style=\"display:inline-block;width:300px;height:600px\"\r\n data-ad-client=\"ca-pub-XXXXXX-MY-CA-PUB-XXXX\"\r\n data-ad-slot=\"7324574085\"><\/ins>\r\n<script>\r\n(adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><\/div><\/div><\/div>\n<script>setTimeout(function(){ var $sitename=jQuery('#content .section-twin-wrap:eq(0) .category-section:eq(0)');\n$sitename.find('header').removeClass('bd2').css('padding', '3px');\n$sitename.find('header h2').remove();\n$sitename.find('header a').remove();$sitename.find('article').remove();\nvar cormagad=jQuery('#banner2702').html(); jQuery('#banner2702').remove();\n$sitename.find('header').after(cormagad);\nsetTimeout(function(){\ntry {\n } catch(e){ console.log(e);}\n}, 100); }, 10);<\/script>"}];</script>
I no longer see the Adsense banners I believe from the latest AdRotate update.
Last month I had no problems with this code.
Thank’s for your job.
MarcoPS. You’re official forum not work. It’s impossibile publish threads.
- The topic ‘AdRotate Adsense not displayed’ is closed to new replies.