Getting YouTube Content ID API - youtube-api

YouTube Content ID API is not showing up on my api console, I already made sure my channel was partnered, I also linked it the CMS account, everything is setup correctly but, when I go to the API console it does not show it. The channel I'm uploading the videos to is a brand account of the main email, is that the problem? if so how can I fix it. Thanks.

To get access to YouTube Content ID API you first need to apply here.
https://www.youtube.com/content_id_signup?internalcountrycode=GB
You must be a partner to apply.

Related

Access YouTube Content API

I have been able to successfully upload videos to my own YouTube channel through the YouTube Data API.
I have just been made a manager of multiple channels and am now hoping to upload videos to the different channels using the ‘onBehalfOfContentOwner’ parameter
I am trying to get the Content Owner ID from the Content ID API but am getting the error:
“YouTube Content ID API has not been used in project <PROJECT_ID> before or it is disabled”.
When I try to enable the Content API through the developer console it doesn’t appear as an option in the API library
Would anyone know how I can enable the Content ID API?

YouTube API upload video to different YouTube accounts

I am trying to find a way to publish videos to different youtube accounts. My client needs the customers to connect and authorize their youtube account and push videos to their channels.
I have currently done pushing videos to the account which i created the client id and secret as mentioned here in the docs but cannot push to other accounts.
my client is expecting a similar implementation as shown in the youtube video below.
https://www.youtube.com/watch?v=LKNnPl0Zjiw
any help woud be much appreciated
thanks in advance
Without knowing too much about it, I would assume you need to create a new connection to the YoutTubeAPI each time you want to publish something to a new channel, similar in a way you need to change accounts as shown in the video.
Basically, you could create a UI in which you can select different accounts. Whenever you change an account, you create a new connection to the API and login into the other account. This would be they way in which I would try and tackle the problem.

Youtube Content ID API has not been used - error 403

I'm trying to get my content-owner-id for upload videos to other channels that I have, as described here.
I'm using the code below to get content-owner-id: (PHP)
$youtubePartner = new Google_Service_YouTubePartner($this->client);
$contentOwnersListResponse = $youtubePartner->contentOwners->listContentOwners(
array('fetchMine' => true));
$contentOwnerId = $contentOwnersListResponse['items'][0]['id'];
And this is the error I got:
A service error occurred: Error calling GET
googleapis.com/youtube/partner/v1/contentOwners?fetchMine=true:
(403) Access Not Configured. Youtube Content ID API has not been used
in project XXXXXXXXXXXXX before or it is disabled. Enable it by
visiting
console.developers.google.com/apis/api/youtubePartner/overview?project=XXXXXXXXXX
then retry. If you enabled this API recently, wait a few minutes for
the action to propagate to our systems and retry.
I tried to go the the link https://console.developers.google.com/apis/api/youtubePartner/overview?project=XXXXXXXXXX but I get "The API doesn't exist or you don't have permission to access it".
Then I searched on google and find out that I need to become a CMS youtube account (I'm also a youtube partner). I also tried to go to cms.youtube.com and log in with my youtube account but I got:
Your Google Account is not linked with YouTube Content Manager. Please
try a different account or contact your Technical Account Manager for
assistance.
Can anyone explain me how to connect to CMS account?
Based from this thread:
You don't see it in the list auf available APIs, unless your account is connected to a CMS and some time has past... It takes 7-14 days unless the Content ID API is available for your account. This is a information i got from the support, but they told me, that it is an automated step.
Your account needs to be connected with a content owner. Be noted that a content owner and a partnered channel are not the same thing.
From this documentation, to request data from a YouTube Content Owner, you need to set the ids parameter value to contentOwner==OWNER_NAME, where OWNER_NAME is the content owner ID.
Check these related SO questions:
How do I get revenue reports from a YouTube CMS account using an API (for an MCN)?
Using the YouTube Analytics API with a CMS account

YouTube video insert fails with 401 Unauthorized youtubeSignupRequired

I'm uploading videos to many customers using Google API v3 with PHP client lib, it works for most of them so I guess the issue is not in my code.
For the customers that fail, it always fails, so I believe the problem is with their authentication, however, for these customers I do get categories list with no problem, it's just the video upload that failed.
That made me think it's because of the scopes I used during the authentication, but I used the same scopes for all my customers, those that work and those that don't.
Any idea?
Thanks,
Tan-Tan
A couple of years ago, YouTube accounts changed and became integrated with Google+. After that point, all new accounts were actually Google+ accounts with a linked YouTube channel; however, YouTube accounts that were created before that changeover needed to manually log in and link their YouTube account to their Google+ account. When you try to use the YouTube API to upload a video, if they have one of these legacy accounts that they haven't manually linked, you'll get the error message that you're experiencing.
There's no API call to do the linking for them; so if your app gets that message, you'll have to redirect them to http://m.youtube.com/create_channel and have them link their accounts.

Need help obtaining Content Owner Id

I'm struggling with retrieving the Content Owner-based YouTube Analytics Data. From this discussion (Obtaining the current user's YouTube content owner id), I learned that I need to query youtubePartner.contentOwners.list(fetchMine=true) to obtain the content owner info, of which the Id will be found.
My struggle is that when I call youtubePartner.contentOwners.list(fetchMine=true), I receive the reason "accessNotConfigured". I'm not sure why: I have YouTube Analytics enabled in the APIs Console for my app, and I have the https://www.googleapis.com/auth/youtubepartner scope configured in OAuth2 list of scopes during authentication.
Can anyone help me understand what I'm doing wrong?
You may have not enabled Partner API in your devconsole or your account may not be linked to a CMS account.

Resources