Installation troubles
-
Hi
I’ve followed the video but I can’t get it working on my site ??
At the bottom of functions.php I have this code:
add_shortcode( ‘testingad’, function() {
if( aicp_can_see_ads() ) {
return “<div class=”aicp”>
<script async src=”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– AdSense Responsive Ad Code –>
<ins class=”adsbygoogle”
style=”display:block”
data-ad-client=”ca-pub-1810522113508002″
data-ad-slot=”2367636574″
data-ad-format=”auto”>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
}
} );Then on the page where the ad displays, I have this:
<div class=”aicp”>
if( aicp_can_see_ads() ) {
<center><script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– Leaderboard –>
<ins class=”adsbygoogle”
style=”display:inline-block;width:728px;height:90px”
data-ad-client=”ca-pub-1810522113508002″
data-ad-slot=”2367636574″>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></center>
}
</div>What am I doing wrong? Thanks
- The topic ‘Installation troubles’ is closed to new replies.