How To Install 2 Google Adsense Ads In The Middle Of Articles Or Posts - UTAMA ONE

This blog is intended to share information and knowledge

Saturday, April 10, 2021

How To Install 2 Google Adsense Ads In The Middle Of Articles Or Posts


Google Adsense



Hi, bestfriend. . Today, I will discuss How to Install 2 Google Adsense Ads in the Middle of Articles or Posts.




Table of contents
  1. What is Google Adsense?
  2. Google Adsense Work Mechanism
  3. How To Install 2 Google Adsense Ads In The Middle Of Articles Or Posts
  4. Note


What is Google Adsense?


The following is an explanation of what is Google Adsense.



Google AdSense is a joint advertising program through the Internet media hosted by Google. Through the Google AdSense advertising program, website or blog owners who have registered and been approved for membership are allowed to post ad units whose form and material have been determined by Google on their web pages. The owner of the website or blog will get revenue in the form of profit sharing from Google Adsense for every ad that is clicked by site visitors, which is known as the pay per click (ppc) system or pay per click.



Google Adsense Work Mechanism


Here is the Google Adsense Mechanism.



Google AdSense provides a way for site owners to monetize their blog content. AdSense works by matching ad appearance to your site based on blog content and visitors. These advertisements are created and paid for by advertisers who want to promote their products. Since advertisers pay for different ads at different prices, the amount you earn will not be the same.



How To Install 2 Google Adsense Ads In The Middle Of Articles Or Posts


To get the maximum income from Google Adsense ads, we must place ads in strategic locations. One of the strategic locations for installing Google Adsense is in the middle of our article posting. Well, now I will explain how to Install 2 Google Adsense Ads in the Middle of Articles or Posts. Please follow below steps:



Step 1: Create a Google Adsense Ad and Copy the Code


The first step to installing 2 Google Adsense ads in the middle of an article or post is to create a Google Adsense ad and copy the code. Here are the steps to create a Google Adsense ad and get the code:



  1. Login to Google Adsense
  2. First, How to Install 2 Google Adsense Ads in the Middle of Articles or Posts, is to login to your Google Adsense account.



  3. Select the Google Adsense Ad Unit Type
  4. Second, How to Install 2 Google Adsense Ads in the Middle of Articles or Posts, is to choose the type of Google Adsense ad.



    Click Menu, then Click "My Ads", and then click "Ad Units". Next, Click "New Ad". Then you select "InArticle Ads".



  5. Edit Google Adsense Ad Units
  6. Third, How to Install 2 Google Adsense Ads in the Middle of Articles or Posts, is to make arrangements on the type of Google Adsense ad unit that has been selected.



    After choosing the type of Google Adsense ad, then you have to make the settings according to your wishes. And do not forget, give a name / title for the ad, for example: "Ad Middle Post 1".



  7. Copy Google Adsense Ad Code
  8. Fourth, How to Install 2 Google Adsense Ads in the Middle of Articles or Posts, is to copy the Google Adsense ad code.



    Click "Save and Get Code". Next, Copy the "Ad Code" that you get. Then, you first save the "ad code" in a safe place.



  9. Create 1 More Gongle Adsense Ad
  10. Fifth, How to Install 2 Google Adsense Ads in the Middle of Articles or Posts, is to Create "1 More Google Adsense Ad" according to the tutorial above. And don't forget, give the name of the Google Adsense ad unit, for example: "Middle Ad Posting 2".




Step 2: Install Google Adsense Ad Code To Your Blog


The last step to Installing 2 Google Adsense Ads in the Middle of Articles or Posts is to install the adsense ad code that you have copied to your blog. Here's how:



  1. Go to Blogger
  2. First, How to Install 2 Google Adsense Ads in the Middle of Articles or Posts, is to Login to your Blogger Account.



  3. Place the Copied Google Adsense Ad Code
  4. Second, How to Install 2 Google Adsense Ads in the Middle of Articles or Posts, is to install the Google Adsense ad code that you copied.



    Click "Themes", then click "Edit HTML". Next, look for the code <data:post.body/>. Usually the code is more than one, and you can choose the code that is the last. Then, Replace Code <data:post.body/> with the code below:



      <div expr:id='"post1" + data:post.id'/>
      <div class='googlepublisherads' style='margin:20px 0'>
      <center>
      PLACE THE MIDDLE POST ADVERTISING CODE 1
      </center>
      </div>
      <div expr:id='"post2" + data:post.id'><data:post.body/></div>
      <div class='googlepublisherads' style='margin:20px 0'>
      <center>
      PLACE THE MIDDLE POST ADVERTISING CODE 2
      </center>
      </div>
      <div expr:id='"post3" + data:post.id' />
      &lt;script type='text/javascript'&gt;
      var ads1=1/5;
      var ads2=4/5;
      var a=document.getElementById(&quot;post1<data:post.id/>&quot;);
      var b=document.getElementById(&quot;post2<data:post.id/>&quot;);
      var c=document.getElementById(&quot;post3<data:post.id/>&quot;);
      var html=b.innerHTML;
      var n=html.length;
      var t=html.substr(0,n*ads1);
      var i=t.lastIndexOf(&quot;&lt;br&gt;&quot;);
      var t2=html.substr(0,n*ads2);
      var i2=t2.lastIndexOf(&quot;&lt;br&gt;&quot;);
      if(i&gt;0 &amp;&amp; i2&gt;0){
      a.innerHTML=html.substr(0,i);
      b.innerHTML=html.substr(i+4,i2);
      c.innerHTML=html.substr(i2+4);
      }&lt;/script&gt;



    Note:
    • Replace "PLACE THE MIDDLE POST ADVERTISING CODE 1" with the Adsense Ad code that you have copied for Google Adsense ads at the middle of the post 1.

    • Replace "PLACE THE MIDDLE POST ADVERTISING CODE 2" with the Adsense Ad code that you copied for Google Adsense ads at the middle of the article 2.


  5. Click "Save HTML"

w

To test whether your Google Adsense ad code has been installed correctly, then visit your blog or website. If the Google Adsense ad code has been installed correctly, 2 Google Adsense ads will automatically appear in the middle of your article posting. If your Googale Adsense ad hasn't appeared, then you have to wait for about 1 hour and then revisit your blog or website.



Note


Here are some notes on Installing 2 Google Adsense Ads in the Middle of Articles or Posts.



  • Before you want to put the Google Adsense ad code on your blog or website, you should "Backup" first "Your Theme / Template" to avoid unwanted things.

  • If an ERROR occurs when placing Google Adsense ads, then you must first PARSE the Google Adsense ad code.



Thus an explanation of How to Install 2 Google Adsense Ads in the Middle of Articles or Posts.




See also:

May be useful. .



No comments:

Post a Comment