您无权调用 showSidebar/showModalDialog [英] You do not have permission to call showSidebar / showModalDialog

查看:18
本文介绍了您无权调用 showSidebar/showModalDialog的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几个月前,我在 Google 表格中创建了一个电子表格,并使用了 Google Analytics 插件.直到今天它一直运行良好,现在如果我尝试创建新报告,我会看到以下错误消息:

I created a spreadsheet in Google Sheets several months ago and use the Google Analytics add-on. It has always worked fine until today, now if I try to create a new report, I see this error message:

您无权调用 showSidebar.

You do not have permission to call showSidebar.

运行报告显示:

您没有权限调用 showModalDialog

You do not have permission to call showModalDialog

安排报告显示:

您没有权限调用 showModalDialog

You do not have permission to call showModalDialog

我只是一个谦虚的 AdWords 顾问,他知道的编码足以解决问题.但是,在这种情况下,我没有改变任何东西.我所做的只是尝试运行报告.

I am but a humble AdWords consultant who knows just enough coding to break things. However, in this case, I haven't changed anything. All I did was try to run a report.

任何帮助将不胜感激.

推荐答案

这似乎是原因:https://issuetracker.google.com/issues/69238694#comment7

为确保用户安全,已删除无需明确用户操作即可显示对话框和侧边栏的功能.我们仍在评估将来是否可以再次支持这些用例.目前,我们建议显示对话框或侧边栏的脚本添加自定义菜单项 (https://developers.google.com/apps-script/guides/menus),用户可以选择打开对话框或侧边栏.

To ensure user safety, the ability to display dialogs and sidebars without explicit user action has been removed. We're still evaluating whether or not we can support these use cases again in the future. For the time being, we suggest that scripts that display dialogs or sidebars add a custom menu item (https://developers.google.com/apps-script/guides/menus) that users can select to open the dialog or sidebar.

因此您不能再自动显示内容,而是需要用户实际提供输入.

So you can no longer show things automatically, but need a user to actually provide input.

这篇关于您无权调用 showSidebar/showModalDialog的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