I'm facing an error
TypeError: Cannot read property 'batchUpdate' of undefined"
when I use the following code in my GAS:
var batchUpdateResponse = Slides.Presentations.batchUpdate(
{
requests: requests
},
presentationId
);
Google Slides API are enabled on both Cloud Console and Advanced Service in Resource of GAS.
Looks like Slides is called properly, since I run console.info(Slides)
then get [Function: Slides]
.
However, Slides.Presentations
is not called properly since console.info(Slides.Presentations)
shows undefined
.
Appreciated if someone can help.