• Dear sir,
    If we enter this code is it Right or Wrong, that I don’t understand how to enter, as mentioned in your plugin if he enter code, show full code. So tell whether the code we have entered is true or false. This code is also yours but it does not show the code as seen in the first one. For this we are asking whether it will work or not.
    See The Code In Below,

    <div class="aicp">
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-XXXXXXXXXXXXXX"
         crossorigin="anonymous"></script>
    </div>
    • This topic was modified 2 years, 7 months ago by gplkeeda.
    • This topic was modified 2 years, 7 months ago by gplkeeda.
Viewing 1 replies (of 1 total)
  • Plugin Author iSaumya

    (@isaumya)

    You need to wrap your code within the PHP code as shown in the plugin description section. For example if you are directly adding the ad code inside your theme template or somewhere and not using a shortcode it would be something like this:

    <?php
    if( aicp_can_see_ads() ) { // This part will show ads to your non-banned visitors
        $adCode = '<div class="aicp"><!-- Don\'t forget to add this div with aicp class -->
        <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
        <!-- Responsive Ad Code -->
        <ins class="adsbygoogle"
             style="display:block"
             data-ad-client="ca-pub-1234567890"
             data-ad-slot="0987654321"
             data-ad-format="auto"></ins>
        <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
        </script>
        </div><!-- end of the aicp div -->';
        echo $adCode;
    }
    ?>

    Please check the plugin description section.

Viewing 1 replies (of 1 total)
  • The topic ‘AICP code import issue’ is closed to new replies.