google-api

Not sure of the Print Structure with YouTube v3 API

Not sure of the Print Structure with YouTube v3 API Question: So I was creating a script to list information from Google’s V3 YouTube API and I used the structure that was shown on their Site describing it, so I’m pretty sure I’m misunderstanding something. I tried using the structure that was shown to print …

Total answers: 1

How to return all events on a specific date in Google Calendar API

How to return all events on a specific date in Google Calendar API Question: i am using Python and Google Calendar API to build a calendar. I would like to get all the events that exist on a given date. The date will be given as a string ‘yyyy-mm-dd’. I have created a function that …

Total answers: 1

Get chart from Google Spreadsheet and update chart placeholder in Slides with Python

Get chart from Google Spreadsheet and update chart placeholder in Slides with Python Question: I’m using Google API to automatize a monthly report. I’m coping a spreadsheet and slide templates, updating the spreadsheet data and I want to add the charts to slides. My spreadsheet have one chart per sheet and each slide will only …

Total answers: 1

In python, is there any way I can store a 'Resource' object so I can use it later?

In python, is there any way I can store a 'Resource' object so I can use it later? Question: I am writing a program about the YouTube API flow = google_auth_oauthlib.flow.InstalledAppFlow.from_client_secrets_file(client_secrets_file, scopes) credentials = flow.run_console() youtube_analytics = googleapiclient.discovery.build("youtubeAnalytics", "v2", credentials=credentials) Finally it will return a ‘Resource’ object, can I store this object? So that I …

Total answers: 2

Use google cloud translation api using api key

Use google cloud translation api using api key Question: I made myself a free account so I can experiment a little bit with Google Cloud Translation API. I generated myself a key from Service account, stored it into a json file, loaded it and everything seems to be working fine. Snippet from my code: import …

Total answers: 1

Parsing google api object into pandas dataframe

Parsing google api object into pandas dataframe Question: I am trying to parse API response from GA to a Pandas DataFrame. The request (sample from Google page): def initialize_analyticsreporting(): “””Initializes an Analytics Reporting API V4 service object. Returns: An authorized Analytics Reporting API V4 service object. “”” credentials = ServiceAccountCredentials.from_json_keyfile_name( KEY_FILE_LOCATION, SCOPES) # Build the …

Total answers: 2

Reading Sheet2 via Google Sheets API & Python

Reading Sheet2 via Google Sheets API & Python Question: I just wanna read the next tab/sheet via the API in my Google Sheets Project with Python (Windows 10) Everything works for sheet1, I just want to read/edit sheet2 (and others that I will create in the project). Tab example: https://i.imgur.com/260rI7K.jpg import gspread from oauth2client.service_account import …

Total answers: 2

ValueError: Client secrets must be for a web or installed app

ValueError: Client secrets must be for a web or installed app Question: I am running the quickstart.py example code under Python Quickstart and I am getting the following error: ValueError: Client secrets must be for a web or installed app. I created a credentials.json file with project owner rights. The error occurs in the following …

Total answers: 2

Requested 10 dimensions; only 9 are allowed on Google Analytics Core Reporting API4

Requested 10 dimensions; only 9 are allowed on Google Analytics Core Reporting API4 Question: I have been trying to call Google Analytics core reporting v4 to get basic traffic data, but I could never get default channel grouping/channel grouping from the API. However, the dimension is available according to their metric and dimension explorer. from …

Total answers: 1