WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Feed ads by region

[Resolved] Feed ads by region

  • Hi,

    Is there a plugin for rotating ads that can feed an ad based on the visitor’s region?

    For example, if a visitor is from the UK, they’d get the Amazon UK ad, while a person from the US gets the Amazon US ads?

    But not only for Amazon, other affiliate networks as well?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Shouldn’t be to hard. Couldn’t find a wordpress function to get a visitor’s IP address, but there is a straight PHP predefined variable that should help.
    $_SERVER[‘REMOTE_ADDR’];
    You would have to check it against a list of what IP blocks are assigned to different countries.
    I got the idea from this rather defunct looking plug-in:
    http://wordpress.org/extend/plugins/show-visitor-ip-address/
    You might be able to start there and modify it to suit your needs.

    Thanks. We decided to just to US, at least for now, but will keep in mind.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Feed ads by region’ is closed to new replies.
Skip to toolbar