1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Anyone here use any kind of Geo-Targetting Script?

Discussion in 'Affiliate Programs' started by profanitytalker, Jun 3, 2010.

  1. #1
    Hey guys,

    I was recently asked by one of my ad networks if I have the capability to geo target the tags on my site. They said that it will dramatically increase my ad revenue if I did so. So has anyone here used any kind of geo targetting script? Can anyone give me advice on the best one?
     
    profanitytalker, Jun 3, 2010 IP
  2. akira123454

    akira123454 Peon

    Messages:
    211
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    akira123454, Jun 4, 2010 IP
  3. balkanboy82

    balkanboy82 Well-Known Member

    Messages:
    136
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #3
    Search for ip2nation database. There is also an wordpress plugin for it. Google some info, I used it a lot.
     
    balkanboy82, Jun 5, 2010 IP
  4. VedoMedia

    VedoMedia Peon

    Messages:
    62
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks for all the great info, but im completely lost on actually doing this.. any body want to do a quick tutorial on how to properly set it up and know its working??
     
    VedoMedia, Jun 5, 2010 IP
  5. balkanboy82

    balkanboy82 Well-Known Member

    Messages:
    136
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #5
    Download http://www.ip2nation.com/ database and import into your wordpress database.
    Download and activate this plugin: http://planetozh.com/blog/2004/08/ip-to-nation-plugin/ (also see more info there).

    Put this in your single.php or whereever you want in template:

    
    
    <?php
    $country = wp_ozh_getCountryName(0) ;
    switch ($country) {
       case "Japan" :
       case "Yugoslavia" :
    
       
       		echo "this is something to dispaly";
    
    		
    		break;
       default :
    		include (TEMPLATEPATH . '/bannercode.php');
    }
    ?>
    
    PHP:
    By default this will call and display content of bannercode.php and it will display your text if countries are Japan or Yugoslavia.

    For more exact countries names check bottom of ip2nation.sql (open with any text editor and copy).

    Hope this helps.
     
    balkanboy82, Jun 5, 2010 IP
    VedoMedia likes this.
  6. VedoMedia

    VedoMedia Peon

    Messages:
    62
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    ahh thanks.. but what about other countries or multiple ones?? pozdrav balkanboy!!
     
    VedoMedia, Jun 5, 2010 IP
  7. balkanboy82

    balkanboy82 Well-Known Member

    Messages:
    136
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #7
    For multiple countires duplicate this line:

    case "Yugoslavia" :
    PHP:
    and replace country name.

    First part tells you what to do if any of listed countries, second part is every other country.
     
    balkanboy82, Jun 5, 2010 IP
  8. AdscendJeremy

    AdscendJeremy Peon

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    maxmind.com
     
    AdscendJeremy, Jun 7, 2010 IP