Translate

How to Install 2 Google AdSense Ads at Once in the Middle of Site and Blog Article Posts

Advertiser
Advertiser

How to Install 2 Google AdSense Ads at Once in the Middle of Site and Blog Article Posts


This is for friends of Blogger and AdSense publishers all who are still confused and looking for ways to install 2 Google AdSense ads at the same time in the middle of posting articles on sites and blogs, please try the following tips and tricks:

How to Install 2 Google AdSense Ads at Once in the Middle of Site and Blog Article Posts

Backup site templates that your friends manage first, just in case there is a failure or error when editing the template or adding a new template code later, it's simple to backup templates, please log in to a Blogger account that friends manage then go to the Theme Menu and on the Right-Top of the Themes page, select Backup / Restore> Select theme download> Name Template / BackUp theme if needed and Save at the selected storage location.

If there is an error / failure in the experiment Tips this time please friends to restore the template settings to the beginning of the theme that has been Backup, How: Open the Themes page> select Backup / Restore> In the "Upload themes from files on your hard drive" section. Please select Browse and search for backups of previously downloaded and saved themes> Select OK and Upload.

Now we go to the steps and tutorials for Installing 2 Google AdSense Ads At Once In the Middle of Article Posts on Sites and Blogs:

1. Open the Themes page on Blogger and choose Edit HTML

2. Look for the code below "<data:post.body/>" to make it easier to search, please friends using the help box Ctrl + F and paste the code you want to search below in the search box.

<data:post.body/>

3. For some templates the code is indeed different and more than one, please friends select the second or lowest line of <data:post.body/> code. Then replace one of the <data:post.body/> codes with the code below:

<div expr:id='"post1" + data:post.id'/>
< div class='googlepublisherads' style='margin:20px 0'>
<center>
 ADSENSE1 ADVERTISING CODE IN PARSE
</center>
< /div>
< div expr:id='"post2" + data:post.id'><data:post.body/></div>
< div class='googlepublisherads' style='margin:20px 0'>
<center>
 ADSENSE2 ADVERTISING CODE IN PARSE
</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;

4. Change the Blue text with the AdSense Code that you want to install, don't forget the adsense ad code is parsed first so that there is no error, for the adsense ad code, friends can use the help of the following site parsa >> Parse site ad code

5. Finally, please friends, select Save Theme and please check the results.

If using Success put the code above AdSense Ads will appear in the following position combinations (AdSense Ads will appear in the middle):

- 1st AdSense ad will appear 1/5 part of the post (at the top)

- 2nd AdSense ad will appear 4/5 section posts (at the bottom)

To make a check / test, friends can use the above code directly without being edited with the previous ad code, then if success / success will be the second article above "ADSENSE1 ADVERTISING CODE THAT HAS BEEN IN PARSE" and "ADSENSE2 ADVERTISING CODE WHICH IS ALREADY IN PARSE ".

If the display position of the Post above is appropriate and fitting, please change friends with the AdSense Ad Code that was previously PARSA.

Code Explanation : See the Green color above for var ads1=1/5; and var ads2=4/5; : With the Code, it means that the first ad will appear in the 1/5 part of the posting. Friends can also change the position of the ad to 1/4, 2/6 or other numbers to adjust the position of the adsense ad in accordance with the desired position. Friends can also remove the <center> code and also </center> so that the location of the ad moves to the left or add a CSS script code if you want to make other changes.

Likewise, articles about Blogging that Budi can share for readers all about "How to Install 2 Google AdSense Ads at Once in the Middle of Site and Blog Article Posts", hopefully it can be interesting and useful information for all readers and Bloggers and Google AdSense publishers all :)

Source : WebBudi.com (My main site, in Indonesian) 
Advertiser

No comments:

Post a Comment

Comment politely and wisely :)