Title: AICP code import issue
Last modified: April 18, 2022

---

# AICP code import issue

 *  [gplkeeda](https://wordpress.org/support/users/gplkeeda/)
 * (@gplkeeda)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/aicp-code-import-issue/)
 * Dear sir,
    If we enter this code is it Right or Wrong, that I don’t understand
   how to enter, as mentioned in your plugin if he enter code, show full code. So
   tell whether the code we have entered is true or false. This code is also yours
   but it does not show the code as seen in the first one. For this we are asking
   whether it will work or not. See The Code In Below,
 *     ```
       <div class="aicp">
       <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-XXXXXXXXXXXXXX"
            crossorigin="anonymous"></script>
       </div>
       ```
   
    -  This topic was modified 4 years, 1 month ago by [gplkeeda](https://wordpress.org/support/users/gplkeeda/).
    -  This topic was modified 4 years, 1 month ago by [gplkeeda](https://wordpress.org/support/users/gplkeeda/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/aicp-code-import-issue/#post-15573793)
 * You need to wrap your code within the PHP code as shown in the plugin description
   section. For example if you are directly adding the ad code inside your theme
   template or somewhere and not using a shortcode it would be something like this:
 *     ```
       <?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>
           <!-- 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;
       }
       ?>
       ```
   
 * Please check the plugin description section.

Viewing 1 replies (of 1 total)

The topic ‘AICP code import issue’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [iSaumya](https://wordpress.org/support/users/isaumya/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/aicp-code-import-issue/#post-15573793)
 * Status: not resolved