title: Auto export from Data Studio to Google Sheets
body: <p>I am looking for a way to automate the export of a certain table from Data Studio to Google Sheets.</p>
  <p>It can be a script or a function. I know that this can be done manually, but I would like to avoid this.
  I tried with this, but it doesn't work</p>
  <pre><code>function importCSVFromWeb() { 
      var csvUrl = &quot;DATASTUDIOURL&quot;;
      var csvContent = UrlFetchApp.fetch(csvUrl).getContentText();
      var csvData = Utilities.parseCsv(csvContent);
      var sheet = SpreadsheetApp.getActiveSheet();
      sheet.getRange(1, 1, csvData.length, csvData[0].length).setValues(csvData);
  }
  </code></pre>
  <p>Any idea?</p>