Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
105 views

I'm trying to audit my Google Distance Matrix API usage to calculate costs per month. Since billing is based on elements, counting the HTTP requests is not enough. I'm using the google.cloud....
Adrian's user avatar
  • 163
0 votes
1 answer
59 views

Looking at the docs this is the only perm I should need to grant my service account: https://www.googleapis.com/auth/admin.directory.domain.readonly The service account I'm using has domain ...
red888's user avatar
  • 32.5k
1 vote
0 answers
186 views

Problem: I am facing this error- googleapiclient.errors.HttpError: <HttpError 403 when requesting https://docs.googleapis.com/v1/documents?alt=json returned "The caller does not have ...
Hetarth Jain's user avatar
0 votes
1 answer
72 views

I’m using the Python client library (google-api-python-client) to call captions.update, but I keep getting a 403 forbidden even though I’ve granted all the obvious scopes. I’d appreciate any insight ...
Kenji Ishikawa's user avatar
0 votes
0 answers
178 views

So I am making this spam email filter in python so I tested it in vscode and it works as intended but when I use pyinstaller to package it it give me the error: "Error accessing Gmail: ('...
Hunter Davis's user avatar
0 votes
0 answers
159 views

Problem: Even after requesting “offline” access and saving the refresh token, the refresh token stops working after 1 day or sometimes just a few hours. Actual error: Reauthentication is needed. ...
Rohan Karan's user avatar
0 votes
1 answer
50 views

I'm trying to remove resources (conference rooms) that have declined events. It works as expected for events where the caller is the event organizer, but not if another person is the organizer. The ...
Allan Beaufour's user avatar
0 votes
2 answers
101 views

I am using a python script to import calendar entries from one tool to google calendar. I have no problems with events that repeat weekly, but the monthly repeating events get created incorrectly. I ...
Beth ChaosDragon ChaosDragon's user avatar
0 votes
2 answers
195 views

I'm trying to use the Connect Gateway client in python to connect to GKE but I keep getting 400, even if everything seemingly is correct. Example from google.cloud.gkeconnect import gateway_v1 client ...
Pithikos's user avatar
  • 20.7k
0 votes
0 answers
161 views

An issue appeared today on my app where when users try to link their youtube brand accounts through the google oauth flow, they get stuck after agreeing to the terms and conditions. They are not ...
musa khawaja's user avatar
1 vote
0 answers
227 views

I'm trying to integrate Google Calendar API in my python script, but I keep getting authentication errors, and I'm not sure why. Errors: (running the python script in the terminal): An error occurred: ...
Pink Koala's user avatar
2 votes
1 answer
222 views

I have project that involves taking a picture every one hour with a Raspberry and saving it to Google Drive. I'm using the google-api-python-client to connect to a Google Drive and apscheduler to ...
Pablo Rios's user avatar
1 vote
1 answer
121 views

Using the Python example taken directly from the "Google Sheets API documentation > Create a spreadsheet" and changing only the credentials, I am experiencing poor performance. It's ...
Stokedout's user avatar
  • 11.1k
0 votes
2 answers
168 views

I am testing my python connection to Google Drive using Python Google API Client. I am able to establish a connection, but I am not getting back a list of objects from Google Drive. I wonder if a lack ...
Steve Scott's user avatar
  • 1,553
0 votes
0 answers
269 views

I am creating a Python script to generate a token from the user and store the generated token. While testing locally, everything worked fine when I used http://localhost:8000/ as the redirect URI in ...
Saurav's user avatar
  • 1
0 votes
1 answer
85 views

My Gmail reached the 15 GB limit, so I archived old emails with Thunderbird and I want to delete all the emails that are older than two weeks. Using the GUI is cumbersome because it seems like I can ...
Paul Lewallen's user avatar
0 votes
1 answer
112 views

I'm trying to create some automation to add users to a Google Play Developer account using the API. I wrote a python script using the google-api-python-client library. The service account I'm using ...
user28820123's user avatar
0 votes
0 answers
91 views

I have developed a Python-based Web API using frameworks such as Flask or FastAPI and need to deploy it on an IIS (Internet Information Services) server. The goal is to make the API accessible within ...
Praveen Kumar's user avatar
2 votes
1 answer
216 views

I am trying to extract and download reports from DV360 API using python. I have gone through the documentation https://developers.google.com/bid-manager/guides/get-started/send-request ,but not able ...
Bits's user avatar
  • 286
0 votes
1 answer
787 views

I can't read the files that I saved on "Google Drive" using the code that You can see below. I've yet enabled the "Google Drive API" in the GCP project. I've yet created the "...
Stefano G.'s user avatar
1 vote
1 answer
144 views

I need to be able to get Google site reviews by their API do put them in our data warehouse. I tried with the following code: from googleapiclient.discovery import build API_KEY = '...
André Pletschette's user avatar
1 vote
0 answers
55 views

The Purchase token i used for testing is like : GPA.3376-9095-7476-99xxx I'm not sure if it a purchase token as i use adapty and this is the transaction ID i got from it. def ...
Jenin Joseph's user avatar
4 votes
1 answer
7k views

I have a URL to a public google doc which is published (It says published using Google Docs at the top). It has a URL in the form of https://docs.google.com/document/d/e/<Some long random string, I ...
Rbe's user avatar
  • 31
0 votes
0 answers
90 views

I must mention all of this was working perfectly and then stopped working suddenly. I was using a python script to upload epub files from my google drive to my google playbooks library. This is my ...
Varo OP's user avatar
  • 83
1 vote
1 answer
77 views

