The Google Apps "advanced services", as explained in the docs, are just wrappers to the associated Google APIs.
So for Create dataset API
https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets/insert
It takes one parameter:
project_id
It also takes a request body:
{
"datasetReference": {
"datasetId": "dataset_id"
}
}
So my Google Apps script would use the following code to pass the project_id in parameter
BigQuery.Datasets.insert(project_id);
But how could I pass the following request body to BigQuery.Datasets.insert?
{
"datasetReference": {
"datasetId": "dataset_id"
}
}
Thanks!