Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

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

enter image description here Can anyone tell me why I am getting this error ?

like image 898
Hari Das Avatar asked May 08 '18 10:05

Hari Das


Video Answer


3 Answers

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

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.

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).

Step 1: Enable the GSuite Marketplace SDK

Follow these steps:

  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.

GSuite Marketplace SDK

Step 2: Configure the GSuite Marketplace SDK

For configuration you will need to:

  • 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 documentation:

  • https://developers.google.com/gsuite/add-ons/how-tos/publish-for-domains#before_you_publish
like image 65
Dagmar Avatar answered Sep 26 '22 02:09

Dagmar


Just to build on Dagmar's Answer

Solve this issue in 8 steps with Pictures:

  1. On Apps Script Menu Bar, go to Resources > Cloud Platform project...

Resources > Cloud Platform project

  1. On Google Cloud Platform, go to the left navigation menu Select APIs & Services > Library

PIs & Services > Library

  1. In the search bar that appears, type in "GSuite Marketplace SDK" Hit Search, once it appears click it.

GSuite Marketplace SDK

  1. Click on "ENABLE"

Enable GSuite Marketplace SDK

  1. Once you click Enable in step 4. the screen below should appear. Select "CONFIGURATION"

CONFIGURATION

  1. Fill the document as you deem fit, but the most important part is shown below.

  2. Scroll Down to Editor Add-on extensions, then select the Google App you're building your add-on for. It's the same process for Docs, Forms Sheets or Slides Add-ons

enter image description here

  1. How to Get Script Project Key. Go back to your Apps Script Page.

Go to File > Project properties. Select the 'Info' tab. Then copy the value of Project key (Deprecated) and paste into the "Script Project Key" field

Script Project Key

  1. How to Get Script Version. Still on your Apps Script Page.

Go to File > Manage versions....

Then copy the value of Version and paste into the "Script Version" field

Script Version

  1. Click Save Changes and voila you're done. Do not forget to add the privacy policy URL and other required info, else the changes will not be saved
like image 24
LekeOpe Avatar answered Sep 24 '22 02:09

LekeOpe


If you are publishing on Google Apps Marketplace, you need to not only enable the API, you also need to configure it by entering the needed settings.

1) First click on the enabled API as per image below: enter image description here

2) Then click on configuration. enter image description here

3) Then fill out the values as per below: enter image description here

4) Particularly important are (not shown here):

a) including correct oauth scopes (File->Project Prop->Scope from your script file)

b) Docs Add On Project Key (File->Project Properties->Info->Project key)

c) Docs Add On Script Version (from the developer console)

Now if you go back and publish you should no longer have the error

like image 23
Tanya Gupta Avatar answered Sep 26 '22 02:09

Tanya Gupta