
![]() |
![]() |
![]() |
|
|||||||
![]() |
![]() |
|
Welcome to Talk Arcades, the premier forum for arcade webmasters. You are currently viewing our boards as a guest. By joining our community you will be able to make posts, communicate privately with other arcade webmasters and participate in our Live Marketplace. Registration is easy, so please join us today! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Preferred Member
|
Hello all, I just got my arcade and read that YPN (Yahoo) tends to band peoples accounts who show their ads to people who are outside of USA... I found a way to fix this problem on another forum and would like to share it with you all so you guys don't get banned! =)
I followed these directions and it worked perfectly! Good luck! ================================================== == This is a simple way to geotarget YPN ads to US visitors only and to show Google Adsense ads to visitors from all other locations using MaxMind's GeoIP database. Edit: A barebones implementation of this can be seen here http://www.fadplay.com/geoip.php 1. Download the GeoIP database to your server - "wget http://www.maxmind.com/download/geoi...e/GeoIP.dat.gz" 2. Unzip the above file which you just downloaded - "gunzip -d GeoIP.dat.gz" 3. Download the PHP API/include file provided by MaxMind - "wget http://www.maxmind.com/download/geoip/api/php/geoip.inc" 4. Include the following code in any PHP pages you want to show geotargeted ads PHP Code:
PHP Code:
Hopefully it works for you guys as it did for me! =) Regards, Zack B Last edited by ArcadeJunky : 12-08-2006 at 10:53 PM. Reason: width |
|
|
|
![]() |
![]() |
|
|
#2 (permalink) |
|
Moderator
Senior Member
|
thanks !!!
__________________
Arcade Banner Exchange, game packs, top site, arcade script and forum for all of your arcade needs http://www.mibbi.com This site stinks!! www.farting.us Coming soon MibbiJr! |
|
|
|
![]() |
![]() |
|
|
#5 (permalink) |
|
Preferred Member
|
Ok, with some help from some other arcade webmasters I found how to set up the cookies part of this Geo Targetting.
Put this into your functions.php page or a page that loads everytime in replace of step 4 mentioned above. PHP Code:
Oh, btw, if anyone is out of the united states, let me know if you are seeing adsense or yahoo ads please. Regards, Zack B BlitzGamer.com |
|
|
|
![]() |
![]() |