How to add google advertisements script to you blogger
There is no need to write separate script to publish to the in the blogger.
When you goto adsense home page there two ways to publish the adds
1.Automatic
Make sure to enable on in auto ads and also enable to optimise code global settings so that adds are displayed smoothly
2. Manual code Generation
in the above screen shot goto by ad unit
customise the image size and you will get code as shown below
copy paste that code in html script gadget or in between html original code
script for google ads
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9791189757585850"
crossorigin="anonymous"></script>
<ins class="adsbygoogle"
style="display:block; text-align:center;"
data-ad-layout="in-article"
data-ad-format="fluid"
data-ad-client="ca-pub-9791189757585850"
data-ad-slot="7629206876"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
9791189757585850 add your publisher id instead of 97911
No comments