Monday, 13 April 2020

How To Add Adsense Or Affiliate Ad Between Blogger Posts



     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
<data:post.body/> 
 
> 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>
<div expr:id='"adsbox"+ data:post.id'><p><data:post.body/></p></div>
<script type='text/javascript'>
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("
");if(r>0){obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}
</script> 


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.

=> Join our community of 50,000+ ecstatic readers.
Get latest weekly updates on health tips, seo, personal finance, blogging tips, how to make money online, etc.

Previous Post
Next Post

post written by:

1 comment:

  1. Hey Owenayuk ,



    Great post with effecive steps to add Adsense or affiliate ads between blogger posts.



    Adsense is one of a popular advertising placement company that allows user to earn good commission.




    Your each of the suggested steps to add adsense or affiliate ads between the blogger posts are so clear, easy to understand and follow, whereas following these steps will be helpful and will allows several users to place adsense or affiliate ads between blogger posts.




    Truly helpful post and thanks for sharing.

    ReplyDelete