Sunday, November 8, 2009

HOW to Center Google Adsense in your Blogger and Add Your Own Ad


First of all, before you do such thing it is best to Back-up Your Current Template by downloading your template, refer to this page if you don't know how to do it - Click here.

Okay, we may start now.

1. In your Dashboard, choose the Layout. Choose Edit HTML.
2. Check the Expand Widgets Templates.
3. Look for this entry:

<b:if cond='data:post.includeAd'>
You should see the following below or somewhat like this;
<b:if cond='data:post.includeAd'<
<data:adEnd>
<data:adCode>
<data:adStart>
</b:if>
4. Make it look like this;
<b:if cond='data:post.includeAd'>
<center>
<data:adEnd>
<data:adCode>
<data:adStart>
</center>
</b:if>
5. That's it, your Google Adsense is now centered.
6. BONUS. You can even ad your very own advertisement below it or above it or totally replace your google ad with whichever affiliate tool you have. Try the code below and customize it:
<b:if cond='data:post.includeAd'>
<center>
<data:adEnd>
<data:adCode>
<data:adStart>
</center><br/>
<!-- Your own link text -->
<center>
<a
href='http://xleontips.blogspot.com/2009/10/premium-ads-services.html'>Advertise
with US!</a>
<br/>
</center>
<!-- End own Ads -->
</b:if>
7. Enjoy, and thanks for visiting.

Replacing your Google Adsense with Own Ad
Do not disable adsense from the layout, leave it as it is. Format your code like this:

<!-- data:adEnd -->
<!-- data:adCode -->
<!-- data:adStart -->
Your code below will be the one shown and the Google Adsense will not show anymore.
Noel Ablon Web Developer

I am Noel Ablon. A father of two wonderful kids. A loving husband to a wondeful wife. A Bible believing Christian. A web developer / graphics artist / programmer or a fullstack web developer.

No comments:

Post a Comment