We currently have a published docs web add on that was originally published in 2016. It looks like now add on's need to be attached to a GCP project. When I try to publish a new version I receive the following error : "API Console project with the id specified in the manifest's api_console_project_id field, does not have Google Apps Marketplace SDK enabled." See screenshot.
Error Message
Also, when I go into the script under resources there is no "Cloud Platform Project" link, see screenshot.
No menu option
Also, when I go under "Advanced Google Services" and click on "Google API Console" I get the following error screen when trying to load up the GCP Project.
I'm trying to keep this current listing as I already have a large user base, I just need to somehow associate a new GCP project with an existing add-on. Any help would be greatly appreciated.
Related
I'm doing the basic tutorial for google Quickstart bot in section to part 2 I see:
2) In the Cloud Platform project dialog box, click the URL for the project associated with the script.
I don't see any urls to click. Image of dialog box below
That's because since the release of April, 8th you can no longer view the default GCP assigned to your project (that is, if you created the project after the release). If properly reassigned a standard GCP, the link will appear in the dialog box in place of the This script has an Apps Script managed Cloud Platform project placeholder.
Please, read this official guide on how to switch to standard GCP (if you don't have a standard GCP yet, there is a guide on how to create one - btw, it might be confusing, but the button is clickable and will lead you straight to cloud console) and follow the steps provided.
Once done, copy the GCP number, open the resource manager again, paste the number and click on the "Set Project" button. If everything is configured correctly, you will see something like this and be able to access your new GCP:
I am not able to switch google cloud platform project in GAS editor.
What I am doing is…
Open the google sheet GAS editor
Open Resource --> Cloud Platform Project
Enter project number that I want to connect
With the process above, I was able to switch a cloud platform project but now it returns an error
‘Project does not exist, or you need edit access to it.’
I am using the same cloud project and same account(editor) that I used before and properly worked. I tried do the same with a owner account, but it didn’t work, either.
Also, this cloud project is not a default project nor a hidden project. (If it does, I guess it should not be able to access through GAS editor from the beginning)
I have checked documentation below, but it tells me only case when switching to a hidden project.
https://developers.google.com/apps-script/guides/cloud-platform-projects
Does anyone have a solution or suggestion??
Thank you for the help in advance.
Problem Solved.
I figured out that OAuth IDs which are generated when make connection docs to the cloud project are not be deleted even though delete actual document files.
What I have done is...
Login Google Cloud Platform
Go to APIs&Services --> Credentials
On OAuth 2.0 client IDs, delete unnecessary contents from the list
Back to your docs and switch the cloud project.
When tring a simple select query against my FusionTable, i got this error
Access Not Configured. The API (Fusion Tables API) is not enabled for your project. Please use the Google Developers Console to update your configuration.
My question is 'how' enable fusion tables api in developer console for use with a standalone app script?
My dubt is about the projetc, because I cannot select my app script project from google drive as the project for which to enalbe the API. And even creating a new project, I end having a json file as credential but how I use it?
NOTE: I already enabled FusionTables into my project's advanced resource configuration AND I've already enable into Google developer fusionTable api manager... but here I read
This API is enabled, but you can't use it in your project until you create credentials.
Click "Go to Credentials" to do this now (strongly recommended).
This is the core of the problem. Which credentials exactly must I create and how to use the newly generated credentials in my standalone Google App Script?
What the right answers to these questions?
You need to enable the API from the project's Developers Console link.
1) Open your script project.
2) Select Resources in the menu.
3) Select Developers Console Project...
4) Click the link that looks like projectname -api-project-5853434..
5) After you get redirected to the console, click the hamburger menu in the top left and choose API Manager
6) Type Fusion into search. And select the Fusion Tables Api.
7) Click the Enable button.
This will take care of your first error.
As for your second error:
When you create a new project it generates a new developers console project for your script along with a set of default credentials. You can only access it from the script editor IDE, as it will not show up in console.developers.google.com view all projects page. I suspect your error is a result of tinkering with the projects dev credentials or possibly an error on Google's side generating the dev console project.
I would migrate your script to a new Apps Script project. Enable the fusion table advances service and the API as I detailed above. This will clear up the second issue.
I'm trying to publish a Google Docs addon, visible only to my Google Apps domain, and then automatically install it for everyone in the domain
I have:
made a script in Google Drive, shared it with everyone on the domain
deployed it to the Developer Dashboard using Publish -> Deploy as Addon, with Publish in Google Apps Marketplace turned OFF
pushed it from the Developer Dashboard, making it visible just to users of my domain, giving it all the necessary fields and images
verified that others from the domain can install the addon by going to Addons -> Get addons in a Google Doc, toggling the filter to For mydomain.com. Also verified that it works when installed that way.
created a new project in Google Developers Console, added Google Marketplace SDK and created an OAuth2 client id
I'm stuck on the step of "configure Marketplace SDK", specifically the project key for the Docs add-on extension option in it, where I'm consistently getting a Project Key is not associated with current project. error.
I believe I need to finish this step, so that I could then re-do step 2 with Publish in Google Apps Marketplace turned ON, and then finally enable it for everyone.
Steps that shouldn't affect things, but might be worth noting:
I am not the owner/admin of the domain, but the admin is assisting in steps where I get stuck. (like creating the OAuth2 client id)
I have transferred ownership of the Developer Dashboard entry to a group that I'm owner of (on the desired domain)
I have transferred ownership of the Developer Console project to that same group
the problem was I manually created a project in Google Developers Console
instead, I should've used the Resources -> Advanced Google Services -> Google Developers Console link to access a HIDDEN PROJECT (?!) and enable Marketplace SDK there.
sigh.
I want to Use Google Drive in my application. I have tried that Demo Project from git- hub. I am getting Error of "Unknown Issue With Google play Service?".
It let me Select to choose Particular Account For Drive Use. But After That It gives me that error.
I am unsure why this is happening for the demo app, but for my own app that error was shown because the google drive android api had not been authorized. You could try creating your own project and use the demo project as a guide. Then, authorize your app by following the steps outlined here: https://developers.google.com/drive/android/auth
To add a client ID for your app, you need to have a project set up at https://code.google.com/apis/console/
You add the client id in the "Apis and Auth" section.