在清单的api_console_project_id字段中没有指定ID的API控制台项目 [英] There is no API Console project with the id specified in the manifest's api_console_project_id field

本文介绍了在清单的api_console_project_id字段中没有指定ID的API控制台项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试发布电子表格网络加载项,但出现以下错误.

I am trying to publish a spreadsheet web add-on but getting following error.

没有API控制台项目,其ID在 清单的api_console_project_id字段

There is no API Console project with the id specified in the manifest's api_console_project_id field

谁能告诉我为什么我会收到此错误?

Can anyone tell me why I am getting this error ?

推荐答案

天哪...不知道为什么这么难.

Gosh... not sure why this was so hard.

如果Google正在阅读此书:在用户选择发布自己的加载项和/或提供指向正确文档的链接之前,运行各种API检查会更加人性化!然后修复该超级神秘错误消息.

If Google are reading this: it'd be more user-friendly to run the various API checks before the user selects to publish their add-on and/or provide a link to the correct documentation! Then fix that super cryptic error message.

无论如何,如果遇到此错误,这就是您需要做的. (感谢Tanya Gupta将我带入正确的轨道.)

Anyway, if you are stuck with this error, this is what you need to do. (Thanks Tanya Gupta for putting me on the right track).

第1步:启用GSuite Marketplace SDK

请按照以下步骤操作:

  1. 从脚本编辑器中,打开资源菜单项,然后选择 Cloud Platform Project
  2. 单击按钮 View API Console (您也可以单击带有项目ID的链接)
  3. 点击左上角的汉堡(导航)图标,然后依次选择"API和服务"和库"
  4. 搜索"GSuite Marketplace SDK".重要的是安装SDK(软件开发工具包)而不是API.
  5. 单击启用"按钮
  6. 您现在应该可以在左侧菜单中看到配置的选项.
  1. From the Script Editor, open the Resources menu item then select Cloud Platform Project
  2. Click the button View API Console (you can also click the link with your project ID)
  3. Click the hamburger (navigation) icon on the top left and select "APIs & Services" then "Library"
  4. Search for "GSuite Marketplace SDK". It's important you install the SDK (software development kit) not the API.
  5. Click the ENABLE button
  6. You should now be able to see an option for Configuration in the menu on the left.

第2步:配置GSuite Marketplace SDK

要进行配置,您将需要:

For configuration you will need to:

  • 至少选择一种语言,然后输入一个应用程序描述(用于您的附件).该名称应预先填写并与您的脚本名称匹配.
  • 上传一些大小各异的图标
  • 添加服务条款URL (我最初为我的条款和条件使用了公开的Google文档,但这不会通过新的 Github页面,但请不要在此引用我.)
  • 启用至少一个附加扩展程序
  • select at least one language and enter an application description (for your add-on). The name should be pre-filled and match your script name.
  • upload some icons of various sizes
  • add a Terms of Service URL (I initially used a public Google Doc for my T&Cs but this would not pass the new OAuth client requirements which require a verified domain. If you don't have a verified domain then users will see a security warning when installing your add-on. You - apparently - can use Github pages but please don't quote me on that.)
  • enable at least one Add-on extension

启用附加扩展程序时,需要提供以下信息:

When you enable the Add-on extension, you will need to provide the following information:

    可以从脚本编辑器中找到
  • 附加脚本项目密钥.转到文件">项目属性",然后复制项目密钥(不建议使用)
  • 的值
  • 附加脚本版本是脚本的版本.您可以在脚本编辑器中找到版本.转到文件">管理版本",然后选择脚本的最新版本.
  • Add-on Script Project Key can be found from the Script Editor. Go to File > Project Properties and copy the value for Project key (Deprecated)
  • Add-on Script Version is the version of your script. You can find the version in the Script Editor. Go to File > Manage Versions and select the latest version of your script.

注意:发布新版本的加载项时,您的加载项脚本版本将自动更新.

Note: your add-on script version will be updated automatically when you publish new releases of your add-on.

Google文档:

这篇关于在清单的api_console_project_id字段中没有指定ID的API控制台项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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