Testing Google Adsense Localhost (TGAL)

Is it possible to run google adsense ads on local server as a test application? I want to implement Google adsense ads on my web application running on localost to be implemented on live website. If possible then please enlighten me. Thanks.

Completion

Yes it is possible. There are special parameters, to use Adsense on Localhost without risk.

Today AdSense code is different. If you want to add parameter-adtest use data-adtest = "on" in ins block. Here is an example:

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- XYZ 336 x 280 -->
<ins class="adsbygoogle"
 style="display:inline-block;width:336px;height:280px"
 data-ad-client="ca-pub-XXXXXXXXXXXXX"
 data-adtest="on"
 data-ad-slot="XXXXXXXXXXX"></ins>
<script>
  (adsbygoogle = window.adsbygoogle || []).push({});
</script>

Post a Comment

Previous Next

نموذج الاتصال