首页 文章

Google Apps脚本中的范围要求过高

提问于
浏览
1

这是带有脚本代码的a custom Google Sheet

var GAaccountsList = Analytics.Management.Accounts.list();
var upload = Analytics.Management.Uploads.uploadData('accountId', 'webPropertyId', 'customDataSourceId')

如果提供了 https://www.googleapis.com/auth/analytics 范围,则此代码应运行正常 .

但相反,它又要求 https://www.googleapis.com/auth/analytics.readonly 过度 .
enter image description here

可以在Google Apps脚本OAuth服务中修复此问题吗?

1 回答

相关问题