Mit dem BigQuery-Dienst können Sie Google BigQuery API in Apps Script Diese API ermöglicht es Nutzern, ihre BigQuery-Projekte zu verwalten, neue Daten hochzuladen und Abfragen ausführen.
Referenz
Detaillierte Informationen zu diesem Dienst finden Sie in der Referenzdokumentation für die BigQuery API Wie alle erweiterten Dienste in Apps Script verwendet auch BigQuery dieselben -Objekte, -Methoden und -Parameter als öffentliche API. Weitere Informationen finden Sie unter Wie Methodensignaturen bestimmt werden.
Informationen zum Melden von Problemen und zum Support erhalten Sie in der Google Cloud-Supportleitfaden
Beispielcode
Im Beispielcode unten wird Version 2 der API verwendet.
Abfrage ausführen
In diesem Beispiel wird eine Liste der täglichen Top-Suchbegriffe auf Google abgefragt.
CSV-Daten laden
In diesem Beispiel wird eine neue Tabelle erstellt und eine CSV-Datei aus Google Drive in diese Tabelle geladen.