1,683 questions
2
votes
1
answer
2k
views
Google calendar API - Appointment schedule
In Google calendar you can add "Appointment schedule"
These are events that repeat periodically. But they are not created from ordinary events. They are created precisely by the schedule.
...
14
votes
2
answers
31k
views
Encountering 503 Error When Calling Gemini API from Google Colab
I'm working on a project using Google Colab to run Python code that interacts with the Gemini API (a part of Google's Cloud AI tools). The goal is to automate call transcript categorization into ...
0
votes
1
answer
209
views
Drive folder not being created
So i am trying to create a folder on google drive using python. I followed the documentation and everything and also used 0Auth2 authentication. For reference this is the code i am trying to debug
...
0
votes
1
answer
385
views
APIError: Request had insufficient authentication scopes
I'm trying to create a discord bot that will edit a specified column and row in google sheets when a command is given.
I configured the google cloud app so it has owner access to the google sheets ...
0
votes
1
answer
555
views
Listing Docker Images using Google Artifact Registry Python Client
I'm trying to list the docker images in a particular repo using the google artifact registry Python client.
Is there any way to list only the names of unique images in a repo? The list_docker_images ...
3
votes
0
answers
543
views
Google OAuth: How to convert authorization code to access token
From my client side, I have taken an authorization code using the google.accounts.oauth2.initCodeClient() with ux_mode set to popup. I would be passing the code to my server side so it could be the ...
1
vote
2
answers
731
views
How do I set the project programmatically for the python SDK?
I do not want to set the project with the gcloud cli or environment variables, I want to do this programmatically. I'm attempthing to use client_options, but this is not working:
from google.cloud ...
1
vote
0
answers
90
views
Using Google Sheets API to upload a converted CSV with Python3 - Having trouble
I'm having a lot of trouble figuring out what's going on here. I'm not getting any error messages from Google's end, and when I check the API it says that the requests are going through, but the ...
0
votes
2
answers
787
views
Robustly determining the language spoken in a YouTube video
According to the YouTube API documentation, one should be able to determine the language spoken in a YouTube video using the list endpoint. In particular, the language code is in the response: ...
-1
votes
1
answer
345
views
How to get full title of website in google custom search api?
This is my code.
def google_search(query, **kwargs):
service = build("customsearch", "v1", developerKey=app.config.get("GOOGLE_API_KEY"))
res = service.cse().list(...
0
votes
1
answer
2k
views
How insert a rendered HTML template into Google Docs using Python
I have a challenge to insert a template, which is a HTML template, to a Google Docs programmatically using python. I know there is no native/built-in features to solve my problem in Google Docs Editor ...
0
votes
0
answers
1k
views
Authenticating for Youtube Data API v3 without opening a browser (Python)
I am trying to build a simple upload application for personal use. The reason why I am posting is the google documentation and the stack overflow posts on this subject are rather confusing for a ...
0
votes
1
answer
126
views
How to create a Google Forms in a specific Google Drive folder using Python?
I can't manage to find a way to create a Google Forms in a specific directory.
All the forms I create are located at the top level of my Google Drive.
form = {
"info": {
"...
-1
votes
1
answer
271
views
run_console oauth flow does't exist as the documentation suggests?
I try to run oauth flow code in python on a google-cloud shell.
But I get an error as the method "run_console" doesn't exist. How can it be?
1
vote
0
answers
66
views
Access denied from google api to my python application
I programmed a small app to send data to google spreadsheets. It worked perfectly fine. I changed nothing on the code and suddenly I got authorisation error from google. I check online and found out ...
0
votes
1
answer
2k
views
How to authenticate to Google Gemini Pro Vision AI, using Python SDK, and in-line credentials?
I'm trying to use Google's Vertex Python SDK, but I don't want to lug a credentials.json file around. I'd rather store the secret parts of the file in a Key Vault and insert at runtime. But I can't ...
1
vote
1
answer
175
views
How to create Pandas Dataframe from Google API Response Object
I'm trying to get a Google Analytics Admin API response into a Pandas dataframe, and I'm having trouble parsing the results. I'm working with the list customDimensions method within the admin_v1beta ...
0
votes
0
answers
361
views
How can I get the youtube live stream's latency information without selenium chromedriver?
I'm trying to fetch the livestreaming latency in twitch and youtube.
I resolved it for twitch with m3u8 file, however I can't resolve about it in youtube.
The best scenario is parse the "Live ...
2
votes
1
answer
645
views
Google Calendar API Understanding of token.json
I am working with the Google calendar API, the python quickstart in particular, but the language does not matter.
The example from https://developers.google.com/calendar/api/quickstart/python has:
if ...
0
votes
0
answers
34
views
(Python, no error but doesn't work) Google drive API can't upload file [duplicate]
Recently I am doing my side project, hoping to upload a excel file to my Google drive account by using Python. I use the code chatGPT suggested, however, there is no error in the code but I just could ...
0
votes
1
answer
392
views
Drafting a reply with gmail API doesn't attach draft to thread
I want to implement functionality to append a draft as a reply to an existing thread of emails using the gmail API in Python, but my drafts intended to be replies to a thread are created as standalone ...
0
votes
1
answer
2k
views
Google DV360 API Reporting: How to fetch performance metrics such as impressions ,clicks
I am trying to extract reports from DV360 API using python.The only way I could find was to use sdfdownloadtask.Using sdfdownloadtask I was able to fetch the reports ,but the reports don't have ...
0
votes
1
answer
119
views
How to download file from https://docs.google.com/spreadsheets with Google API and authentification / service account?
I want to automatically download a file on a daily basis from a https://docs.google.com/spreadsheets account (service account).
I have a cred.json file with:
{
"type": "...
1
vote
0
answers
149
views
Google AdMob API to create Ad Units and Mediation Groups
Is there a way to create AdUnits and MediationGroups using Google AdMobAPI? Is there any scope that allows you to do so?
I've searched all across the net and couldn't find anything that suggests that, ...
0
votes
2
answers
226
views
How to Mock a YouTube build object, search results of YouTube query
I'm trying to add unittesting to my python project and have gotten stuck trying to mock my YouTube build object. The variable I'm having trouble mocking is the results variable.
The Mock object is ...