我在尝试发布应用时获得了无效的清单:未知字段:[api_console_project_id]

时间:2018-01-19 01:15:38

标签: google-apps-script manifest

我在尝试保存此清单文件时遇到错误:

无效的清单:未知字段:[api_console_project_id]

我的清单文件是

{
  "timeZone": "America/New_York",
  "dependencies": {
  },
  "exceptionLogging": "STACKDRIVER",
  "api_console_project_id":"my-project-ID"
}

我已启用并配置了Google商店SDK

1 个答案:

答案 0 :(得分:1)

不知道这有助于购买我的独立清单看起来像这样。

{
  "update_url": "https://clients2.google.com/service/update2/crx",    
  "manifest_version": 2,
  "name": "Exchange",
  "description": "Link to...",
  "version": "2.3",
  "icons": {
  "128": "128.png"
},
  "container" : ["DOMAIN_INSTALLABLE"],  
  "api_console_project_id": "NOT_EASY_TO_FIND_PROJECT_ID",
  "app": {
  "urls": [
  "https://script.google.com/a/macros/ilavietnam.edu.vn/s/PUBLISHED_ID/exec"
],
  "launch": {
  "web_url": "https://script.google.com/a/macros/ilavietnam.edu.vn/s/AKfycbx7Xj0EWjLyTDpzi44dFRw0zePAhvn-Qn4OpwaLpH5SjUNKaWA/exec"
}
},
  "permissions": [
  "unlimitedStorage",
  "notifications"
]
}

此外,还需要启用Market Place SDK API。

enter image description here