View Single Post
  #1 (permalink)  
Old 02-20-2005, 12:44 AM
PaulV PaulV is offline
Junior Member
 
Join Date: Feb 2005
Posts: 9
Default Adding Google Adsense to A Blogspot.com Blog

Adding Google Adsense to Blogspot.com

This is what it looks like
http://crayfish-info.blogspot.com

This one is really simple because Blogspot.com show you where to put it. Considering that Google owns Blogspot.com it would be a good idea huh?

Ok now. Go to "Dashboard"
then click "Change Settings"
then click "Template Tab"
Scroll down until you find the following. Again this will vary depending on which template you are using. It is always waaay down the page under all the ccs stuff.

Code:
  <p id="description"><$BlogDescription$></p>
</div></div>


<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxx09818xxxxx";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_channel ="1178934601";
google_ad_type = "text_image";
google_color_border = "336666";
google_color_bg = "669966";
google_color_link = "CCFF99";
google_color_url = "003333";
google_color_text = "FFFFFF";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center></div>
In the above I have placed the Google in the <div> tag again and centered it. I have also added a
(page break) tag (it is like hitting enter on the keyboard) to give a little space between the head and google.

That is it really. Click the "Preview" button to make sure it is where you want it and change to how you want it.

When it is how you like it click "Save Template Chages" then the page will reload - you will then click "republish". This will refresh the actual blog.

There is one tricky part here I forgot to mention with blogspot. That is key word meta tags. If you Blogspot blog seems to only show ads in your google relating to blogs you will need to make the following changes to the template.

Find the tag <$Metainfodata$> near the top just above <$BlogPageTitle$> delete it and paste in your meta stuff for keywords and description like the following.

Code:
<meta name="robots" content="index,follow">
<meta name="keywords" Content="Some yummy spider bot food keywords relating to your site">
<meta name="description" Content="A short description of your site - no more than 250 characters">
The "robots" one just tells the visiting robots to follow all links in your site.

Again do all the saving stuff and you are away. The right ads will not show untill you use the "republish" button on your blog...

cheers
Paul V
Reply With Quote