• Resolved jumbay

    (@jumbay)


    I have placed the code but not working just displaying the ads. Please help me check. Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter jumbay

    (@jumbay)

    Plugin Author iSaumya

    (@isaumya)

    As I can see you haven’t implemented the AICP plugin properly. Please read the plugin description to know how to implement the plugin or watch the detailed explanatory video given inside the plugin description.

    It is has been clearly said that it is not a plug-n-play plugin. You have to add some codes to take advantage of this plugin.

    Thread Starter jumbay

    (@jumbay)

    I put this in my function theme
    add_shortcode( ‘testads’, function() {
    if( aicp_can_see_ads() ) { //This part will show ads to your non-banned visitors
    $adCode = ‘<div class=”aicp”>

    <center><script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
    <!– 360cub 336 by 280 –>
    <ins class=”adsbygoogle”
    style=”display:inline-block;width:336px;height:280px”
    data-ad-client=”ca-pub-”
    data-ad-slot=””>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script></center>
    </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>’;
    }
    } );

    • This reply was modified 7 years, 8 months ago by jumbay.
    Plugin Author iSaumya

    (@isaumya)

    Yes now you should use the shortcode to show ads like [testads]

    Thread Starter jumbay

    (@jumbay)

    That is what i did, just display ads not ban user or country. Check please ads between post 336 by 280 size

    Plugin Author iSaumya

    (@isaumya)

    As I see you have not selected yes to the question where it says do you want to block ads on specific country. It is still in No. That’s why it is not blocking.

    Thread Starter jumbay

    (@jumbay)

    Wow! great working now.. Please can you help me confirm invalid click it has already set to 1 just to test?

    Thread Starter jumbay

    (@jumbay)

    This is a great plugin. Its now working for me perfectly. Thanks Man

    Plugin Author iSaumya

    (@isaumya)

    I’m glad to know. Feel free to post a review and if possible donate some amount.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Country block And user ban not working’ is closed to new replies.