Monday, October 20, 2014

How to add adsense ads in between bloggers blog post






How to add adsense ads in between bloggers blog post



Hi friends earning from adsense is a great source for bloggers ,but for maximizing earnings and taking full advantage of adsense you need to place the adsense ads at right spots in your website to increase your ctr and cpm which will give you maximum revenues. 

you can place your ads at top leaderboards , in upper fold side box of 300x 250 to get maximum benefits but its is ad-viced that you must place atleast 1 ad  inside a post to increase ctr sand revenues .

Now the question arises how to display an AdSense ad in the middle of a post or anywhere inside the post ?

For placing the ad inside the post We need to manipulate template , then  we need to place a label inside our post to where we want the AdSense ad to appear. Once added, we can place the ads anywhere, be it between paragraphs or in the middle of the content etc,the ads will appear where we place the labels.

so come on without a do lets tweak your template to place adsense ads in your post to maximize your earnings via adsense

Note: Before proceeding, it is recommended do backup your template (go to Template > click on theBackup/restore button)


Step 1:


 First thing you need to do is convert your adsense ad code to plain text. For which use the widget given below.
just paste your ad code in it and you will get parsed ad code to use anywhere in your xml based blog post
It will work with all ad network code like AdSense, AdBrite, Chitika etc to convert java based code in to simple code only for you.


Step 2: Convert The Code Below

Convert Here

Step 3:

 Then go to Template, click on the Edit HTML button, click anywhere inside the code area and look for this tag (CTRL + F):

<data:post.body/>

Note: you may find it several times, but we need to stop at the second one or if you can't see any changes, test the third one.




Step 4:


Replace the <data:post.body/> tag with this code:


<div expr:id='"adsmiddle1" + data:post.id'></div><div style="clear:both; margin:10px 0"><!-- Add here the code of your ad --></div><div expr:id='"adsmiddle2" + data:post.id'><data:post.body/></div><script type="text/javascript">var obj0=document.getElementById("adsmiddle1<data:post.id/>");var obj1=document.getElementById("adsmiddle2<data:post.id/>");var s=obj1.innerHTML;var r=s.search(/\x3C!-- adsense --\x3E/igm);if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}</script>


Step 5:

Put the converted Adsense code to where you see the <!-- Add here the code of your ad -->annotation, then save the changes by clicking on the Save template button


Step 6: 

When you create a New Post, add the tag given below inside the HTML section in the exact location where you want the Google AdSense ads to appear.


Ad tag

<!-- adsense -->

For example:

<div>This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text.</div>
<!-- adsense --><div>This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text.</div>





Note: If you don't add the label in the post  to show ad  at desired place then the ad appears below the title by default.








0 comments:

Post a Comment