Categories: AdsenseBlogger

Adding Adsense ads code in Center of Blog posts

Adsense between blog posts

You can put Google Adsense ad code anywhere in the blog post whether in it’s centre or anywhere else. Last time I discussed about Adding ad code under Post Title


Follow the simple steps for placing ads between blog posts:

Step 1. First of all, go to Templates > Edit HTML then press ctrl+F and search for code below.

 

Note: if there are 2 or 3 same code then replace 2nd and if it not works then choose 3rd.

Step 2. Replace    with below code.

 





var obj0=document.getElementById(“adsmiddle1”);
var obj1=document.getElementById(“adsmiddle2”);
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);}


Step 3. Convert the code and then put the converted ad code in place of  ‘’  and Click”Save Template”
To put the ad in centre then add above as well as below the ad code as give below.

 


 




Step 4. To choose where to put ad between post, go to HTML Editor of post and type  

Blogger Post

Note: if you will not add code ‘’ then ad will be shown below post title by default.

GeeksFlame

GeeksFlame is created with one mission in mind - to help you with all walks of life to discover tech-related topics and resources that can help you learn more about technology. Our passionate author covers all the latest trends in artificial intelligence, robotics, machine learning, web development, and search engine optimization. So, keep reading and stay ahead of the curve.

Recent Posts

What Should You Know About Workers Comp In Charlotte When An Injury Stops You From Working

When a work injury suddenly keeps you from earning a paycheck, life can feel uncertain… Read More

January 21, 2026

The Easiest Ways To Save Money On Internet Without Sacrificing Speed

In today’s digital age, having fast and reliable internet is essential for work, entertainment, and… Read More

January 21, 2025

How Much Is International Shipping With Meest?

When picking a shipping partner, price is often the deciding factor. Meest rates for international… Read More

April 14, 2024

How Retail Cloud Solutions Help You Manage IOT Devices?

The retail landscape is undergoing a remarkable transformation, thanks to the integration of IoT devices… Read More

March 21, 2024

Innovations In Sealing Technology: Exploring Modern Seal Check Solutions

In the rapidly evolving world of industrial technology, sealing solutions have undergone significant transformations. Modern… Read More

February 1, 2024

Have You Heard Of Incognito Mode With Google Chrome

In today's fast-paced digital world, knowing how to maintain your privacy while browsing the internet… Read More

December 15, 2023

This website uses cookies.