Welcome to WebmasterWorld Guest from 3.80.60.248

Forum Moderators: eljefe3 & skibum

Message Too Old, No Replies

Artificial geo targeting for Chitika and Adsense

Anyone know how to write a script for that?

     
3:20 am on Nov 19, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:May 8, 2004
posts:130
votes: 0


Well, Chitika doesn't accept clicks from outside US etc.. Is it possible to write a script so that traffic outside USA will see google ads instead?
4:00 pm on Nov 19, 2005 (gmt 0)

New User

10+ Year Member

joined:July 4, 2005
posts:7
votes: 0



function geolocation()
{
include_once('./geoip.inc');
$gi = geoip_open('./GeoIP.dat', GEOIP_STANDARD);
$countrycode = geoip_country_code_by_addr($gi, $_SERVER['REMOTE_ADDR']);
geoip_close($gi);
return in_array($countrycode, array('US', 'GB', 'FR', 'CA', 'AU', 'NZ'));
}

Returns true if user is from supported country.

You'll need:
[maxmind.com...]
[maxmind.com...]

7:26 am on Nov 20, 2005 (gmt 0)

Preferred Member

10+ Year Member

joined:Nov 21, 2004
posts:369
votes: 0


You can simply use PhpAdsNew
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members