On November 18, these services will switch to use the new method signatures shown
in the tables below. To learn how new arguments should be structured, refer to the
documentation for the underlying API. For example, the documentation for the BigQuery service's
Jobs.query()
method shows the valid properties for the resource object in the
"Request body" section of the page.
| Old |
New |
Analytics.Management.Uploads |
.deleteUploadData(
accountId,
webPropertyId,
customDataSourceId,
optionalArgs) |
.deleteUploadData(
resource,
accountId,
webPropertyId,
customDataSourceId) |
BigQuery.Datasets |
.insert(
resource,
optionalArgs) |
.insert(
resource,
projectId) |
.update(
resource,
optionalArgs) |
.update(
resource,
projectId,
datasetId) |
BigQuery.Jobs |
.insert(
resource,
mediaData,
optionalArgs) |
.insert(
resource,
projectId,
mediaData) |
.query(
projectId,
query) |
.query(
resource,
projectId) |
BigQuery.Tabledata |
.insertAll(
projectId,
datasetId,
tableId,
optionalArgs) |
.insertAll(
resource,
projectId,
datasetId,
tableId) |
BigQuery.Tables |
.insert(
resource,
optionalArgs) |
.insert(
resource,
projectId,
datasetId) |
.update(
resource,
optionalArgs) |
.update(
resource,
projectId,
datasetId,
tableId) |
Prediction.Hostedmodels |
.predict(
project,
hostedModelName,
optionalArgs) |
.predict(
resource,
project,
hostedModelName) |
Prediction.Trainedmodels |
.insert(
project,
optionalArgs) |
.insert(
resource,
project) |
.predict(
project,
id,
optionalArgs) |
.predict(
resource,
project,
id) |
.update(
project,
id,
optionalArgs) |
.update(
resource,
project,
id) |
We apologize for inconvenience and look forward to sharing exciting news about
advanced services in the coming weeks.
4 comments :
Following along this tutorial https://developers.google.com/apps-script/articles/bigquery_tutorial by Mr. Manoochehri I get 'Unexpected exception upon serialization continuation' error. I'm only implementing the script through displaying results on the spreadsheet. I've tried changing projectId to be my project name, project id and project number. I've tried using the new API in this blog post. The error seems to be this line:
queryResults = BigQuery.Jobs.query(projectNumber, query, {'timeoutMs':10000});
Please help.
I've tried many variations of this code including the code in the video Manoochehri did with Ikai.
http://www.youtube.com/watch?v=aOynZLV4pYA
James, that sounds like a separate issue. Would you mind reporting a bug on the Apps Script issue tracker so we can investigate? Thanks!
Post a Comment