adsense map ad unit

Map Adsense ad units.

function initialize() {
  var mapOptions = {
    center: new google.maps.LatLng(36.5987, -121.8950),
    zoom: 12,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  };
  var map = new google.maps.Map(document.getElementById(\'map-canvas\'),
      mapOptions);

  var adUnitDiv = document.createElement(\'div\');

   Note: replace the publisher ID noted here with your own
   publisher ID.
  var adUnitOptions = {
    format: google.maps.adsense.AdFormat.HALF_BANNER,
    position: google.maps.ControlPosition.TOP_CENTER,
    publisherId: \'ca-google-maps_apidocs\',
    map: map,
    visible: true
  };
  var adUnit = new google.maps.adsense.AdUnit(adUnitDiv, adUnitOptions);
}

google.maps.event.addDomListener(window, \'load\', initialize);