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?