1. A method for selecting relevant advertisements in response to a query comprising: receiving a location and a geographic range associated with a query; assigning a location identifier for the query location; and selecting at least one advertisement based on the geographic range for the query location.