Monday, March 5, 2012

Add Google AdSense at top of any post pages in blogger.

Do you like this post?


How to earn from AdSense, every person wants to add AdSense ads to the top of only posts pages in Blogger like to view eye-catching(as seen above) and not on any other page (home page , archives etc.) is bit difficult keeping in view the limitations of the Blogger. According to AdSense policies in one blog post can only have the three ad units and three link units simultaneously at any webpage. If you add the AdSense code to top of each post then at home page if you are having, let’s say, five posts then AdSense cannot be shown at top of each post.
 Also it’s better to have clean home page with recent posts and their summaries and ads only show on top of post at post page. A little trick would solve this issue. Thanks to Page type in Blogger. The posts have the page Type= Adcode. Just see the below steps to add the AdSense to top of each post of Blogger and at the same time the ads will not be shown on home page etc.

1. Get the Google AdSense ad codes from your AdSense accounts and parsed them so that it can be used in Blogger template. You can use hacktrix tool.
2. Go to Blogger account and then go to Design > Edit HTML.( Backup your template as precautionary measure)
3. Check the Expand Widget Templates box and search the following line of code in your template by pressing CTRL + F
<div class='post-body entry-content'>
 4. Rite After this add the following lines of code. Replace the line (YOUR ADSENSE AD CODE) with parsed AdSense code in step 1.
 <b:if cond='data:blog.pageType == "Adcode"'>
<div style='float: top;'>YOUR PARSED ADSENSE AD CODE
</div>
</b:if>
5. Save the template and you are done.
You can define the float property to define the Ads placement. With top property AdSense ads will be shown at top of each post just below the title of post. If you want to merge the AdSense ads at the top left of right of the post just write left or right instead of top.
Most people recommend to have the 300×250 or 336×280 ad unit at the top of the post as its gives better results specially for the visitors who landed one your post via search engines.

3 comments:

Hi,
I read your post but didn't approached why to implement Google Adsense at the top of any post on site. Is there any secret one to get valid clicks.
Thanks

"Hi,

This is what I was searching for related to , I read it and enjoyed thoroughly, it seems to be very informative post for me as I always look in for unique and original content which can help me and my knowledge grow better.

Great. Keep it up!!!!
I am keen to read every post that is very informative, like yours."

Hi Friends,


According to me it's not good that we execute Google Adsense at the top of any post pages in the blogger.
If there is any benefit by implementation Google Adsense at any post then please tell us....




Thanks

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More