13 June 2007

the one liner that makes it happenmap.addControl(new google.maps.LocalSearch());Update Please Note: Adsense is not Enabled yet but in the pipeline.

Note: Google will serve advertisements if you use this Local Search Control.

In addition to providing useful search results to users of your Google Maps API powered site, the Local Search Control for Google Maps is designed to help you make more money from your maps mashup. Search is a great opportunity to target relevant AdSense ads to users of your site. If you pass your AdSense ID into the constructor of your Local Search Control, then you will share in the revenue from clicks on the AdSense ad(s) generated by the Search Control. If you do not provide your AdSense ID, then ad(s) will still be served, but you will not receive revenue from those advertisements.