Google Adsense with Cakephp?

Asked

Viewed 41 times

1

I’m trying to put an Adsense banner on Cakephp and I’m not getting it, the banner just doesn’t show up. How to do this ?

footer.ctp

<footer>
<?php echo $this->fetch('script');?>

    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

        <ins class="adsbygoogle"
             style="display:block"
             data-ad-client="ca-pub-XXXXXXX"
             data-ad-slot="5082072999"
             data-ad-format="auto"></ins>
        <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

</footer>

1 answer

0

From what I was seeing in the documentation there is a problem:

It may be necessary to wait up to 48 hours for Google are displayed and up to a week for Adsense to start working searches on their websites, while we update the our servers with your account status change. Thank you your patience.

Wouldn’t that be the problem ?

  • will be ? hopefully yes, I will wait and whatever thing put here, thank you.

  • Give a checked if your code is being "plotted" in html being there the problem would be that "waiting time"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.