WELLCOME TO MY TUTORIAL KAPTEN404 How To Put Two Ads In the Middle of Blogger Post ~ KAPTEN404

How To Put Two Ads In the Middle of Blogger Post

Blogger Post - Ainnonny, Now it is more and more google adsense publisher. All google adsense publisher competing to hunting dollars to get a lot benefit from google adsense. Whether or not a lot of earned income google adsense publisher is depend on various factors, one of which is the number of ad clicks come. Many ways to do by google adsense publisher to get the optimal ads click, like multiplying the ads unitand place them below post title in blogger, in the middle of blogger post and in the end of blogger post. Usually, the google adsense publisher only place one ad unit code in the middle of blogger posts.
Two Ads In The Middle Of Blogger Post
Two Ads in the middle of blogger post

However, in order to get optimal ads click we can place two ads unit code in the middle of blogger posts as has been done by Berbagi Ilmu website. For the placement one ad unit code in the middle of blogger post may have a lot to share. But to put two ads unit code in the middle of blogger post are still many have not share and informed. Well, now I will share how to place two ads unit code adsense in the middle of blogger post. Here are the steps :


1.      Parse two ad unit code that you want to put in the middle of the article first. You can parse the ad unit code on the website blogcrowds

2.      Go to your Blogger dashboard and then select the menu template. Then select edit HTML

3.      Click the template area and look at the code below, to activated the search facilities you can press CTRL + F to activate the search
<data:post.body>

4.      In some template layout that code is different and usually more than one. You will find more than one code <data: post.body>. Usually <data: post.body /> located at the bottom. But for more details you can try one by one until you find the right code

5.      When you find the code at the next you could replace that code with the code below:
<b:if cond='data:blog.pageType == &quot;item&quot;'>  <b:if cond='data:blog.pageType != &quot;static_page&quot;'>    <div id='ad-script1'>      <div style='clear:both;'> ---KODE ADSENSE 1---</div>    </div>    <div id='ad-script2'>      <div style='clear:both;'>---KODE ADSENSE 2---      </div>    </div>  </b:if></b:if><div id='tgt-post'>  <data:post.body/></div><script type='text/javascript'>  function insertAfter(tbh,tgt) {  var prt = tgt.parentNode;  if (prt.lastChild == tgt) {prt.appendChild(tbh);}  else {prt.insertBefore(tbh,tgt.nextSibling);}}  var tgt = document.getElementById(&quot;tgt-post&quot;);  var adps1 = document.getElementById(&quot;ad-script1&quot;);  var adps2 = document.getElementById(&quot;ad-script2&quot;);  var prgf1 = tgt.getElementsByTagName(&quot;br&quot;);  var prgf2 = tgt.getElementsByTagName(&quot;p&gt;&quot;);  if (prgf1.length &gt; 0) {insertAfter(adps1,prgf1[0]);}  if (prgf2.length &gt; 0) {insertAfter(adps1,prgf2[0]);}  if (prgf1.length &gt; 0) {insertAfter(adps2,prgf1[3]);}  if (prgf2.length &gt; 0) {insertAfter(adps2,prgf2[3]);}</script>

6.      Just a few steps of how to put two ads code unit adsense in the middle of blogger post. Then you only need to replace the blue words in the script above with your own ads unit code that you have parse before

7.      To set the position of your ad placement you only need to replace the number red in the script. Adjust in paragraphs to how you want to put ads. Like what Berbagi Ilmu website do for example, for two ads placement in the middle of blogger post they used this script
if (prgf1.length &gt; 0) {insertAfter(adps1,prgf1[2]);}  
if (prgf2.length &gt; 0) {insertAfter(adps1,prgf2[2]);} 
if (prgf1.length &gt; 0) {insertAfter(adps2,prgf1[5]);}  
if (prgf2.length &gt; 0) {insertAfter(adps2,prgf2[5]);}

8.      Then you complete replaced the blue words and the red number, press the save button to save the changes you have done in your template. Next, you can check your own blog or website if it is successfully placed two adsense ads in the middle of the article. If not, maybe you are wrong in finding the code <data: post.body /> at the top and can repeat the above manner until your two ads running in the middle of the article

Well, that’s tutorial how to put two adsense ads unit code in this article I created. I hope this article is helpful for all of us. Don’t forget to share ya guys and put the active link if you want to rewrite this article. Happy blogging :)
Share:

Tidak ada komentar:

Posting Komentar

Popular Posts

Diberdayakan oleh Blogger.

Cari Blog Ini

  • ()
  • ()
Tampilkan selengkapnya

menu

kontak

Food

Arsip Blog

Recent Posts

Unordered List

  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  • Aliquam tincidunt mauris eu risus.
  • Vestibulum auctor dapibus neque.

Pages