[英]Publishing Google Script Addon to G Suite Marketplace SDK
I've got some Google Sheet script code that I'd like to extract into Google Sheet Addon to be published for just of our domain (not public web).我有一些 Google Sheet 脚本代码,我想将其提取到 Google Sheet Addon 中,以便仅针对我们的域(而非公共网络)发布。 Individuals on my team have been able to do this successfully in the past but after 1/25/2019 when Google removed Add-Ons from Google Chrome Store we've been having difficulties.
我团队中的个人过去已经能够成功地做到这一点,但在2019 年 1 月 25 日 Google 从 Google Chrome 商店中删除附加组件之后,我们遇到了困难。
I am trying to follow: https://developers.google.com/gsuite/add-ons/how-tos/publish-addons#publishing_instructions我正在尝试遵循: https : //developers.google.com/gsuite/add-ons/how-tos/publish-addons#publishing_instructions
But get the following error when trying to configure the G Suite Marketplace API:但是在尝试配置 G Suite Marketplace API 时出现以下错误:
Project Key is not associated with current project or the script version doesn't exist.
I am pulling the project Key from File --> Project Properties:我正在从文件中提取项目密钥 --> 项目属性:
Does anyone have any idea where I am going wrong or know of good tutorial of how to publish a private Google Sheet Add-on?有没有人知道我哪里出错了,或者知道如何发布私人 Google Sheet Add-on 的好教程?
I had the same problem but identified a solution as follows.我遇到了同样的问题,但确定了如下解决方案。 In the Google Apps Script Editor, under Resources -> Cloud Platform Project, click the ProjectName - project-id-xxxxxxxxxxxxxxxxxxx link.
在 Google Apps 脚本编辑器中,在资源 -> 云平台项目下,单击项目名称 - project-id-xxxxxxxxxxxxxxxxxxxxx 链接。 Then when it opens your Cloud Platform Project, in the upper left corner, your project name will be listed with a dropdown.
然后当它打开您的云平台项目时,在左上角,您的项目名称将与下拉列表一起列出。 Click the dropdown and verify that this project-id-xxxxxxxxxxxxxxxxxxx matches the link you clicked.
单击下拉列表并验证此 project-id-xxxxxxxxxxxxxxxxxxx 是否与您单击的链接匹配。 The two numbers did not in my case and I had to refresh my screen for the correct project-id to show up in the Cloud Platform Project screen.
这两个数字在我的情况下没有,我必须刷新我的屏幕才能在云平台项目屏幕中显示正确的项目 ID。
Don't know if this will help, but I was having the same error message and I just got it to work.不知道这是否会有所帮助,但我遇到了相同的错误消息,我刚刚让它工作。 I put in the value from File --> Project Properties: ->Project key (Deprecated) and still got the error.
我输入了 File --> Project Properties:->Project key (Deprecated) 中的值,但仍然出现错误。 Then I changed the version to the number of my latest version and it worked.
然后我将版本更改为我最新版本的编号并且它起作用了。
Double check your version number - while in the script editor, click on 'File' and 'Project Properties'.仔细检查您的版本号 - 在脚本编辑器中,单击“文件”和“项目属性”。 I had the same problem.
我有同样的问题。 It turns out my error was entering the version name I had given my current version of the script (3.0), instead of the number Google had assigned to the current version of my script (3).
事实证明,我的错误是输入了我为当前脚本版本 (3.0) 提供的版本名称,而不是 Google 分配给当前脚本版本 (3) 的编号。
Once I entered '3' as the version number, I no longer got the error message "Project Key is not associated with current project or the script version doesn't exist ", and I was able to save.输入“3”作为版本号后,我不再收到错误消息“项目密钥与当前项目不关联或脚本版本不存在”,并且我能够保存。
I used the 'Project key (Deprecated)'.我使用了“项目密钥(已弃用)”。
The Project key
has been deprecated. Project key
已被弃用。 Try using the Script Id
instead.尝试改用
Script Id
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.