Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Calling different page depending on IP location

Posted on 2014-07-17
1
Medium Priority
?
77 Views
Last Modified: 2015-03-19
I was contacted by an ad network who is proposing to pay us more for our advertising space. The way they do it is by setting a floor price for our ads. When a user enters our site, we call their adserver and if they have an ad that pays more than the floor price we set, their banner is displayed, if not, then they call our own adserver and we display an ad ourselves, like we always do.

The problem we have, is that we are based in Guatemala, and although most of our traffic comes from Guatemala, we also have a lot of traffic from the US which pays a lot better than ads from Guatemala or the rest of Latin America.

The ad network told us to create 2 accounts so that we could have 2 different floor prices: one floor price for the US, and one floor price for the rest of the world and to call the appropriate account depending on the user's IP.

So what I need to do is:

1) When the user enters my site, check his IP location.

2) If the user is from the US, we call an html page with the first ad network code, so it checks for higher paying ads than the floor price that we set for the US

3) But if the user is from any other country, we call another html page with the second ad network code, so it checks for higher paying ads than the one we set for the rest of the world, which would be lower than the floor price set for the US

Is there a simple way to do this?

Thank you
0
Comment
Question by:svensanchez
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 total points
ID: 40203879
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Starting up a Project

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question