Support » Plugin: Ad Inserter - Ad Manager & AdSense Ads » adsense code error

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Spacetime

    (@spacetime)

    This is javascript code form blocks 2 and 3.

    Something has stripped away <script> tags from your ad code.

    Thread Starter Livingstone

    (@livingstone)

    @spacetime Should I generate another ad code and do a replacement? Will it work correctly?

    • This reply was modified 2 years, 9 months ago by Livingstone.
    Plugin Author Spacetime

    (@spacetime)

    No, you need to figure out what is removing the script tags.

    Try to disable all plugins, flush the cache and then enable one by one.

    Thread Starter Livingstone

    (@livingstone)

    Ok. Thanks

    Thread Starter Livingstone

    (@livingstone)

    Nothing found sir

    Plugin Author Spacetime

    (@spacetime)

    The issue you have has nothing to do with Ad Inserter.
    It inserts the codes into the content as configured.
    However, something removes script tags from the content.

    For block 3:

    <div class='code-block code-block-3' style='margin: 8px auto; text-align: center; display: block; clear: both;'>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- Paragraph Mobi -->
    <ins class="adsbygoogle"
         style="display:block"
         data-ad-client="ca-pub-7840641255180449"
         data-ad-slot="8925818277"
         data-ad-format="auto"
         data-full-width-responsive="true"></ins>
    <script>
         (adsbygoogle = window.adsbygoogle || []).push({});
    </script></div>

    Maybe some security setting on the server.
    I would suggest to contact your hosting company.

    Thread Starter Livingstone

    (@livingstone)

    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘adsense code error’ is closed to new replies.