BigQuery サービス
BigQuery サービスを使用すると、Apps Script で Google BigQuery API を使用できます。この API を使用すると、BigQuery プロジェクトの管理、新しいデータのアップロード、クエリの実行を行うことができます。
リファレンス
このサービスの詳細については、BigQuery API のリファレンス ドキュメントをご覧ください。Apps Script のすべての高度なサービスと同様に、BigQuery サービスでは、公開 API と同じオブジェクト、メソッド、パラメータを使用します。詳細については、メソッド シグネチャの決定方法をご覧ください。
問題を報告したり、その他のサポートを確認したりするには、Google Cloud サポートガイドをご覧ください。
サンプルコード
以下のサンプルコードでは、API のバージョン 2 を使用しています。
クエリを実行
このサンプルは、日ごとの上位 Google 検索キーワードのリストをクエリします。
CSV データを読み込む
このサンプルでは、新しいテーブルを作成し、Google ドライブから CSV ファイルを読み込みます。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-21 UTC。
[null,null,["最終更新日 2024-12-21 UTC。"],[[["The BigQuery service in Apps Script enables management of BigQuery projects, data uploads, and query execution using the Google BigQuery API."],["This advanced service requires prior enabling before use and leverages the same structure as the public API."],["Sample code is provided demonstrating how to run a query to retrieve Google Search terms and load CSV data into BigQuery."],["Users can consult the Google Cloud support guide for troubleshooting and support related to the BigQuery service."]]],[]]