Hi, I have added shortcodes like this in functions.php file –
add_shortcode( 'M1', 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>
<!-- M1 -->
<ins class="adsbygoogle"
style="display:inline-block;width:300px;height:250px"
data-ad-client="ca-pub-XXXX"
data-ad-slot="6371855059"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div><!-- end of the aicp div -->';
return $adCode;
}
} );
Also not sure how is this possible, but it’s logging same IP every time. I’m seeing the click from IP 162.144.26.58 (the same one as I mentioned before) at 2019-04-14 11:58:29.
There is no caching apart from cloudfare caching of website’s static content (JS, CSS, etc)
-
This reply was modified 5 years, 7 months ago by coolph.
-
This reply was modified 5 years, 7 months ago by coolph.