Is it Safe to use with adsense ads?
-
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,
ParvinderThe page I need help with: [log in to see the link]
- The topic ‘Is it Safe to use with adsense ads?’ is closed to new replies.