First off, great mod. Thanks for working on this.
I've almost got the module doing what I want but it only seems to be half working.
I'm using ad GeoIP 6.x-2.x-dev with Ad 6.x-2.2.
I have set up an Ad Group which shows in a block. The Ad Group has two ads.
One is set to "visitors from the countries selected below->United States." This ad is working properly, it is showing for all U.S. visitors.
The other ad is set to "visitors from the countries not selected below->United States." It does not show up at all, even though I know about 45% of the site's traffic comes from visitors outside the U.S.
I've also tried selecting " visitors from the countries selected below->every country except U.S." It still doesn't show up.
I have tested the ad and it does show up properly if I don't use GeoIP and display to all visitors.
I'm not really sure what is going on here but any insight would be much appreciated.
Comments
Comment #1
jeremy commentedTry following the directions in documentation/DEBUG.txt that comes with the base ad module. You'll need to load the ad using a non-US IP address -- the easiest way to do this is to hack the code directly and manually set an IP right after the geoip lookup. You can then post the debug output here.
Comment #2
sockah commentedThanks Jeremy. I will give that a shot and post the results if I can't get it working.
Comment #3
Branndon commentedWhere do I add my custom IP to test? I need to make sure it's working in other states.
Edit: Found it, in ad_geoip.inc look for this (replace all three occurances)
$hostname = ip_address();and replace it with this
$hostname = '123.456.789.0'; // Replace these numbers with your IP address.