• Resolved schedar

    (@schedar)


    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;
    }

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Variable $adCode does not produce output’ is closed to new replies.