A method and system for providing location-based advertisements to
requesting devices is provided. An advertisement system aggregates
advertisements by collecting advertisements from multiple advertisement
sources, extracting data from the collected advertisements, and storing
the extracted data in a common format. After aggregating the
advertisements, the advertisement system transforms each advertisement
into multiple advertisement formats that are specific to protocols
supported by the various device types. When the advertisement system
receives queries for advertisements, it identifies matching
advertisements and ranks them based on a location. The advertisement
system then selects an advertisement format that is appropriate for the
requesting device.