How to Install Google Adsense Inside Posts

Wednesday, August 24, 2011

How does this actually is not reserved only for you the Google Adsense Publisher hhe ... because for those of you who want to put up ads other than Google Adsense PPC could actually use this way to display your ads within posts, but because the most familiar PPC ads are Google Adsense, so come with me adjust its news headline:)

Well, because I give us the title in the post, meaning I was not going to separate how to display it under posts, above the post or even amid the post, as all ways I will intervene on their placement in this post.

But before I know you do, you may ask, is this way is quite safe and does not violate Google Adsense TOS? Okeh I replied, for placement at the beginning (above) and end (Under) posts I guarantee you 100% safe because we will only do a Parse without changing the adsense code at all, just a matter I am very, very not recommend if you want to put him amid the post because this way I have supposedly violated the Google Adsense TOS, for me it is also better not to teach how the placement of the middle posts and chuckled tetep klo you were willing to put your ad dtengah posts, please find other tutorials blog hhe ... because I do not want to teach you how risky:)

Okeh before I discuss how the placement of the beginning (above) and end (Under) post, we first discuss the placement of the middle posts. Why do I categorize this as a way and a wrong way melanggat TOS? because here we place the Adsense code in Javascript. Yes indeed shaped Javascript own Adsense code, but that does not mean you can arbitrarily place them again in Javascript or in kerangak div.

How does the composition of Javascript that is used to place Adsense code in the middle posts? The following code has JavaScript:

<div id="'"> </ div>
<div style="clear:both; margin:10px 0">

<! - Your AdSense code here ->

</ div>
<div id="'">
<data:post.body/>
</ div>
<script type="text/javascript">
var obj0 = document.getElementById ("aim1 <data:post.id/>");
var obj1 = document.getElementById ("aim2 <data:post.id/>");
var s = obj1.innerHTML;
var r = s.search (/ \ x3C! - adsense - \ x3E/igm);
if (r> 0) {s.substr obj0.innerHTML = (0, r); obj1.innerHTML = s.substr (r +16);}
</ script>


Anyway the above is not the way I recommend is hha ... Quote tetep but you want it please to my notes you hit klo gak responsibility Banned:) so I said please look for another tutorial blog ..

So How to put Google Adsense code at the beginning or end of the post?

1. Log into your Blogger account each
2. Click the Design or design, then select edit html
3. Check Expand Widget Templates (I suggest you download first template)
4. Find the code below:

<p> <data:post.body/> </ p>
Or-
<data:post.body/>

It is impossible not exist, there must be .. well if you have found silahakan parse your adsense code once, does that mean? are not you rich in its original form this:

<script type="text/javascript"> <! -
google_ad_client = "pub-xxxxxxxxxxx";
google_ad_slot = "0*****";
google_ad_width = 468;
google_ad_height = 60;
//-->
</ script>
<script
src = "h*tp://pagead2.googlesyndication.com/pagead/show_ads.js" type = "text / javascript">
</ script>

Well you are so rich that parse this:

&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-xxxxxxxxxxx&quot;;
google_ad_slot = &quot;0976076963&quot;;
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;
&lt;script
src=&quot;h*tp://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;

You can search in Google Search how to parse code, if already parsed, please place the Adsense code that has been parsed before the code
Or if you want to display it at the beginning (above) posts and simply place the code that is parsed earlier under the code
Or if you want to put him under (the end ) posts.

If it is finished, Save your template and see the results.

Share this article :

0 comments:

Speak up your mind

Tell us what you're thinking... !

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. FOLLOWING WITH FRIENDS - All Rights Reserved
Template Created by Creating Website Inspired by Sportapolis Shape5.com
Proudly powered by Blogger