google workspace market palce in google drive intgration - google-drive-api

how to and where to request scope "https://www.googleapis.com/auth/drive.install" in drive ui integration (in web app) for install my application in google workplace marketplace.
firstly i ceate project after this create consent screen and followed create credential (client id and secret id). i tried OAuth playground to install my aap but its not help me to find how to and where to implemnet . and i did not understand which api call or not to install my app in google workspace marketplace.

Related

How to use google app script addon by app script manifest or local environment?

I am new to google app script. I don't know how to deploy the Google add-on. I have tried some setups for deployment but have not been able to do the deployment. so, I have some questions below.?
Can we use the google app script add-on without deploying on google marketplace? or
how to use google add-on local environment?.
or
Can we use the google add-on just by passing appscript.json? as we do in excel? In the excel add-in we just pass the manifest file and we put the dist folder on the local server so anyone can use that add-in.
Can anyone guide me about this.
I suggest you read https://developers.google.com/apps-script/add-ons/ and https://developers.google.com/workspace/marketplace
To deploy an add-on (i.e. create a version of the script that can be used by an app in the Google Workspace Marketplace) see https://developers.google.com/apps-script/concepts/deployments
To test an add-on (install it without having to publish it in the Google Workspace Marketplace)
See https://developers.google.com/apps-script/add-ons/how-tos/testing-editor-addons.
To publish an app in the Google Workspace Marketplace see https://developers.google.com/apps-script/add-ons/how-tos/publish-add-on-overview and https://developers.google.com/workspace/marketplace/how-to-publish.
Sheets and other Google Workspace products are on the cloud, so you can't copy a file somewhere to install and add-on. If you have are a Google Workspace customer you can publish a private app in the Marketplace. Then the admin can install the app for its users.

GAS AddOn for Sheet : the script can't use Drive Service DriveApp

I made a script that get a Drive folder by ID and then processes a function. I first used this script on the Apps Script Editor linked to a Google Sheet file on my Drive, before migrate to an Addon : it worked like a charm. This is what the code looks like :
Line 93 :
var parentFolder = DriveApp.getFolderById('##folderId##');
Then, I published a private AddOn of that script for our domain on the Google Workspace MarketPlace. The function "DriveApp" won't work and the only log i received is :
Uncaught at functionName (Code:93)
I specify that my AddOn is published domain-wide and installed by administrator... The Google Docs says (here : https://developers.google.com/apps-script/reference/drive):
However, if an add-on using the Drive service is published for
domain-wide installation and is installed by the administrator for
some or all users in the domain, or any Apps Script that has its OAuth
client allowlisted by the domain administrator, the add-on functions
for those users even if the Drive SDK is disabled in the domain.
I prefer using DriveApp than the Advance Drive API Service. Maybe a problem with "Google Workspace Add-ons" OAuth or ...? I am stucked.

Need help in setup of CI/CD for Google App Script?

We are building an addon using Google App Script and want to publish it to Google Workspace MarketPlace. We are managed to publish versioned deployment using the Manage Deployment feature of App Script.
We are looking to configure CI/CD for App Script addon (whenever changes committed to a git branch, a new deployment id should be created and respective code should be published on Google Workspace MarketPlace).
We didn't find any workaround to configure CI/CD for App Script. Our preference is Azure for CI/CD.
You can use a combination of the
Apps Script API
Where you can manage deployments and versions.
Workspace Marketplace API
Where you can control your app listing.
You may not be able to do absolutely everything but that will be your best place to start.
I am not familiar with Azure but you can look into git actions to run some API request to the above APIs whenever you make a commit to the main branch.

Error message "You must configure the G Suite Marketplace SDK to publish an add-on." when SDK is correctly configured

I have published tens of add-ons but now suddenly when doing everything the same way I get the error message "You must configure the G Suite Marketplace SDK to publish an add-on." when I try to publish an add-on using the "Deploy as Docs add-on" menu item. I have configured the "G Suite Marketplace SDK". BTW, the error dialog presenting the error message is linking to the console project correctly but the link replaces the current browser document, it would be better if it would open a new tab.
The message in the dialog is not an error message. They have changed the way you start the publish process. The dialog would make more sense to me if it would say:
We have changed the publish process:
Go to your console project
Enable the G Suite Marketplace SDK library
Configure the Marketplace SDK with the Config tab
Publish the add-on using the Publish tab
If you want to make a feature request to Google about the Apps Script code editor, then you'll need to use the Google Issue Tracker
Make Feature Request
Answer:
Google is currently migrating add-ons from the Chrome Web Store to the G Suite Marketplace, so now need to be published there rather than the legacy marketplace.
Further Information:
In order to publish an Apps Script project as an addon, as specified in your message, the G Suite Marketplace SDK must be configured. You can find an article detailing the migration process here.
You will need to enable the G Suite Marketplace SDK in your Google Cloud Platform (GCP) project. You can follow the information on the Getting Started page for Google Cloud.
References:
All add-ons now in the G Suite Marketplace
Publish to the G Suite Marketplace
Getting Started with Google Cloud

Missing Cloud Platform Project ID due to "Apps-script managed project"

I have an Apps Script project that I am developing and pushing updates to via Clasp, and I want to setup clasp stackdriver logging in the terminal. In order to do that, I need the Project ID of the script, which I can not find.
When inside the script editor I navigate to Resource -> Cloud Platform project.. I am just greeted with the following message where the ID should be: "This script has an Apps Script–managed Cloud Platform project."
In order to use stackdriver like you want to, you need to switch to a cloud project that you created at console.cloud.google.com. Once you have a project, use the same dialog at Resource -> Cloud Platform project.. to switch to it.