Not working properly !!!
-
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.
- The topic ‘Not working properly !!!’ is closed to new replies.