• I have seen your full video tutorial about this plugin. According to the plugin description section I have installed Plugin on my website, but adsense ad display is showing some code above and below.
    My WordPress website’s PHP version 5.6.32, Database Version: 10.1.24, the latest version of WordPress 4.8.3. WordPress theme Name “Breaking News” Version: 2.1,By RoyalwpThemes, Premium News WordPress theme.
    I used to place the code as below.

    add_shortcode( ‘top_header_ad’, function() {
    if( aicp_can_see_ads() ) { // This part will show ads to your non-banned visitors

    ———————- Here Google Adsense Ad Code 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”>Advertisement Here</div>’;
    }
    } );

    Note that since my theme is not an editor option, I can login with cpanel and go to the edit option of the functions.php file in theme / templete and
    then insert the above code and display the ad in the header of my website and adsense ad display is showing some code above and below.

    I mainly want to display my adsense ads through a few Widgets, which will be displayed on my entire website.So my ad shortcode will still not demand.
    AdSense Invalid Click Protector has been installed properly, no error message has been shown. Version 1.2.1 | By Saumya Majumder
    Just keep the following code in different widgets, whether it works?

    if( aicp_can_see_ads() ) {
    <div class=”aicp”>
    ———————- Here Google Adsense Ad Code Script ————————–
    </div>
    }

    I will be always grateful if you solve this issue. Hope you find me a simple solution. Thank you in advance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author iSaumya

    (@isaumya)

    Can you show me the exact code you are using in you are using in your function.php file? Change your publisher id with 12345

    Also by default you cannot show shortcodes i widgets. To enable shortcode in widgets check this: https://www.wpbeginner.com/wp-tutorials/how-to-use-shortcodes-in-your-wordpress-sidebar-widgets/

    Thread Starter borhanbd

    (@borhanbd)

    add_shortcode( ‘top_header_ads’, 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=”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script&gt;
    <!– 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”>Advertisement Here</div>’;
    }
    } );

    Thread Starter borhanbd

    (@borhanbd)

    After inserting the above code into the function.php file, the shape of the website becomes chaotic.

    Plugin not tracking the clicks and not block ads after limit cross of same ip. After 10 days its not working now. Plugin asking some donation as well. Can you fix it?

    Plugin Author iSaumya

    (@isaumya)

    It has nothing to do with the donation. If you want if you can donate, if you don’t want no one is forcing you. Can you share your site link so that I can check if your ad blocks are properly implemented with AICP guidelines or not?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Side note to @isaumya I’ve deleted your offer to login to your user’s site. I’m am 100% sure you mean well but please never ask for credentials on these forums.

    https://www.ads-software.com/support/guidelines/#the-bad-stuff

    Now for the why: The internet is a wonderful place full of very nice people and a few very bad ones. I’m sure everyone here is very nice however, by giving some ones keys to your house you are trusting they wont steal anything. Likewise the person who takes the keys is now responsible for the house FOREVER.

    If something was to go wrong, then you the author may well legally become liable for damages, which they would not normally have been as their software is provided without warranty.

    Please be aware that repeatedly asking for credentials will result in us asking you to repeatedly stop before escalating up to the plugins team.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not working properly !!!’ is closed to new replies.