title: How to change column width with Google Sheets API v4 in Python?
body: <p>I'm trying to change <code>column width</code> with Google Sheets API. I know that <code>spreadsheetId</code> I can get with <code>ss_drive.get('id')</code> but I don't know how to get <code>sheetId</code>:</p>
  
  <pre><code>ss_drive = drive_api.files().create(body=file_metadata).execute()
  ssId = ss_drive.get('id')
  
  sheets_api = build('sheets', 'v4', credentials=credentials)
  
  requests = []
  requests.append({
      "updateDimensionProperties": {
      "range": {
        "sheetId": sheetId,
        "dimension": "COLUMNS",
        "startIndex": 0,
        "endIndex": 1
      },
      "properties": {
        "pixelSize": 160
      },
      "fields": "pixelSize"
      }
  })
  
  response = sheets_api.spreadsheets().batchUpdate(
      spreadsheetId=ssId, body={'requests': requests}).execute()
  </code></pre>
  
  <p><strong>I changed <code>"sheetId": sheetId</code> to <code>"sheetId": 0</code>. And the column changed its width.</strong></p>