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

    (@spacetime)

    Hello,

    can you please provide some information about the errors?

    The latest version brings some additional support for AMP pages:

    Normally the code will not be inserted on AMP pages. There are two settings that can be used to insert code on AMP pages:

    1. AMP pages checkbox in Misc / Insertion section – If checked it enables insertion also on AMP pages. Use this approach only if you need to insert the same code on normal and AMP pages. To insert different codes on AMP pages use [ADINSERTER AMP] separator as described below.

    2. Separate the codes with [ADINSERTER AMP] separator – the code above the separator will be inserted on normal pages, the code below the separator will be inserted on AMP pages. This separator can be used also for Header and Footer code.

    Example of code for AdSense

    <script type="text/javascript" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" async=""></script>
    <!-- Normal page -->
    <ins class="adsbygoogle" 
    style="display: block;" 
     data-ad-client="ca-pub-1234567890123456"
     data-ad-slot="12345678901"
    data-ad-format="auto"></ins>
    <script type="text/javascript">// <![CDATA[
    (adsbygoogle = window.adsbygoogle || []).push({});
    // ]]></script>
    
    [ADINSERTER AMP]
    
    <amp-ad
    layout="fixed-height"
    height=100
    type="adsense"
    data-ad-client="ca-pub-1234567890123456"
    data-ad-slot="12345678901">
    </amp-ad>

    Yup latest update has crashed AMP. How can we fix it without jumping through hoops?

    Plugin Author Spacetime

    (@spacetime)

    Plugin Author Spacetime

    (@spacetime)

    Can you please try development version:
    https://downloads.wordpress.org/plugin/ad-inserter.zip

    Plugin Author Spacetime

    (@spacetime)

    Does the latest development version solve the problems on AMP pages?

    Plugin Author Spacetime

    (@spacetime)

    I assume there are no more issues on AMP pages.

    Checking now on staging site. But is it the same update?

    Plugin Author Spacetime

    (@spacetime)

    The latest version 2.2.2 has no known issues.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Adinserter conflicts with AMP plugin’ is closed to new replies.