Variable $adCode does not produce output
-
Hi,
Thanks for valuable plugin.
I have one issue – the first code works, but the second doesn’t. Any idea why?if( aicp_can_see_ads() ) {
print ‘<div class=”aicp”>
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<ins class=”adsbygoogle”
style=”display:block”
data-ad-client=”ca-pub-2299591524042345″
data-ad-slot=”12345678″
data-ad-format=”auto”>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>’;
}if( aicp_can_see_ads() ) {
$adCode = ‘<div class=”aicp”>
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<ins class=”adsbygoogle”
style=”display:block”
data-ad-client=”ca-pub-2299591524042345″
data-ad-slot=”12345678″
data-ad-format=”auto”>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>’;
return $adCode;
}
- The topic ‘Variable $adCode does not produce output’ is closed to new replies.