Wednesday, May 23, 2007

My First Hack

UPDATE : I am no longer using this method on putting Adsense in between the post. Now, I'm only put Adsense top of my blog content by using Page Element. Feel free to used the method i write below.

After been searching for a long time on how to put adsense code in between the post. Just like what i have now in my post. Finally, i found this cool blog from Louiss – BloggingSecret Blog. Here is some simple steps on how to implement the adsense code in between the post.

1. Go to your Adsense Account > Adsense for content > Ad units > and choose “text ads only”.
* the use of text ads that work best is Large rectangle (336 x 280). or you can choose any ads format you like. Click here to find out more about text ads Format. Blending ads format to background color and removing the borders gives higher click thru rate.

2. After setting up your ads format, Copy the code and paste it into Notepad or Wordpad. Replace the red tag < to &lt; and > to &gt; .

<script type="text/javascript"><!--
YOUR ADS CODE
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

The code will look like this after replacing the red tag.

<script type="text/javascript">&lt;!--
YOUR ADS CODE
//--&gt;</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

* This step is just to make sure that you won’t get mess up or make mistake before you implement this trick into your template. Especially for newbies.
FYI, this method are low risk and not against Google Adsense TOS directly.

3. Copy the code again from your notepad/wordpad and go to template > Edit html >Tick the “Expand Widget Templates” > and find this line <div class='post-header-line-1'/>

4. Then,Paste the code after <div class='post-header-line-1'/> “it(adsense) will be under the post title”.

<div class='post-header-line-1'/>

<script type="text/javascript">&lt;!--
YOUR ADS CODE
//--&gt;</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<div class='post-body'>

5.The last thing to do is Save your template.It’s done.

Sources :
- This is the Ultimate Adsense Guide : Part 1, Part 2, and Part 3 from Louiss.Thanks to him....
- Adsense code in blogger beta template by Blogger Digest.

Hope this hack could help to all bloggers especially for newbies.Try it and have fun.I’m sure you’ll get addicted to hack more after you succeed this hack.

No comments: