Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clone Google Apps Script project with same advanced google services and API

I want to create multiple copies of google script files using same advanced services, also must enable API at Google developers console.

When I save as new copy, API at Google developers console for the copy doesn't auto-enable.

Because I need a lot of copies so I can't enable API manually for all.

I also tried creating a script as a library to access advanced services, enable API for it. Then other scripts call to the library function. But when I run, every script show message that I need to enable services and API itself.

Is there any solution for this?

like image 733
Lãng Khách Avatar asked Jan 24 '26 18:01

Lãng Khách


1 Answers

You cannot enable APIs for a Google Apps Script project programmatically. When you create a copy of a Google Apps Script project, a new Google Cloud platform project is created.

Even if the advanced Google service settings are copied when making a file copy, the APIs in the new Cloud Platform project must be manually enabled.

like image 82
Amit Agarwal Avatar answered Jan 26 '26 19:01

Amit Agarwal