Sunday, January 13, 2008

How to insert Adsense in your post?

In order to make money with Adsense, you need some tips. And one of the tips is that your Adsense must be at a very convenient spot for your visitor to click and to see. No where more convenient than inside and within the post.

We can not put in within the text of the post as a matter of fact. So what I am trying to tell you here to place it above or below the post. Or even both of the place. What you need to do and what you must do is to revert your blogspot to classic template. You can not do that with the templates supplied by blogspot except the classic template.

The classic template is very awful and bad in decoration. So you need another template which meets your eyes' requirements of decoration. Follow one of these steps:

1. You can search the template on the internet.
2. You can use the template of this blog. I will share you.
Template of this blog without Ads by google.
Template of this blog with three Adsenses. (One Adsense before first post, one after first post and one on the right column). It is likely the same as this blog. Have a look at the three positions of Adsenses.


Now your have your own template. If your template has no Adsenses, you can add follows these steps below:

1. go to http://blogger.com and sign in.
2. click "template"
3. enter "edit html"
4. Right after <head>, insert this line:
<script language="JavaScript">var i=0;</script>


Then it becomes:
<head>
<script language="JavaScript">var i=0;</script>

5. Look for the place of <$BlogItemBody$> through the whole code. You will find it. Then decide whether you want to insert before or after post.

If before, insert the new-style adsense code before <$BlogItemBody$>
If the answer is after, insert the new-style adsense code after <$BlogItemBody$>
If both of the places, insert the new-style adsense code before and after <$BlogItemBody$>

Your original-style adsense code looks like this:

<script type="text/javascript"><!--
google_ad_client = "pub-4443543186266666";
//336x280, shareknowledge, blue
google_ad_slot = "0123456789";

google_ad_width = 336;
google_ad_height = 280;
//--></script>


<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

The first part of code in white must be changed by the first part of your Adsense. The second part in bold purple must be replaced by this one:

<script language="JavaScript">

if(i == 1)
document.write('<div><scr' + 'ipt type="text/javascript" ' +
'src="http://pagead2.googlesyndication.com/pagead/show_ads.js"' +'> </scr'
+'ipt></div>');
</script>


So your whole new-style code is something like the one below:
<script type="text/javascript"><!--
google_ad_client = "pub-4443543186266666";
//336x280, shareknowledge, blue
google_ad_slot = "0123456789";
google_ad_width = 336;
google_ad_height = 280;
//--></script>

<script language="JavaScript">

if(i == 1)
document.write('<div><scr' + 'ipt type="text/javascript" ' +
'src="http://pagead2.googlesyndication.com/pagead/show_ads.js"' +'> </scr' +'ipt></div>');
</script>

6. Click "Save changes" to save your new-style-template with adsense

No comments: