Forum Moderators: open
Just want to say that just received email from Yahoo that our account is terminated for international traffic.
We were with them from last september and they just terminated without any warning and all of our websites are based in USA.We target USA traffic but there is no good or easy way to stop international traffic.
No click fraud and all the traffic was real.
In my opinion this is not a good way to treat publishers and i feel very helpless.They can kick out whenever they want and we just work hard on our websites and send them real traffic.
Just very confuse and not sure what to do.
Thanks.
Once I figured out how to install the geoip database it was easy.
I'll try to explain it as easily as possible.
1. Download the GeoLite Country Database from Maxmind
2. It is a tar so you need a utility to extract it
3. You should now have a .dat file
4. Upload it to your server(I found out it can be anywhere)
5. Log into phpadsnew, goto settings and then pull down and select "geotargetting".
6. There should be a checkbox for geoip and then put in the path for the .dat file you uploaded. for example /home/usr/public_html/geo/GeoIP.dat
That should be about it.
SO i setup a 50:50 probabilty first for both ads and set the delivery options of ypn to show ads only to country USA. But it doesnt seem to work well because when i was testing the page, i see both ads showing at the same time.
That is why i stopped the ad immediately and put back ypn only.
Hope somebody can help me out.
thanks.,
<?
$ip = $_SERVER['REMOTE_ADDR'];
include("geoip.inc");$gi = geoip_open(dirname(__FILE__)."/GeoIP.dat",GEOIP_STANDARD);
if (geoip_country_code_by_addr($gi, $ip)!= US) {
include('adsense.php');
}
else {
include('ypn.php');
}
geoip_close($gi);
?>
Just remember to put the .dat and .inc MaxMind files on your server for this to work. Also, you may want to check for updates to it often as the IP addresses change often.
I'm sorry it has been a while since I have done this, but do a search for [GeoIP.inc] on a popular search engine and it should come up #1. As for the GeoIP.dat file, I believe it is located within the free GeoIP Country database you can download from the same site.
The code I posted before is php, I forgot to mention. So in order to use it your server must have php. If someone can post an asp version please do so as it will help many.
I will also work on a javascript version of the same one.
there is no .inc file on the free version of geoip that phpadsnew uses, it runs strictly off of the geoip.dat file.
when you update the geoip.dat, put it in a new directory, and re-direct phpadsnew to that directory... i had a situation where i just wrote over the top of the old geoip.dat, and it stopped showing ads :-/
my point was that you do not need the geoip.inc file for phpadsnew.