Title: Shorcode not working
Last modified: November 4, 2019

---

# Shorcode not working

 *  Resolved [krekels](https://wordpress.org/support/users/krekels/)
 * (@krekels)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/shorcode-not-working-3/)
 * Hello,
 * I would like to use your plugin, but when I put your shortcode to the adinserter,
   and it is not working. For me not clear what to edig with the code. I use this
   code:
 * 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”> <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>’; } } );
 * A changed the ads code inside. But what else I need to do?
    This is how looks
   like: [https://i.imgur.com/sGZX6IR.png](https://i.imgur.com/sGZX6IR.png) I have
   double click penalty from adsense since september, and I would like to solve 
   it with your plugin if possible. Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/shorcode-not-working-3/#post-12093252)
 * Have you watched the video? Shortcode is a different approach and Ad Inserter
   is different. Please check the video on the plugin description.

Viewing 1 replies (of 1 total)

The topic ‘Shorcode not working’ 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: [6 years, 6 months ago](https://wordpress.org/support/topic/shorcode-not-working-3/#post-12093252)
 * Status: resolved