How to Install Adsense Ads in the middle of posting articles

How to Install Adsense Ads in the middle of posting articles

Updated on 14 May
The size of the adsense ad revenue that we will get depends on the number of clicks on the ad, while the size of the number of clicks is strongly influenced by the position of the adsense ads that we put in our blog page.

Therefore we are advised to place adsense ads on strategic locations in the blog page area that we have, many specific points that we can choose to put our adsense ads on, but the best locations that are considered strategic are of course locations that allow many get the attention of blog visitors.

Some locations that we can choose to place google adsense ads that are considered to get a lot of visitors' attention are as follows
  1. at the top right on the left side of the article after the title
  2. below after the article ends
  3. in the sidebar both left and right

The location is a number of strategic locations which are considered to have a high potential number of clicks. In addition to the location above, there is one more location that is considered strategic enough, namely placing adsense ads in the middle of article posts, so that adsense ads will be easily seen when blog visitors read articles installed the adsense ad.

To put adsense ads anywhere is actually not a difficult thing, the important thing is you know how, there are two ways we can choose when we decide to put the adsense ad unit code on the blog that we have, the first way can be through widgets, and the second way can we paste it directly into the blog template.

For the first way it seems we can only place adsense ads on certain locations, depending on the layout of the blog template that we use, and also depends on the location where the widget can be added, while for the second method is by placing the adsense ad unit code on the blog template code, but if you choose this method, the adsense ad unit code must be parsed first, because if not the adsense ad unit code will be rejected by the blog template code because it contains codes that are not permitted by the blog template.

To use this second method, we must at least understand the structure of the blog template and also at least understand the blog commands.

How to Install Adsense Ads in the middle of article posts

In this way it seems we can't use widgets because widgets generally can't be installed in the article area especially in the middle of the article, so that the adsense ad code can appear in the middle of the article post, we must put the adsense ad unit code in the blog template code we have, of course the adsense ad unit code can be accepted by the template code, we must parse the code first, the steps are as follows:
  1. Please enter your google adsense account, then select the adsense ad unit code that you want to use.
  2. Enter the HTML Escape site, please put Your google adsense ad unit code is there then parse, for a while let the parse adsense ad unit code be parked there.
  3. Now, please enter your blogspot account, and select your blog.
  4. On the left side menu bar, please select the template menu then press the Edit HTML button to display the editor code for your blog template.
  5. In the template editor view, please use CTRL + F, then find the code <data:post.body/> You will find more than one code above, please select the one that actually displays your article post.
  6. Change 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'>
<center>

Place the code of the parse adsense unit here

</center>
</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>
  1. Return to the blogcrowds site, copy the parse adsense code from there, then please change the code above in the text Place the code of the parse adsense unit here with the code of the parse adsense ad unit from blogcrowds.
  2. If it's finished, don't forget to save your template.
Up to this point, you have successfully placed your adsense ad unit code in the middle of the blog post article that you created.

How to Modify the position of adsense ads

The above code will make your adsense ad appear right in the middle of your blog post article, the ad will be automatically placed neatly and regularly after the HTML code <br/> who compiled your article, and of course it won't collide with each other which makes your article messy.

To change the position of your ad you can modify the numbers that I marked in blue, here are some modifications that you can make:
  1. To place an ad in the middle on one third of blog posts, please change the number 2 above by number 3.
  2. To place adsense ads on a quarter of posts, please change the number 2 above by number 4.
The bigger the number you enter, the more the adsense ad position will go up.
So a simple article about How to Install Adsense Curls in the middle of article posting, hopefully useful.
source:blog.krakentechno.com

0 comments for How to Install Adsense Ads in the middle of posting articles

Cancel