How to use Youtube Analytics API to get the content that can be displayed in Youtube Studio - youtube-api

I would like to get the number of impressions by traffic source, for example, which can be displayed on the youtube studio analytics screen, using the Youtube Analytics API.
Looking at the official reference, it doesn't seem to be possible to get it, but does anyone know how to get it?

Related

How to get YouTube watch history through YouTube Data API?

I know that it's deprecated for almost 4 years now. I'm interested if there are some updates on it? maybe there are now some roundabouts to get watch history data? Maybe it's somehow possible to get it through my google activities? (I know there is a way to download it to your drive through google takeouts, but that does not solve my problem, because the only thing I can get is access token from google through OAuth 2.0, which I can later use to obtain data through youtube data API. I.e I can't log in to google account)

Is there a reason my youtube app gives me access to one youtube channel but not another?

I created a youtube app in console.developers.google.com that has the youtube data, youtube analytics and youtube reporting apis enabled. I also have access to multiple youtube channels that I'm hoping to automate some reports. several youtube channels I can login to with my app with no problem, but one in particular returns a message saying "Google has disabled this app" and I don't know why. It works will all channels but one, is there some permission that needs to be set in this particular one?

How do I mark a video as watched with Youtube API v3?

I have a C# program I wrote using the Youtube API V3 that manages my channel's videos.
I already have all the OAuth 2.0 stuff sorted out and I'm looking for a way to tell Youtube that the authenticated account watched the video.
The reason being that I use the "watched" feature to determine which of the videos in my feed is the last one I actually watched.
Is there a way to do that?
Or is it purposefully not in the API because it messes with the view count?
Of course I checked Google and Google's API reference first, didn't find anything.

How to use the Youtube Analytics API to get the metric "earnings"?

I am a Youtube Partner and I have monetized videos on Youtube. Already receive a small monthly amount through some channels that have associated with my Google Adsense account.
Now, I would like to generate a report gathering the monetary values and views received from each channel.
I did the following question on Google Code, because I thought there was some problem in the API, but it happened that I was using the API incorrectly. See the link below.
http://code.google.com/p/gdata-issues/issues/detail?id=4826#makechanges
Now, I still could not make it work because I do not know where to find the requested data in the response I got from the link above.
Where do I find this CMS_ID? I have more than one channel, so I need to have each accepted as a Youtube Content Manager to use the API and retrieve the gains?
Someone here on Stack Overflow already managed to use the Youtube Analytics API using the metric "earnings"?
My code is in Python based on the example from Google here:
https://developers.google.com/youtube/analytics/v1/code_samples/python
I'm using the following scopes:
YOUTUBE_SCOPES = ["https://www.googleapis.com/auth/youtube.readonly",
"https://www.googleapis.com/auth/yt-analytics.readonly",
"https://www.googleapis.com/auth/youtubepartner",
"https://www.googleapis.com/auth/yt-analytics-monetary.readonly"]
As of right now, it's only possible to retrieve monetary information in YouTube Analytics API reports when those reports are run via the context of a content owner, as described in the documentation.
It is possible to have a monetized channel that is opted in for Google AdSense ads without having that channel managed by a content owner, in which case you would not be able to get those metrics via the YouTube Analytics API.
Let's use the issue you previously opened to track the request to open up this type of report to non-content owners as well, as that's a more appropriate place for feature requests than Stack Overflow.

Get views referrers in Youtube API V3 or in Youtube Analytics

Does anyone know if it's possible to get referrers / sources of the views in the new experimental Youtube API v3? We checked these plus the experimental Youtube Analytics API, but this doesn't seem to be possible.
We'd like to get the Referrers report as we can find here in the V2: https://developers.google.com/youtube/2.0/developers_guide_protocol_insight
Thanks,
Stéphane
The YouTube Analytic V3 api does not include a way to get referrers or sources. The available metrics can be viewed on this page. https://developers.google.com/youtube/analytics/v1/dimsmets/mets
If you would more metrics to be added please file a feature request here. https://code.google.com/p/gdata-issues/issues/entry?template=YouTube%20(Enhancement%20Request)

Resources