Forum Moderators: martinibuster
I want to you javascript because that way the adsense code will always be in the source, but won't be displayed for certain (Miami) users. My question is, is it code playing alowed.
Ps: I take this job very serious and dont want to break policy
Tnx wheelie34 and other for suggestions.
Mr google wont get upset if he doesn't see adsense code on your pages, its up to you if you put it there or not, why not ask in the javascript forum here at webmasterworld [webmasterworld.com ] for advice on an approach similar to what I gave you in php, there MUST be something for javascript there.
PS: welcome to webmasterworld
This code work perfectly!
*****************************************************
<script language="Javascript" src="http://www.ip_location_service_site">
</script>
<script language="Javascript">
if(Geolocation!= "Miami" )
{
google_ad_client = "pub-yyyyyyyyy";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "#*$!#*$!#*$!";
}
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
******************************************************
but.... question is just how legal is it to use, policy & co...
Whatever Thenk You very much and best Regards