简体   繁体   English

将 Google Script Addon 发布到 G Suite Marketplace SDK

[英]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.

相关问题 是否可以将 Google Apps Script Web App 发布到 G Suite Marketplace? - Is it possible to publish a Google Apps Script Web App to G Suite Marketplace? 使用新的 G Suite Marketplace 流程私下发布 Google Sheets 插件(无需验证) - Publish Google Sheets addon privately (no-verification) with new G Suite Marketplace process G Suite Marketplace SDK:无法保存表单 - G Suite Marketplace SDK: The form cannot be saved 无法将 Google App Script 发布到 G Suite Marketplace 以供域管理员查找 - Unable publish Google App Script to the G Suite Marketplace for domain administrators to find 如何将 Google Apps Script Web 应用程序发布到 G-Suite Marketplace? - How to publish a Google Apps Script web app to the G-Suite Marketplace? G Suite Marketplace SDK [发布] 按钮总是灰显? - G Suite Marketplace SDK [Publish] button always greyed out? 无法将Google编辑器附加组件发布到G Suite市场 - Unable to publish Google editor add-on to the G Suite Marketplace 错误消息“您必须配置 G Suite Marketplace SDK 才能发布插件。” 当 SDK 正确配置时 - Error message "You must configure the G Suite Marketplace SDK to publish an add-on." when SDK is correctly configured 我发布了一个 Google 表格插件,但它没有出现在 G Suite 市场列表中 - I published a Google Sheets add-on, but it's not appearing in the G Suite Marketplace list 从G Suite管理员SDK删除用户帐户的脚本 - Script to delete a user account from G Suite Admin SDK
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM