Here is the tutorial about how you can align Google Adsense ads as per your requirement? You can align the ads to Right, Left or Center, so to know how to align Google ads in the blogspot or blogger, please see the below details. If you are implement adsense to show below the post title and need to align the ads to center, left or right then this topic will help you to do that.
Just go the html editor on the blogger and where you implement the Adsense code, search the Adsense code and before the code add the below alignment code and ends with </div>, that's all now you can see the Adsense alignment in blogger.
Google Adsense Left, Right and Center Alignment Code For Blogger |
Note: Before you are going to change anything in the template, please take the backup of the template.
How to adsense ads align Center
<div style="text-align: center; margin: 10px 0 10px 0;">
YOUR ADSENSE CODE HERE
</div>
<div style="text-align: center; margin: 10px 0 10px 0;">
YOUR ADSENSE CODE HERE
</div>
How to adsense ads align Right
<div style="float: right; margin: 10px 0px 10px 10px;">
YOUR ADSENSE CODE HERE
</div>
YOUR ADSENSE CODE HERE
</div>
How to adsense ads align Left
<div style="float: left; margin: 10px 10px 10px 0;">
YOUR ADSENSE CODE HERE
</div>
YOUR ADSENSE CODE HERE
</div>
Example:
<div class='post-header-line-1'/>
<b:if cond='data:blog.pageType == "item"'>
<div style="text-align: center; margin: 10px 0 10px 0;">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Free Computer Tricks Below Post Title 336x280 -->
<ins class="adsbygoogle"
style="display:inline-block;width:336px;height:280px"
data-ad-client="ca-pub-xxxxxxxxxxxxx"
data-ad-slot="xxxxxxxxxxxxx"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</b:if>
<b:if cond='data:blog.pageType == "item"'>
<div style="text-align: center; margin: 10px 0 10px 0;">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Free Computer Tricks Below Post Title 336x280 -->
<ins class="adsbygoogle"
style="display:inline-block;width:336px;height:280px"
data-ad-client="ca-pub-xxxxxxxxxxxxx"
data-ad-slot="xxxxxxxxxxxxx"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</b:if>
Thanks Dear!
ReplyDeleteThese tips are really much helpful for me... Great work ! I will apply them on my health and fitness related blog https://gethealthyfitnesstips.blogspot.in
thanks to your informarion
ReplyDelete