Title: Help with code
Last modified: January 5, 2021

---

# Help with code

 *  [sofianorway](https://wordpress.org/support/users/sofianorway/)
 * (@sofianorway)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/help-with-code-19/)
 * Hello guys thank you for this amazing plug in, unfortunately can’t get it to 
   work properly…
    I just of someone could please show me the right way to do it..
   Or just paste the code here

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/help-with-code-19/#post-13865096)
 * Hi [@sofianorway](https://wordpress.org/support/users/sofianorway/),
    The code
   has already been shared in the plugin description. Please read the plugin description.
   Everything is mentioned there along with example code.
 *  Thread Starter [sofianorway](https://wordpress.org/support/users/sofianorway/)
 * (@sofianorway)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/help-with-code-19/#post-13884535)
 * I do put it as it is but it does show extra writing along the AdSense code… What
   am i doing wrong?
 *  Plugin Author [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/help-with-code-19/#post-13884666)
 * Please share the code that you have added. You have definitely made some mistakes.
   Without looking at the code you have added, hard to say anything.
 *  Thread Starter [sofianorway](https://wordpress.org/support/users/sofianorway/)
 * (@sofianorway)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/help-with-code-19/#post-13893983)
 * Hi this is what I did….
 * 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=”[https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script&gt](https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script&gt);
   <!– before post recipasta –> <ins class=”adsbygoogle” style=”display:block” data-
   ad-client=”ca-pub-5558553902964468″ data-ad-slot=”4710020210″ data-ad-format=”
   auto” data-full-width-responsive=”true”> <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>’; } } );
 *  Plugin Author [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/help-with-code-19/#post-13896101)
 * Can you share a screenshot of what it is showing in the frontend?
 *  Thread Starter [sofianorway](https://wordpress.org/support/users/sofianorway/)
 * (@sofianorway)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/help-with-code-19/#post-13960238)
 * i can’t work out how to post screenshot …
 *  Plugin Author [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/help-with-code-19/#post-13962384)
 * Hi [@sofianorway](https://wordpress.org/support/users/sofianorway/),
    Please 
   Google and Youtube about it. As without looking at the problem I cannot diagnose
   it in any way.
 *  Thread Starter [sofianorway](https://wordpress.org/support/users/sofianorway/)
 * (@sofianorway)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/help-with-code-19/#post-13963746)
 * The code shows me on my website the actual adslvwrtisent and some writing from
   the code like the message :
 * add_shortcode( ‘your_shortcode_name’, function() {
    if( aicp_can_see_ads() ) {//
   This part will show ads to your non-banned visitors
 * < The actual advertisement works here >
 * return ‘<div class=”error”>You have been blocked from seeing ads.</div>’;
 *  Thread Starter [sofianorway](https://wordpress.org/support/users/sofianorway/)
 * (@sofianorway)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/help-with-code-19/#post-13971508)
 * do you have any app that i can send you my screenshot please ??

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Help with code’ is closed to new replies.

 * ![](https://ps.w.org/ad-invalid-click-protector/assets/icon-256x256.png?rev=1534940)
 * [Ad Invalid Click Protector (AICP)](https://wordpress.org/plugins/ad-invalid-click-protector/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ad-invalid-click-protector/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ad-invalid-click-protector/)
 * [Active Topics](https://wordpress.org/support/plugin/ad-invalid-click-protector/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ad-invalid-click-protector/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ad-invalid-click-protector/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [sofianorway](https://wordpress.org/support/users/sofianorway/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/help-with-code-19/#post-13971508)
 * Status: not resolved