How To Place Google AdSense Ads Between Blogger Posts

How To Place Google AdSense Ads Between Blogger Posts


I've seen many people ask one question and it seems to be quite an unresolved one. Since I have started adding AdSense ads in the middle of my advertisements, a few people have asked me how they can do the same, but I thought that instead of answering this same question to every individual, I could easily write a post about it for everyone to read.

First of all, let me tell you what is AdSense and how this will work. Firstly, this tutorial is only for bloggers using the Google Blogspot host, so unless you are working on that, this will not work. 

Next, let me tell you that AdSense is also powered by Google and it is an Ad Network that can help bloggers earn money. So, you can add advertisements anywhere on your blog, but for them to appear in the blog posts, it gets a bit harder. You should do this if you have long blog posts and want to generate more income.


Things Needed

So, in case you want to add some AdSense ads in the middle of your posts, you are going to need a few things -
  • An approved AdSense account for your blog
  • Administrator's approval
  • Posts to apply this on.
  • Basic HTML editing skills

How to Do This

To accomplish this task, you need to follow some steps after making sure you meet all the basic requirements

Read: How to Get more Page and Site Views

1. Just to take precaution in case you mess up, head over to the Template section, and take a backup of your Template and store it somewhere safe on your computer.


Taking Backup


2. Now that you have a backup, go to Google AdSense and copy any Ad Code that suits the criteria (desired shape and size) for adding them in the middle of posts.

3. Once you have selected the AdSense code, you need to parse it so that it is XML recognizable which is required in this task. To do this, you can use this tool.

4. Next, head on over to the Edit HTML section of the Template Editor. Search for this code snippet-

<data:post.body/>

5. You might find multiple instances of this, so you have to stop at the second one. If by the end it doesn't work, then try using the third one.


template HTML editor


6. Replace the snippet with this code - 

<div expr:id='"adsmiddle1" + data:post.id'></div>
<b:if cond='data:blog.pageType == "item"'>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<div style="clear:both; margin:10px 0"><center>
<!-- Add here the code of your ad --></center>
</div>
</b:if>
</b:if>
<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>

 

7. Now, replace <!-- Add here the code of your ad --> with the parsed ad code you generated in step 3.

8. You can also replace <center> with a different tag to decide the alignment you want for the ads in your post.

9. Save the changes to your template.

Now, after completing all of these steps, you have done the main important thing. What you can do now is check any of your posts, and what we expect you to see is that all of your in-post ads would be at the very beginning of the posts. Unless you want to keep this as-is, you will need to continue further with the tutorial.

Read: How to make Money with Mailchimp Newsletter Subscriptions

How to Get the Ads in the Middle of the Posts

Whenever you would write a post or to add the advertisements in the middle of an already existing post, you would need to follow these easy steps every time.

1. Locate the place in a post where you want to add the ad in the HTML post editor mode.

2. At the located place, enter this snippet for the ad to appear.

<!-- adsense -->

 

3. Once the post is done, click Save or Publish or Update.

Now, you can check on the post you have applied these 3 steps on and you will e able to find the ad wherever you placed it. So, basically, if you want the ads to be in the middle, you will have to decide its location and do it manually.

Read: Bounce Rate - What You Need to Know (Infographic)


I hope that you were able to complete this task and are also able to see the results. Share with us in the comments section, about how this worked out for you and also write down any problems you are facing. Bye for now! Stay Tuned!

