Support » Plugin: AdSense Invalid Click Protector (AICP) » Not working with Ad Inserter

  • Resolved reputeinfosystems

    (@reputeinfosystems)


    Hi,

    This seem very interesting plugin but its not working with ad inserter in my case.

    here is my code

    <?php 
    	if(aicp_can_see_ads()) {
    		$adCode = '<div class="aicp"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- xxx sidebar --><ins class="adsbygoogle"
         style="display:block"
         data-ad-client="xxxxxxx"
         data-ad-slot="xxxxxx"
         data-ad-format="auto"
         data-full-width-responsive="true"></ins>
         <script>(adsbygoogle = window.adsbygoogle || []).push({});</script></div>';
    		echo $adCode;
    	}
    ?> 

    btw i am using wp fastest cache plugin as well.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Saumya Majumder

    (@isaumya)

    Hi, first of all, disable the cache plugin and also make sure both AICP and Ad Inserter is activated. Also, check inside ad inserter the PHP execution block is enabled. Moreover, check where you are showing your ad. For testing try showing the ad after 1st paragraph. Also, check you have ad blocker disabled on your site. You can also try checking the site on an incognito window as a normal user, without logging into the admin.

    Let me know the findings.

    reputeinfosystems

    (@reputeinfosystems)

    Hello,

    1. yes both plugins are active.
    2. yes php executing block is enabled.
    3. showing ad after first paragraph as you suggested.
    4. Ad blocker is not matter as its on page simple ad. Actual issue is ad are not stopping to be shown after 3 times i click. they keep on showing unlimited time.

    5. caching plugin disabling is not making sense. so, it wont work with caching?

    Thanks

    Plugin Author Saumya Majumder

    (@isaumya)

    Hi,
    can you share your site url where I can check? No it won’t work with caching plugin. Because the way caching plugin works is that it creates an HTML version of that page in the cache system. So, when the next user visits it shows the HTML page without executing PHP and generating the dynamic HTML. But this plugin needs the PHP to work generating dynamic HTML.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not working with Ad Inserter’ is closed to new replies.