I’m having trouble getting this to work. Essentially I want a user to input a keyword and then get a question and answer pair as a return. The first, second, and third columns in the the spreadsheet ...
Sophia Campione's user avatar
1 vote
1 answer
476 views

I am trying to fetch details and artifacts from the google meet recording by using the recently released Google Meet APIs. I want to make a server to server API call, so have created a service account ...
viv1's user avatar
  • 109
1 vote
0 answers
82 views

I'm working with the mybusinessbusinessinformation API, attempting to get a list of locations. The documentation for this API is here. I have already taken the following steps: Filled out the form ...
MisterJT's user avatar
  • 432
1 vote
1 answer
323 views

I have written a very simple piece of code in python for use in an azure function. It is meant to use my service account creds to run a report in google analytics 4 and return the results in JSON. As ...
Jenny's user avatar
  • 11
0 votes
1 answer
391 views

I'm working on a project and must consume some messages from my GCP Pubsub subscription. Locally I can consume messages normally. But when I release the changes to a container in the cloud (something ...
juan jose Palacio's user avatar
1 vote
1 answer
2k views

I'll re-formulate this question based on the feedback. First, a few base facts: I'm writing a GUI application that talks to google cloud services using the google.cloud Python SDK. I'm using google ...
Jon Watte's user avatar
  • 7,443
2 votes
1 answer
554 views

Does anyone know how to use the GoggleDrive API to get files that are in the Shared Drives category. I have a API call that I can use to get metadata via FileID which works for files that are shared ...
Todd B's user avatar
  • 115
0 votes
2 answers
2k views

Below is a snippet that sends a prompt and a pdf file to gemini. def runGemini(prompt, model, document=None): model = genai.GenerativeModel(model) content = prompt if document: ...
Walucas's user avatar
  • 2,578
0 votes
0 answers
106 views

I am developing an application with Python which consumes resources from Google Cloud. I would like to automate the authentication process (right now what I have is the authentication via an API Key ...
Marta Fernandez's user avatar
1 vote
1 answer
4k views

import pathlib import json import textwrap import google.generativeai as genai from IPython.display import display from IPython.display import Markdown def to_markdown(text): text = text.replace('•...
user17063944's user avatar
1 vote
1 answer
134 views

from google.oauth2.service_account import Credentials from googleapiclient.discovery import build import random import msvcrt import json credentials_doc = 'service_account.json' ...
isil's user avatar
  • 31
1 vote
1 answer
67 views

I am attempting to utilize python to retrieve all the user-managed service account keys in my organization, with the below snippet from this documentation. from google.cloud import asset_v1 import ...
Cole Gulledge's user avatar
0 votes
1 answer
127 views

We are experiencing timeout issue when connecting to Google Sheets, specifically using googleapiclient. The code has been working, but after some new deployment, we start getting this error. Even we ...
Dyson's user avatar
  • 165
0 votes
1 answer
2k views

I'm trying to connect to the Gemini web chat using Selenium in Python to replicate the functionality described in this Medium article. I've attempted to use the following code: from selenium import ...
Sharanya's user avatar
1 vote
1 answer
216 views

I am using Colab in Python to get the folder ID and folder name inside a particular folder called myProject from Google Drive. Folder structure is like this: Google Drive (When I open drive.google.com ...
Sanjana Nair's user avatar
  • 2,795
0 votes
2 answers
192 views

I developed a Python script that operates on the Google Cloud Platform. The script utilizes the Google Drive API and Google Sheet API to access a folder in Google Drive belong to a company , extract ...
MKROSTM's user avatar
  • 13
1 vote
1 answer
246 views

I am trying to use the API Key and it does take the picture on the Raspi but then gets stuck trying to send it to the Drive and I am unsure why. Note: I took out the key and ID for privacy but I do ...
nkk's user avatar
  • 11
0 votes
1 answer
328 views

Is there a way to deploy scripts from a repository as GitHub to Cloud Functions with python without using docker or subprocess commands? I tried this sample code that uses the CreateFunctionRequest ...
Luiz's user avatar
  • 441
0 votes
1 answer
106 views

i am using service account auth2client.service_account and googleapiclient to connect to google calendars and create events, my issue is my events are creating and also confirmed using list events, ...
Nabeel Ayub's user avatar
0 votes
0 answers
119 views

UPDATE Thank you Tuppitappi (https://stackoverflow.com/users/10129894/tuppitappi) Your answer on this question: Gmail api python encode/decode error and using urlsafe_b64decode was EXACTLY what I ...
user avatar
2 votes
2 answers
8k views

I have a very simply program that I copied from Google's workspaces, the import statements are as follows import os.path from google.auth.transport.requests import Request from google.oauth2....
user avatar
1 vote
1 answer
715 views

I am triggering a cloud run job in GCP through airflow DAG. The job takes 30 minutes to execute, but the request timeout is 900 seconds so the DAG task fails. The error is: "Operation did not ...
Aym's user avatar
  • 145
2 votes
1 answer
2k views

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. ...
Doleensk's user avatar
2 votes
2 answers
745 views

We are trying to get all videos in a channel, like this. This list has 291k videos, we figured out the channel id of this channel (and replaced the second alphabet "C" in the id by "U&...
NedStarkOfWinterfell's user avatar
15 votes
2 answers
37k views

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 ...
nils's user avatar
  • 175
0 votes
1 answer
30 views

I'm working on fetching heart rate data from Google Fitness API using python and I would like to know what is the difference between hear rate SCOPE "https://www.googleapis.com/auth/fitness....
user13508885's user avatar

1
2 3 4 5
34