Assigned
Status Update
Comments
hu...@gmail.com <hu...@gmail.com> #3
Hi,
Thank you for quick response. Yes, I actually copied curl code above from the API explorer.
I also tried with Python code below:
request = youtube.search().list(
part="snippet",
maxResults=50,
order="viewCount",
publishedAfter="2024-09-01T00:00:00Z",
q="artificial intelligence",
videoPaidProductPlacement="true",
)
response = request.execute()
return response
This also gave me invalid parameter error:
TypeError: Got an unexpected keyword argument videoPaidProductPlacement
js...@gmail.com <js...@gmail.com> #4
Hello,
I wanted to check if there are any updates regarding this issue, as it is critical for my application. Could you share whether it's planned to be resolved and if there is an estimated timeline for a fix?
I would greatly appreciate any insights you can provide.
Thank you for your time and support.
Description
I am trying to automate requests to the YouTube Analytics API to avoid having to manually log in every time I execute my script. My goal is to use a service account instead of the interactive OAuth 2.0 flow with InstalledAppFlow.
Current Situation:
I have already set up and generated a service account in Google Cloud.
The service account has the corresponding JSON key file.
When I try to use the service account to access the YouTube Analytics API, I encounter a permissions error.
Error Result:
The service account does not have sufficient permissions to access YouTube Analytics data. It seems additional permissions must be granted by a Google admin account within a Google Workspace (G Suite) domain.
Specific Problem:
Required Permissions: I cannot assign the necessary permissions to the service account because I do not have a Google admin account (Google Workspace / G Suite).
Limitation: It appears that accessing YouTube Analytics API with service accounts requires permissions explicitly granted by a Google Workspace administrator.
Questions for Support:
Is it possible to use service accounts with the YouTube Analytics API without relying on a Google Workspace admin account? If not, is there any alternative service for automation?
Is there a procedure or workaround to access YouTube Analytics reports without manually logging in each time?
Is it mandatory to have Google Workspace (G Suite) to assign permissions to service accounts for the YouTube Analytics API?