461 questions
0
votes
1
answer
79
views
How do I specify a "q" parameter for www.googleapis.com/drive/v3/files
In the Google Slides API sample, it says to do a GET request:
GET https://www.googleapis.com/drive/v3/files?q="mimeType=application/vnd.google-apps.presentation"&fields=files(id,name,...
Advice
0
votes
4
replies
58
views
Slides Add-On accessing Sheets Data and Narrowing Scopes
I have an Add-On under review in the Google Marketplace.
My Add-On runs in Google Slides and needs to access Google Sheets data to create various visuals in Slides. Specifically my Add-On pulls data ...
0
votes
0
answers
40
views
Inconsistent Master/Theme Application when Batch-Inserting Slides via Apps Script
I am facing a strange and inconsistent issue with theme application when generating presentations using the Slides API and an Apps Script helper function.
My Goal:
I'm building a service to generate ...
0
votes
1
answer
104
views
Google Drive API: gapi.client.drive.files.copy returns 404 for existing file (Slides template)
I'm trying to copy a Google Slides template using the Google Drive API with gapi.client.drive.files.copy, but I always get a 404 error, even though the file exists and is owned by the same account I'm ...
1
vote
0
answers
67
views
Getting Google Presentation Slide Ids from Public Presentations
I'm trying to export all slides from a public presentation so that I use them in my program.
I'm aware that I can simply use the URL
https://docs.google.com/presentation/d/{PRESENTATION_ID}/export/...
0
votes
1
answer
83
views
Google Slides add-on vrerification oauth scope
I'm now oauth verification for the Slides add-on by google apps script.
First, I use drive.readonly scope. OAuth Dev teams point use drive.file scope instead of drive.readonly.
So I rewrite my app ...
0
votes
1
answer
130
views
Can Slides API use only drive.file scope
I oauth verification for the Slides add-on.
OAuth Dev verification point next mail.
Minimum Scope Requirement
You requested the following sensitive scope(s):
https://www.googleapis.com/auth/...
0
votes
0
answers
134
views
Get the current active slide of a google slide embedded in an iframe using javascript
I have a embedded google slides into an iframe.
<iframe
id="presentation-iframe"
src={`https://docs.google.com/presentation/d/{presentationId}/embed`}
width="...
2
votes
1
answer
105
views
How to add slides from another presentation using the Google Slides API in PHP?
I have a slide file called 'Slide A'. The file ID is simply 'A00001'.
There is another slide file called 'Slide B'. The file ID is simply 'B00002'.
I want to add the pages from Slide B into Slide A.
I ...
0
votes
1
answer
84
views
Export Google Slides to Image / PDF
I'm trying to turn Google Slides into PDF or IMAGE format, and I'm having a lot of trouble finding a solution that is not 10 years old and still working.
0
votes
1
answer
117
views
Mix text and list in one shape on a Google Slide using Google Apps Script
I'm using Google Apps Script (SlidesApp) to dynamically generate a Google Slides presentation.
On one of the slides, I need to mix text and a list.
I prefer to keep these both within the same textarea ...
0
votes
1
answer
309
views
How to update a chart in Google Slides dynamically?
I am trying to update the chart dynamically that is embedded in a Google Slides, but it throws an error at me.
This is the function that I came up with to replace some specific text that is placed in ...
0
votes
2
answers
618
views
How to order placeholder elements in Google Slides for usage in Google Apps Script
EDIT: Final solution has been added as answer but I marked Tanaike's answer as solution as he pointed me towards the right direction.
I'm setting up a Google AppScript to automate a bit of reporting.
...
0
votes
1
answer
474
views
How to create sub bullet points (nested bullet points under bullet points) using Google Slides API
I'm trying to use the Google Slides API to create nested bullet points within a paragraph. Currently, I'm able to create a paragraph with bullet points, but I'm struggling to create sub-bullet points (...
0
votes
2
answers
267
views
Add hyperlink efficiently to text just replaced on Google Slides
I am inserting a list of instagram handles from Google Sheets to Google Slides using Google Apps Script.
The Google Sheets contains a list of instagram handles, such as @Apple, @Google, etc. For ...
1
vote
0
answers
100
views
Replacing google slides images using slides api in shared google drives
Following up with my previous question, now, facing an error when I use shared google drive with the service account having Manager privilege on that shared drive, it is failing during the image ...
0
votes
0
answers
48
views
Google slides HTTP requests API's
I am a bubble.io developer but ran into a problem I haven't had previously, trying to push data (just creating a new slide) from bubble.io to google slides using the following API:
https://slides....
0
votes
0
answers
62
views
How to download a specific revision of google slides file?
i'm trying to get a specific version of google slides, for that i first of all get all revisions:
creds = ServiceAccountCredentials.from_json_keyfile_name(credentials_path)
drive_service = build("...
0
votes
1
answer
46
views
How do you pull all numbers from text in google slides with an apps script?
I'm trying to make a block of code that colours numbers depending on the value. I know how to pull text but not numbers that can be affected with operations. I'm new so sorry if it's extremely easy!
...
0
votes
1
answer
630
views
Is there a way to get the ID or name of the current presentation?
Try to create a document in the same folder of the presentation but I seem to need to have the ID or name to get the ID of the parent folder and I cant seem to find any thing that does that.
Nothing ...
1
vote
1
answer
801
views
Replacing google slides images using slides api
I have the following scripts to update the images in google slides, it works fine but sometimes it gives me 400 error, service account has a write permission to the drive/images and the presentation
...
0
votes
1
answer
72
views
Save one Google Slide as pdf with Google Apps Script while preserving the format
The solution provided in this answer is correct but in my experience, a slide in 4:3 format will be saved as a pdf in the 16:9 format, which scrambles the contents.
How can I save a Google Slide to ...
-4
votes
1
answer
373
views
Google Cloud API (sheet, slides) Quotas with Service Account
I wanna switch to a service account to remove access token duration.
However, I can't find the quotas here. Do quotas for Service Account are the same than user account and (actually 60) requests per ...
0
votes
1
answer
151
views
Linked Chart Populated by =NOW() Not Updating
I have a slideshow on Google Slides running as our cafeteria slideshow. Recently, I got a Weather API to work and regularly update, using a linked chart. The chart and slide now updates automatically.
...
0
votes
1
answer
251
views
Is it possible to get the placeholder ID from a placeholder in Google Slides?
I've created a text content placeholder in Google Slides by editing the Google Slides theme. I'd like to dynamically insert content into that placeholder and to do that I need to know the placeholder ...
1
vote
1
answer
211
views
screenshot from copy of google slide
I'm new to google App Script.
I made this script for copying a template slide show and after the copy is made i fill it with tekst of a google sheet.
When it's ready I want to make screenshots of the ...
0
votes
1
answer
2k
views
Google Slides Tables: setColumnWidth
in Google Slides you can add a Table
and each Column in said table can be configured to a certain length
in my case i want each column to be
column1: 50pts
column2: 200pts
column3: 30pts
column4: ...
0
votes
1
answer
414
views
Python Google Slides API How to replace rectangle with an image?
I have a google slide presentation with a slide and a rectangle. The rectangle serves as a placeholder and will be replaced by an image.
I have followed this tutorial on how to replace the shape with ...
0
votes
1
answer
633
views
Python Google Slides API How to insert a text with hyperlink?
I have looked through the documentation of Google Slides API, but I can't seem to find the section where you can insert a text with hyperlink. I am using python for integrating the API.
2
votes
0
answers
2k
views
How can you make an animated GIF not play until you click on the slide that it lives on?
When you add a GIF to Google Slides, it will play even if you are not on the slide that it lives on. If you refresh the page, you will see that the GIF starts to play in the thumbnail. Therefore, when ...
1
vote
1
answer
339
views
Why do I get this error most of the time trying to use the google API to upload and insert into slides a picture?
I am trying to generate slideshows automatically on Google Slides via the api in python3 and this involves uploading a graph to a particular slide. I created a service account with the slides and ...
1
vote
1
answer
210
views
Error code 401 when create a google slide API on Laravel
I'm studying google slide API on laravel framework now. i want to create a simple template at first but i stuck. i got this error.
{ "error": { "code": 401, "message": &...
0
votes
2
answers
7k
views
Is there a way in which I can automatically update a table in google slides linked to google sheets without clicking update?
I'm new to this so please bear with me! As the title states, I am trying to link a Google table to Google Sheets. I copy/pasted the table into Google Slides and linked it to the spreadsheet. Without ...
-1
votes
1
answer
153
views
exporting google presentation in .net core to pptx
I am creating a presentation via Google.Apis.Slides.v1 in a C# project running on .NET 6.
I downloaded the latest nugget package:
Install-Package Google.Apis.Slides.v1
When trying to export the ...
0
votes
1
answer
221
views
Does Goolge Slides have a 'next slide' event or trigger?
Does Google Slides have a 'next slide' event or trigger? PowerPoint (via Microsoft has a next-side event/trigger that a PowerShell script can listen for, so you can automate a task as each slide is ...
0
votes
1
answer
294
views
How to append hyperlink to replaceAllText command in Google Apps Script
Basing a script off of this tutorial - https://spreadsheet.dev/convert-each-row-google-sheets-into-slide-google-slides-apps-script, works perfectly fine. However I'm trying to populate a hyperlink as ...
1
vote
1
answer
298
views
Google app scripts not replacing all text in a slide
I have a map of slide numbers with an array of associated variables.
const slidesMap = {
0: ['firstName', 'date'],
10: ['diversityScore', 'diversityDef', 'butyrateEfficiency', '...
1
vote
1
answer
103
views
How to fix/freeze theme color of a shape in google slide using app script
I am trying to freeze the shape color in google slide. So, if the user changes the theme, the shape color should not change. I understand google sheet support Theme and RGB type. I am using below ...
1
vote
1
answer
145
views
Reordering all slides
I have a NodeJS app I am writing that will manipulate slides in my Google Slides Presentation. I am trying to reorder all the slides in my Google Slides presentation at one time. I keep getting this ...
0
votes
0
answers
186
views
Delete text from a Google slides using API
I' m trying to repetetive presentation with Google Slides starting from the events on Google Calendar using an API.
I was able to replace some text, but I'd like to delete all the text after the last ...
0
votes
1
answer
850
views
How to use google-api-python-client package in PyCharm?
I am using PyCharm Community Edition 2022.1, with Python 3.10 interpreter.
I am trying to use the google-api-python-client to add elements to a Google Slide.
I've tried import googleapiclient, but it ...
0
votes
1
answer
154
views
Duplicate master Google Slides deck + Populate it from Sheets
I have two scripts that work well separately but I need to combine them.
What I am trying to achieve is that from a Google Sheets, someone will run a script and:
A copy of a master Google Slides deck ...
1
vote
1
answer
175
views
Is it possible to generate a thumbnail of an object (e. g. a shape) in a Google Slides File with Apps Script?
With the Slides API getThumbnail it is possible to generate a thumbnail of a specific slide/page (pageObjectId) of a specific presentation (presentationId):
GET https://slides.googleapis.com/v1/...
1
vote
1
answer
166
views
Why when running the api for google slide batch update I get a 503 Service unavailable response?
The service was working fine, but 48 hours ago this problem started. I have a backend application running, I receive a POST request with a list of slides id´s to remove from a google slides ...
0
votes
1
answer
284
views
Rectangular Grid Using Google Apps Script in Google Slides
So, I asked ChatGPT to create a rectangular grid using Google Apps Script within Google Slides. Here are the parameters I gave it: The grid has 5 columns and 4 rows, with each rectangle being no more ...
1
vote
1
answer
250
views
GAS Script to change the layout of existsing slide
I have a Google Slide where
Slide1 has Layout by name "Layout1"
Slide2 has Layout by name "Layout2"
Slide3 has Layout by name "Layout3"
I want to modify the slide ...
1
vote
0
answers
132
views
How to change the theme of the presentation in google slide api?
I can't change the theme of the presentation using the google slide api in a react application. How to change the theme when creating the presentation. Thank you for your help.
`
function ...
0
votes
1
answer
667
views
Google Apps Script - Exception: Page element is not of type shape
I store in a Google Sheets table some data about quotes, which I inject in a Google Slides (duplicate of a template).
My script works replacing the placeholders with the cell content and injecting ...
0
votes
1
answer
94
views
How to remove highlight in the google slides API?
I am using the Google API Python Client to replace text placeholders with generated data. In this example, I detect all instances of "bar" and replace them with "foo", in all ...
0
votes
1
answer
639
views
Aligning text in the center of a text box using Google app script for slides
I am working on a project that requires text to be aligned in the center of a text box on a google slide, using a google app script.
The goal is to pull text from a google worksheet. Then pull an ...