title: Zend GData Spreadsheets Add Column Name
body: <p>Been hunting google, the google docs and the zend docs for this but without much success.  I'm trying to add data to a Google spreadsheet using the API and Zend GData.  I've succesfully grabbed my spreadsheet and worksheet keys and can update the existing rows without problem.  </p>
  
  <p>In short the project requires me to add further column for the previous months data and this is were my problem starts.  I can update the existing data for each row OK but when I try to add a new "column" to the spreadsheet nothing happens.  The existing data is updated for the new information does not get inserted.</p>
  
  <p>My code at present is as follows (assuming I already have the spreadsheet and worksheet key):</p>
  
  <pre><code>$query = new Zend_Gdata_Spreadsheets_ListQuery();
  $query-&gt;setSpreadsheetKey($spreadsheetKey);
  $query-&gt;setWorksheetId($worksheetId);
  $listFeed = $spreadsheet-&gt;getListFeed($query);
  
  //$rowData = $listFeed-&gt;entries;
  
  foreach ($listFeed as $listEntry) {
      $rowData = $listEntry-&gt;getCustom(); 
      $newRow = array();
          //Populate the row data
      foreach($rowData as $field) {
          $newRow[$field-&gt;getColumnName()] = $field-&gt;getText();
      }
      //Add an array key for the new column       
      $newRow['aug2011'] = 'Some data here';
          $spreadsheet-&gt;updateRow($listEntry, $newRow)
  }   
  
  exit();
  </code></pre>
  
  <p>This is beginning to drive me potty with a lack of documentation so any pointers would be greatly received!</p>