1. Whether this AICP plugin will work if I already have Nitro pack (speed optimising plugin) on my worpress website. Plz suggest me
AICP will not work with any page caching plugin no matter what.
2. My current php is very 7.3. You have suggested that for above php ver 5.5 on the description you have given complete set of codes including short code and along with the as usual ad code. I have confused regarding which type of shortcodes I need to add their.
So For your reference – my purposes is just I need to protect my site from invalid clicks so for that can you please give me exact code below and suggest me where I need to add the code.it will be more helpful to apply. I’m a beginner so Please provide me.
If you are using the shortcode approach for adding the ad codes to your content then you can add your shortcode like this:
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="//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"></ins>
<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>';
}
} );
If you are using the Ad Inserter plugin to insert ad codes then you will add it like this:
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"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div><!-- end of the aicp div -->';
echo $adCode;
} else { // Anything within this part will be shown to your banned visitors or to the blocked country visitors
echo '<div class="error">You have been blocked from seeing ads.</div>';
}
3.your suggested code should be in each and every pages of my website or else just by adding function.Php will be enough to implenet. Because I like to prefer manually adding ad codes using via theme option to sidebars and pages. So please suggest me.
I think you should use the Ad Inserter plugin which will give you a much more control over how and where you want to show your ads.
4. Based on your experience please suggest me that, in your description you have mentioned this plugin will not work for mobile. My query is if multiple clicks happend through mobile or tablet whether it may affect the Adsense account through this invalid Clik activity particularly on mobile and tab. Can it lead to ban account. I’m a beginner so please share your opinion regarding this?
This generally doesn’t happen. The main problem is the handheld devices don’t use click they use touch which is why it is insanely hard to detect when a touch happens inside and iframe or something like that. I don’t think your account should face any issues.