Forum Moderators: coopster

Message Too Old, No Replies

Serving specific ads to specific countries. PHP includes?

I want to target US Amazon Ads to the US and UK ones to the UK market

         

bouncybunny

8:38 am on Apr 16, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not sure this is the right forum to post this, but I can't think where else. (Perhaps the Apache forum?)

I want to add Amazon ads to one of my sites.

Now Amazon is not International like Adsense. You have to sign up as an affiliate in the UK separately from the US affiliates program.

My site is not country specific. From memory, about 60% of traffic is North American based about 20% UK based and the rest comes from elsewhere (Europe and Australia mainly).

So, what I want to do is only show Amazon US coded adverts to North American visitors and then UK Amazon ads to UK (and the rest of world) visitors.

I know it's easy enough to get country IP addresses, but I'm not sure of the best way to implement this.

I'm guessing some kind of SSI to put the ads on the site, but how do I make it so that the right ads are called for the right visitors?

Oh, and I am a complete PHP n00b, so please be gentle. Thanks.

jatar_k

4:08 pm on Apr 16, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



you can include different content based on the geoip

get the IP
use IP to get the country from the geoip database
if their country matches the one you want to serve ads for then include some country specific ad file or select country specific ads

nickCR

4:18 pm on Apr 16, 2010 (gmt 0)

10+ Year Member



Just get a script the will do the GeoIP trageting for you. I think OpenX will do it.