You can publish the add-in so that it is limited to the domain / G Suite account that contains the Apps script file.
https://developers.google.com/apps-script/add-ons/publish
If the addendum is not published publicly, it does not go through the approval process.
Add-ins must be published to the G Suite Marketplace, which means that you need to create a “standard” Google Cloud Project, link it to your Apps Script project, and then enable the G Suite Marketplace SDK and configure the settings in the G. Suite Marketplace SDK.
To access the Google Cloud Platform Toolbar, use the URL
https://console.cloud.google.com/home/dashboard
- From IAM and Admin, go to Resource Management
- If you do not have an organization name, then create an organization
- Create a new GCP project
- Get GCP Project Number
- Put the GCP project number in the application script project
- Go to the API and Services toolbar.
- Make sure the project you want to use is listed in the drop-down list.
- Click Enable APIs and Services
- Search for G Suite Marketplace
- Enable G Suite Marketplace SDK
- Set up the G Suite Marketplace SDK
It is also possible to make the application script project file available to other application script projects in the form of a “library”. The library can be made available for other application script projects by specifying the "project key" of the original application script (library).
Anyone who wants to use the source script file for Apps as a library needs a project key. To find the project key, in the code editor select "File" - "Project Properties" and find "Project Key (Deprecated)"
To add the application script file as a library, select "Resources" - "Libraries" in the code editor. You do not need to do anything to create a library. Each Apps Script project is available as a library. All you have to do is share the project key.
You can add the Add-in menu item to a spreadsheet or Google document without publishing the add-in, and this Add-in menu item will run any code that is in this document , just like an add-in. But you will need to edit the document of each user for whom you want to deploy the code, and manually add the code to your document.
If the Apps Script file is not published as an add-in, then it makes no sense to create an add-on menu, since you can create your own menu.
Alan wells
source share