title: Google Calendar API - how to add a calendar gadget along with event?
body: <p>I'm trying to add a google calendar gadget along with an event. However, whenever I try and add a gadget along with an event, the google calendar API gives me an 'invalid value' error.</p>
  
  <p>I'm using the <a href="https://developers.google.com/google-apps/calendar/v3/reference/events/insert" rel="nofollow">event.insert protocol</a>. If I send the request in without the gadget block, it works fine and adds an event. However, adding the gadget block throws an error.</p>
  
  <pre><code>{
   "location": "San Jose, CA",
   "description": "blah blah blah blah",
   "kind": "calendar#event",
   "start": {
    "dateTime": "2012-04-04T10:00:00.000-07:00"
   },
   "end": {
    "dateTime": "2012-04-04T10:00:00.000-07:00"
   },
   "gadget": {
    "iconLink": "http://www.thefreedictionary.com/favicon.ico",
    "link": "http://www.thefreedictionary.com/_/WoD/wod-module.xml",
    "title": "Word of the Day",
    "type": "application/x-google-gadgets+xml",
    "height": 136,
    "width": 300,
    "display": "icon"
   }
  }
  </code></pre>
  
  <p>Does anyone know why this is occurring? I really need to find a way to insert images into the events I add to a google calendar. Thanks!</p>