Home > other >  A problem with Presentations from Apps Script
A problem with Presentations from Apps Script

Time:01-14

Today, when I was run SlidesApp batchUpdate, the Google AppsScript returned me the following error:

Exception: Service Google Slides API has not been enabled for your Apps Script-managed Cloud Platform project. If you have recently turned on this advanced Google service, wait a few minutes for the action to propagate to our systems and then retry.

I don't know what was happen. Yesterday, the Apps Script was running correctly.

Anyone can help me to solve this?

CodePudding user response:

Google functionality is scoped to a Google Project.

Your Apps Script is associated with a Google Project. Any other Google services (APIs) that your Apps Script uses must be enabled in the same Project.

Replacing [PROJECT] with your Apps Script's Project, visit the following link that represents the Google Slides API:

https://console.cloud.google.com/apis/library/slides.googleapis.com?project=[PROJECT]

You can click the ENABLE button to enable the Google Slides API in the Project and thus for your Apps Script too.

NOTE You either changed Projects or added/disabled Google Slides functionality to your Apps Script but this would not have worked yesterday.

CodePudding user response:

Did you enable the Slides API for the script project you're working on? You can do this in the left sidebar menu of your project, select "Service", then select "Google Slides API" from the resulting menu.

  •  Tags:  
  • Related