WidgetBucks Location Filtering

The WidgetBucks CPM ads for non-US/Canada users don’t return anywhere near the revenue of the targeted ads, but then the programme itself generates pretty high revenue for those visitors that get the "real" ads. On the network I’m running the ads my split is roughly 50% US/non-US so I wanted a simply way to work reduce the number of untargetted CPM ads showing.
I’ve scripted something to try and do that which takes the visitors browser language settings, going on the premise that visitors from the US/Canada are most likely to have "en-us" or "en-ca" in their browser language settings (wasn’t sure whether to add fr-ca for English language ads, thoughts?). When it detects users who haven’t got those settings it outputs an "alternate ad", which in the demo is for a referral banner to WidgetBucks but could conceivably be anything.
Although there are still obviously some users with the "wrong" […]

See original post by mutube