Support » Plugin: AdSense Invalid Click Protector (AICP) » Shorcode not working

  • Resolved krekels

    (@krekels)


    Hello,

    I would like to use your plugin, but when I put your shortcode to the adinserter, and it is not working. For me not clear what to edig with the code. I use this code:

    add_shortcode( ‘your_shortcode_name’, function() {
    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>
    <!– AdSense Responsive Ad Code –>
    <ins class=”adsbygoogle”
    style=”display:block”
    data-ad-client=”ca-pub-1234567890″
    data-ad-slot=”0987654321″
    data-ad-format=”auto”>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
    </div><!– end of the aicp div –>’;
    return $adCode;
    } else { // Anything within this part will be shown to your banned visitors or to the blocked country visitors
    return ‘<div class=”error”>You have been blocked from seeing ads.</div>’;
    }
    } );

    A changed the ads code inside. But what else I need to do?
    This is how looks like: https://i.imgur.com/sGZX6IR.png
    I have double click penalty from adsense since september, and I would like to solve it with your plugin if possible.
    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Saumya Majumder

    (@isaumya)

    Have you watched the video? Shortcode is a different approach and Ad Inserter is different. Please check the video on the plugin description.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.