Blogging can be very lucrative and one good way of making money online as a blogger is by displaying ADS, which can be AdSense ads or affiliate ads. Advertising a company’s product or service through sponsorship is another way of making money as a blogger. Among the above three means or ways of making money, Adsense is many bloggers favorite. You make more money on AdSense with organic traffic, which are traffic generated or coming from search engines. This is where creating a good relationship with search engines is very imperative.
Even with organic traffic, wrong ads placement can also hurt or affect your AdSense or affiliate earnings. To generate legit clicks for your AdSense, you need to place ads in an obvious and readers friendly positions e.g. below post title, sidebar, below post body, header and between post body. And in this article today, we will be talking on how to add AdSense in between blogger posts automatically.
Follow below steps to add your AdSense or affiliate ads between blogger posts automatically:
> Login to AdSense or affiliate dashboard and get your ad code you want to paste in your blog.
> Parse your ad code here. For your ad code to be successfully added to your template, it will be parsed.
> Login to your blogger>Template>Edit.
Warning: always remember to backup your template before editing your template.
> Click inside any part of your template and click Ctr “F” to open search box.
> Search for this line of code in the search box
> Locate the second line of the above code. In most templates, you can find this code in 3-4 places.
> Replace the above found line of code with the below code:
<div expr:id='"adbox"+ data:post.id'/>
<div style='clear:both;text-align:center;margin:15px 0 15px 0'>
<!-- PLACE YOUR PARSE ADSENSE OR AFFILIATE AD HERE -->
<div expr:id='"adsbox"+ data:post.id'><p><data:post.body/></p></div>
var obj0=document.getElementById("adbox<data:post.id/>");var obj1=document.getElementById("adsbox<data:post.id/>");var s=obj1.innerHTML;var t=s.substr(0,s.length/2);var r=t.lastIndexOf("
NOTE: Replace “PLACE YOUR PARSE ADSENSE OR AFFILIATE AD HERE” in the above code with your parsed AdSense or affiliate ad code.
> Save your template and view to see your ad in action.
NOTE: Should you experience any error or see any line of code display in your post, don’t panic. Just go to your post and put a space between your code and your post.