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

  • Resolved krekels



    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=”//”></script>
    <!– AdSense Responsive Ad Code –>
    <ins class=”adsbygoogle”
    (adsbygoogle = window.adsbygoogle || []).push({});
    </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:
    I have double click penalty from adsense since september, and I would like to solve it with your plugin if possible.

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


    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)
  • The topic ‘Shorcode not working’ is closed to new replies.