Docstoc

How to Hide Adsense Ads from self ip address - Jun 2012

Document Sample
How to Hide Adsense Ads from self ip address - Jun 2012 Powered By Docstoc
					How to Hide Adsense Ads from self ip address

When you are working on your websites/blogs. Accidently you click your
Google Ads. It can be a reason of disabling your Google ads. I also faced
this problem.
After a long research, I got a solution. I am sharing with you. I cab be
helpful for you.
You have to put only few lines of codes in the place of your Google
ads.It won't violate the ToS.

<script type="application/javascript">
function getip(json){
 //Enter list of banned ips, each separated with a comma:
 var bannedips=["120.63.0.79", "120.63.0.78", "120.63.0.76",
"120.63.0.77","120.63.0.76", "120.63.0.75", "120.63.0.74", "120.63.0.73"]


 var ip = json.ip;


var handleips=bannedips.join("|")
handleips=new RegExp(handleips, "i")


  if (ip.search(handleips)!=-1){
  // blog adds
  } else {
  // display adds
   showAdd();
  }
}
function showAdd(){
<!--
google_ad_client = "ca-pub-XXXXXXXXXXX";
google_ad_host = "pub-XXXXXXXXXX";
/* BannerAdd728X90 */
google_ad_slot = "XXXXXXXXXX";
//-->
}


</script>


<script type="application/javascript"
src="http://jsonip.appspot.com/?callback=getip">   </script>


<script type="text/javascript">
google_ad_width = 728;
google_ad_height = 90;
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Bidtrafic working guide ,adsense working guide   .. sand your subscribe
email.

Thanks.

				
DOCUMENT INFO
Description: When you are working on your websites/blogs. Accidently you click your Google Ads. It can be a reason of disabling your Google ads. I also faced this problem. After a long research, I got a solution. I am sharing with you. I cab be helpful for you. You have to put only few lines of codes in the place of your Google ads.It won't violate the ToS.