问题描述
我有一些Google Sheet脚本代码,我想将这些代码提取到Google Sheet Addon中,以便仅针对我们的域(而不是公共网络)发布.我团队中的个人过去曾经能够成功完成此操作,但是在 2019年1月2日,当Google从Google Chrome商店中删除加载项时,我们一直遇到困难.
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). 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.
我正在尝试遵循: https://developers.google.com/gsuite/附加组件/how-tos/publish-addons#publishing_instructions
但是在尝试配置G Suite Marketplace API时出现以下错误:
But get the following error when trying to configure the 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:
有人知道我哪里出错了,或者知道如何发布私有的Google Sheet插件的好指南吗?
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 Apps脚本编辑器的资源"->云平台项目"下,单击ProjectName-project-id-xxxxxxxxxxxxxxxxxxx链接.然后,当它打开您的Cloud Platform Project时,在左上角,您的项目名称将在下拉列表中列出.单击下拉列表,并验证此project-id-xxxxxxxxxxxxxxxxxxx与您单击的链接匹配.就我而言,这两个数字不是,因此我必须刷新屏幕以获取正确的项目ID,才能显示在Cloud Platform Project屏幕中.
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. 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. 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.
这篇关于将Google脚本插件发布到G Suite Marketplace SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!