• Hi, AICP Team!

    If I use this plugin with Adsense then my account will be banned or not? I am talking about using the PHP code you have given. Because in this threat of Google Adsense it is written that if you modify the code, then the account will be banned.

    Your Code for hiding ads:
    <?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>
    <!– 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>’;
    }
    ?>

    Please help me is it safe to use with Adsense ads?

    Thanks,
    Parvinder

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author iSaumya

    (@isaumya)

    With AICP you are not modifying the Adsense code in any way instead you are wrapping the code given by Google to a few extra lines of code. So, there is no policy violation here.

    But do note that AICP does not work with auto ads. It only works when you manually add a ad block for a specific size ad or a responsive ad.

Viewing 1 replies (of 1 total)
  • The topic ‘Is it Safe to use with adsense ads?’ is closed to new replies.