How to Place Adsense Ads in the Middle of Blogspot Posts

2 min read
TopBlog Pk -  Google Adsense (GA) is still being hunted by bloggers even though the Pakistan CPC value is quite down, as is well known that Google Adsense ads have varying adverts and keep changing so that many invite clicks of visitors. 
This is what makes the bloggers still maintain GA ads.

Many factors make a lot of income from GA one of which is the placement of appropriate ads, although visitors are the main factor, good and proper ad placement will provide more revenue.

Placement of ads that have been tested by bloggers and proven to increase revenue is the placement of advertisements in blog post articles, namely under the title of the blog post or under the article posting . Well, this time I will give a trick to place an ad in the middle of a blog post.

How to Place Adsense Ads in the Middle of Blog Posts



To post ads in a post certainly requires HTML editing or template editing, because this installation cannot be done through a widget, it is not difficult to understand the codes if you follow the following tutorial carefully and to the end.

1) Prepare your Google Adsense ad unit code, then PARSE ad code HERE first
2) Enter Blogger >> Then select Theme >> Edit HTML
3) Then find the code
<data:post.body/> to more easily use the method of searching by using the Ctrl + F keys
4) If you have found, please replace the code
<data:post.body/>

with the code below.
<div expr: id = '& quot; post1 & quot; + data: post.id '/> <div class = 'googlepublisherads' style = 'margin: 20px 0'> <div class = 'separator' style = 'clear: both; text-align: center; '> Place the Ad Code that you have PARSE here. </div> </div> <div expr: id = '& quot; post2 & quot; + data: post.id '> <data: post.body /> </div> <script type = 'text / javascript'> var obj0 = document.getElementById (& quot; post1 <data: post.id /> & quot;); var obj1 = document.getElementById (& quot; post2 <data: post.id /> & quot;); var s = obj1.innerHTML; var t = s.substr (0, s.length / 2 ); var r = t.lastIndexOf (& quot; & lt; br & gt; & quot;); if (r & gt; 0) {obj0.innerHTML = s.substr (0, r); obj1.innerHTML = s.substr (r + 4);} </script>

5) When finished, click save and see the results.

⚠️ Information:
🔹Place the ad code : Replace with the ad code(Mentioned in above code red color) that has been parsed.
🔹Number 2 : is the location of the ad right in the middle of the article, you can modify it with 3, 4, 5 or 6.
🔹For ad placement at the very top, you can use the number 6.

Thus sharing this Google Adsense tips this time may be useful and can increase your income.

If you still have difficulty, please discuss together through the comments page that is already available. thanks

You may like these posts

Post a Comment