Re: AdSense Error

Posted by Harvey on
URL: https://support.nabble.com/AdSense-Error-tp7582856p7587480.html

Pedro you designed this solution for me to this problem:
       
<macro name="ad_adSenseBoard">
    <div class="ad shaded-bg-color rounded" style="padding:.5em 0">
        <script type="text/javascript">                          
            google_ad_client = "ca-pub-0156740191883467";
            /* Leaderboard */
            google_ad_slot = "9529659947";
            google_ad_width = 728;
            google_ad_height = 90;
            google_page_url = "<n.current_url/>";
        </script>
        <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
        </script>
    </div>
</macro> 

This line solved the issue:  

google_page_url = "<n.current_url/>";

Google has introduced new code:

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Leaderboard (Forum) -->
<ins class="adsbygoogle"
     style="display:inline-block;width:728px;height:90px"
     data-ad-client="ca-pub-0156740191883467"
     data-ad-slot="9529659947"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

Where would you put the URL line?

Another issue not sure if it is related to the work we are doing in app_body_header... getting this error from adsense:

Your page has 3 blocking script resources and 3 blocking CSS resources. This causes a delay in rendering your page.
HTTPS Please!