How to advertise on a website written in PHP?

Test site, but not working .

AdSense code:

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- izdeme.kz --> <ins class="adsbygoogle" style="display:inline-block;width:468px;height:60px" data-ad-client="ca-pub-12122508483470146" data-ad-slot="3000096519"> </ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> 
  • Apparently, AdSense just does not give you advertising - Cobalt

2 answers 2

The AdSense code on the test site seems to be placed correctly.

By the way, how long has an AdSense account been created? If recently, you will have to wait until the site passes moderation. During moderation, ads will not appear. If the site has not passed moderation, it remains only to correspond with the AdSense moderators.

  • Yes, the account was created long ago! - Aslan Kussein

The first thing you need to do is disable any extensions that block ads :)

If you have not placed ads anywhere else (anywhere except this test page), then you will not pass moderation. That is why, most likely, you do not show ads.

Solution: Complete the moderation by placing ads on a real site (where you plan to continue to show ads)

It is also advisable to familiarize yourself with the rules for advertising: AdSense Rules: Beginner’s Guide