specific city location

Geo-targetting web advertising

Web advertising campaigns can be targeted to specific areas, but how is this done and how accurate is it?