Plugin / AdSense Invalid Click Protector (AICP)

Saumya Majumder

Frequently Asked Questions (FAQ)

I know there are many WordPress plugin where you basically paste your AdSense code and it shows your ad at various position of your website. But unfortunately it is not humanly possible for me to check every single plugin of such out there or contact each plugin developer. Here I’m showing you how to incorporate the AdSense Invalid Click Protector (AICP) plugin with your website’s ad code, so that both other plugin developers and normal users who use custom codes to show up their ads can take advantage of this. To use the AdSense Invalid Click Protector plugin with your ad code you basically have to do 2 simple things. Put a if( aicp_can_see_ads() ) { /* return your ad code here */ } block before returning your ad code to the front end Wrap your ad code within a simple div tag like this
...your ad code goes here...
Personally I create various WordPress shortcodes for various ad units that I use on my personal website. It is extremely easity to create shortcodes for your ad units while taking the advantage of AdSense Invalid Click Protector Plugin. Let me show you how to create a WordPress shortcode very easily. To create a shortcode the first thing you need to do is, go to the functions.php file of your theme or your child theme and at the end of yoru file put any of the following code. If you are using a PHP version < 5.3, you can create a shortcode in the following way: add_shortcode( 'your_shortcode_name', 'your_shortcode_function_name' ); function your_shortcode_function_name() { if( aicp_can_see_ads() ) { // This part will show ads to your non-banned visitors $adCode = '
'; return $adCode; } else { // Anything within this part will be shown to your banned visitors or to the blocked country visitors return '
You have been blocked from seeing ads.
'; } } If you are using PHP version >= 5.3, you don’t need to give a function name, instead you can take advantage of of anonymous function like this way: add_shortcode( 'your_shortcode_name', function() { if( aicp_can_see_ads() ) { // This part will show ads to your non-banned visitors $adCode = '
'; return $adCode; } else { // Anything within this part will be shown to your banned visitors or to the blocked country visitors return '
You have been blocked from seeing ads.
'; } } ); Please Note: if you want, you can completely ignore the else {} block above in case you don’t wanna show anything special to the blocked visitors.
You can install the WP Server Stats plugin in your website which will show you many important information about your hosting environment including what PHP version you are currently using.
No It is not. This plugin will only work with AdSense ads or any ad media that shows iframe based ads. Recently Google has tweaked there ad code which makes merely impossible to support both iframe based ads like AdSense and non-iframe based ads, like affiliate ads. In case of affiliate ads, there is generally no click bombing issue, that is why from v1.1.0, AICP will only support iframe based ads and not general affiliate ads. Sorry guys! In case you want to use AICP just for affiliate ads, I will recommend you to download v1.0.6 of the plugin from the old archive.
No, you are not supposed to click on your own ads. If you want you can use adblock in your borswer to save yourself from accidental clicking on your own ads.

Ratings

4.6
36 reviews

Rating breakdown

Details Information

Version

1.2.3

First Released

15 Nov, 2016

Total Downloads

48,565

Wordpress Version

4.2 or higher

Tested up to:

5.2.4

Require PHP Version:

-

Tags

There is no tag found

Contributors

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.