89 comments:

  1. It will help to increase adsense CPC. Thanks for sharing

    ReplyDelete
  2. Thanks so much I was searching for it for my blog www.teachsansar.com finally I got point.

    ReplyDelete

  3. thanks for helping me solve this problem, success continues

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. It's real cool check out my blog www.realbaze.com

    ReplyDelete
  6. I can't find this code in my template. so how can I make this ??

    ReplyDelete
    Replies
    1. You just need to find this cde in your template -
      If you are talking about the adsense code, then you can find it from adsense.google.com if you have an account there. Just create an ad unit, copy the code and follow the steps given in this post. Good luck!

      Delete
  7. Oh! This is amazing! I always wondered how Adwords Marketing worked. It was great reading this post and I guess I will be able to do exactly this for promoting my business and I hope my website rank improves and also if the traffic on my website increases it will be great.

    ReplyDelete
  8. its not working n my site please teach me how

    (1)How to Get Started With Social Media for the 50-60-Something Entrepreneur


    (2)5 Ways To Make Your Business Work Harder for You and Your Family


    (3)The Top Business Trends You Must Keep in Mind
    (4)The Relationship Between Human Resource Practices And Business Strategy In A Business Organization

    https://www.thebigmoney.tk/2018/04/these-are-top-three-reasons.html

    ReplyDelete
  9. please help me out




    In Addition to that , read about the following too .

    (1)How to Get Started With Social Media for the 50-60-Something Entrepreneur

    (2)5 Ways To Make Your Business Work Harder for You and Your Family

    (3)The Top Business Trends You Must Keep in Mind

    (4)The Relationship Between Human Resource Practices And Business Strategy In A Business Organization

    (5)8 Golden Success Secrets for Small Businesses

    HE LOVES YOU MORE THAN YOU CAN IMAGINE

    ReplyDelete
  10. Thanks for the great article. Was really struggling to get it work. Working perfectly !!

    ReplyDelete
  11. it work perfectly for my Blog http://stickyviral.blogspot.com/2017/12/artificial-intelligence-has-learned-to.html thanks

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. This comment has been removed by the author.

    ReplyDelete
  14. Thanks for giving such an idea, I was looking on I do blog regularly and not yet applied this formula. So as of now I can do it for my blog

    ReplyDelete
  15. This comment has been removed by the author.

    ReplyDelete
  16. Thanks for adding knowledge about blogging

    ReplyDelete
  17. This comment has been removed by the author.

    ReplyDelete
  18. very very nice content. i am a blogger and my blog is basically niched on react javscript tutorials. please also check out this site on how to create super traffic generator site with react javascript thanks https://www.reactjavascripting.blogspot.com

    ReplyDelete
  19. <mr author yourn seo DA S 38 AND THIS useless coments give people easy backlinks and decreased your ranking . inbox me let me teach you how to make all comment links no-follow so that i would get a free backlink in return thanks.

    ReplyDelete
  20. Your site is exactly what I have looking for!! Very nicely done. You are doing a great service!!
    Nepali

    ReplyDelete
  21. Thanks code this working in my blog

    ReplyDelete
  22. Such an useful post about the google adsense. Get the Best and low cost ppc management services for your business.

    ReplyDelete
  23. Not worked my theme

    ReplyDelete
  24. Thanks but its not working on this site yet
    I tried all I could Healthcare and Fitness Ideas

    ReplyDelete
  25. Free advertising online

    Welcome to buy sell promotion online, we provide free business advertising online to buy & sell your Business products. We also offer Online

    Business Promotion advertising.



    to get more - http://www.buysellpromotion.com/

    ReplyDelete
  26. Thanks for sharing these codes and ideas, information is life just like like health is wealth
    Healthcare and Fitness Ideas

    ReplyDelete
  27. It was really helpful admin...Thanks a lot. https://belmadeng.com

    ReplyDelete
  28. thanks for the guide, check out more here https://www.firstpress.com.ng

    ReplyDelete
  29. thanks for the guide, check out more here http://firstpress.com.ng/

    ReplyDelete
  30. Thanks for the great information about online sewing class.We have also provide some Selling online courses.for making money. Thanks for sharing!

    ReplyDelete
  31. if you place a Google Search Box in your website, relevant text ads. are displayed when a search request is made by a website visitor. Google will pay you for all valid clicks.

    How to Join Google Adsense Earnings

    ReplyDelete
  32. Hey!
    Click on below and get your Link Buliding site!
    And Promote Your Website!
    Get your Link

    ReplyDelete
  33. Nice writing I must say that your blog is very informative. I want to redirect my blog which is on topic Tech news blog; I want to redirect https page to http can you help me out for this?

    ReplyDelete
  34. I am thankful to you for sharing this plethora of useful information. I found this resource utmost beneficial for me. Thanks a lot for hard work. Digital Strategy

    ReplyDelete
  35. All things considered, numerous significant pages on the Internet are not appropriately "upgraded", and a large number of the individuals who couldn't think less about investing their energy in connecting efforts make probably the best substance.
    finance

    ReplyDelete
  36. What a fantabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much. ลงโฆษณาในเฟสบุ๊ค

    ReplyDelete
  37. Thnaks for sharing this, i am going to bookmark this post!!
    GS Mains Paper 1

    ReplyDelete
  38. cool article, also checkout my work here http://techywiki.xyz/laravel-8-review/

    ReplyDelete
  39. This comment has been removed by the author.

    ReplyDelete
  40. I’m going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article... newspaper 10

    ReplyDelete
  41. hi there!! Very appealing aeration happy that I got here throughout such informative call. maintain taking place the omnipotent play-case pal. glad to be portion of your internet network. Larby

    ReplyDelete
  42. Impressive blog i have found ways to replace snippet and i found many other useful information from here
    digital marketing course in chennai

    ReplyDelete
  43. he information you have updated is very good and useful,plse update further.
    if you required any info regarding TAX & GSTR please visit

    GST consultants in Bangalore
    Company registration in Bangalore

    ReplyDelete
  44. Best Selection of Dashiki Shirts and Pants.We are retail and wholesale of dashiki shirts. dashiki skirt

    ReplyDelete
  45. Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. pecorino pienza

    ReplyDelete
  46. The goal of every advertiser is a good return on investment (ROI). Every Google ad campaign starts with an ad strategy, combined with marketing, budget, and targeting goals. All of these determine the ROI.
    https://ppcexpo.com/blog/what-are-ads-by-google

    ReplyDelete
  47. This is a great post. I like this topic.This site has lots of advantage.I found many interesting things from this site. It helps me in many ways.Thanks for posting this again. search engine optimization companies Eugene

    ReplyDelete
  48. Nice post. I was checking constantly this blog and I am impressed! Extremely helpful information specially the last part I care for such info a lot. I was seeking this particular information for a very long time. Thank you and good luck. บาคาร่า

    ReplyDelete
  49. Do you have a great idea for a cheap vpn provider ​but not have a clue where to begin when it comes to selecting a web hosting company? This article takes you through the basics of web hosting and what you need to know when selecting a suitable Web Hosting Company.

    ReplyDelete
  50. Its a cozy delight reading your claim.Its full of aspire i am looking for and i lionize to claim a comment that "The content material of your proclaim is incredible" extremely good accomplish. visit this site

    ReplyDelete
  51. I was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject. Bangla Newspaper

    ReplyDelete
  52. What a fantabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much. prince chenzhi

    ReplyDelete
  53. We still cannot quite think I come to be a version of those staring at the important points positioned on your webblog. Our grandkids i are sincerely thankful with your generosity as well giving me possibility pursue our chosen profession path. Document right information I of the web-site. 백링크 작업

    ReplyDelete
  54. Nice article
    Now you can get free .com domain name

    Namescheap giving free .com domain name so avail this opportunity

    ReplyDelete
  55. Everyone who uses the internet has awareness of google adsense & you have shared Great Information about Google Ads Management Services Thank you.

    ReplyDelete
  56. I wanted to thank you for this great read!! I have recognize every little bit of it I have bookmarked Your blog to check out new stuff you post.
    We accept guest posts on this https://www.fitlivingtips.com/

    ReplyDelete
  57. Not seeing results from your paid campaign efforts and you feel like you’re just washing money down the drain, it’s time to call Clientscode a professional google ads management agency. We don't spend our money on unnecessary experiments since we already know what works and what doesn't. We'll clean up your account structure, analyze your keywords for improved prospects, create attractive advertising, and more.

    ReplyDelete
  58. Thanks For Sharing we deals with Smiligence Software Developing Company app

    ReplyDelete
  59. Great tips! For more optimization, consider hiring a professional Google Ads agency to maximize revenue and ad placement.

    ReplyDelete
  60. The 21st century brought about a new dimension to online gaming with the rise of e-sports. Competitive gaming evolved from casual play into a professional industry with organized tournaments, link slot gacor

    ReplyDelete
  61. Placing Google AdSense ads between Blogger posts boosts monetization without disrupting user experience. Simple steps enhance revenue potential seamlessly. Great guide.Atrend Advertising Agency

    ReplyDelete
  62. Great tips for placing AdSense ads! For those seeking efficient white label content creation, integrating ad placement strategies with high-quality content can maximize engagement and revenue. Keep sharing insightful tips!

    ReplyDelete
  63. I really like your blog. Great article. It's most evident, people should learn before they are able to megaspin 777

    ReplyDelete
  64. I found your blog incredibly valuable and insightful! If you're looking to elevate your online presence, check out our expert Pay Per Click Adwords in Toronto Discover how targeted PPC can drive more traffic and increase your ROI. Visit our page to learn more and optimize your ad campaigns today!

    ReplyDelete

Powered by Blogger.