Is there any way to set "paid product" flag to true on video via Youtube API?
Related
We are currently testing an app that utilizes the YouTube API to list a Google Account's YouTube Channels and get the channel information.
We have tested this with a Non-Monetized YouTube account, and we were able to allow the app to get information from YouTube's API. However, when we tested with a Monetized YouTube Account, we are getting a "This App is Blocked" error, and unable to allow the app to get details.
While making a request to create a new broadcast, I get this error.
{
"error": {
"errors": [
{
"domain": "youtube.liveBroadcast",
"reason": "liveStreamingNotEnabled",
"message": "The user is not enabled for live streaming.",
"extendedHelp": "https://www.youtube.com/features"
}
],
"code": 403,
"message": "The user is not enabled for live streaming."
}
}
But the user is enabled! They make streams on regular basis, and I don't know how to solve this. All users of my app are doing OK with this, but two specific users get this error.
Any ideas?
The YouTube Live Streaming API lets you create, update, and manage live events on YouTube. Using the API, you can schedule events (broadcasts) and associate them with video streams, which represent the actual broadcast content.
The main intent of the YouTube Live Streaming API is to allow you to create, update and manage your events programmatic via the API. There for it would make sense for Google to insist that the authenticating account would have live streaming enabled.
I suggest you check that it is enabled for us with the API. Remember that the YouTube Api authentication is channel based so you may need to check what channel you have authenticated with. If the user has more the one maybe you are looking at one that does not have live streaming enabled. How to enable Live streaming
While I do agree it seams strange if all you are going to do is list things that you would need to have live streaming enabled this appears to be the way the API works.
I have logged this as an issue / feature request. Live Streaming API: live streaming not enabled
The "googlePlusUserId" of the YouTube channel object has been deprecated in the last review of the Youtube Data API (June 13, 2016). From the YouTube Data API revision history:
The channel resource's contentDetails.googlePlusUserId property has been deprecated. Previously, the property was only present if the channel was associated with a Google+ profile. Following the deprecation, the property will no longer be included in any channel resources.
I was using this property to relate a YouTube channel with its Google account. By this way I was able to verify in my page that a user signed in with Google is the owner of a YouTube channel. So how to do it now without this property?
Use case
My use case is a web application which invites some YouTube Channels (users) to the website. Ideally this invitation must be with a direct email to the email of the user or a direct message to the YouTube Channel through the YouTube Data API. However, both options are not viable because it is impossible to retrieve the email and actually there is not a functionality to send direct messages to a YouTube Channel through the API. So to invite a YouTube channel we have to manually go to the YouTube Channel about page and send a message to the user with the link to join our page. This link is an URL with a token identifying this invite but we need to be sure that the user coming from this link is the owner of the YouTube channel which has been invited, so the only way is logging in with his YouTube channel account which is the Google account.
I hope I have explained it well, if you have any doubt ask me.
Thank you!
I found a solution. You can make another call to people/me Google+ API endpoint to get the id of currently logged Google user.
Here you can find more information about OAuth scope you have to to grant to the token for access to user's data.
Want to upload videos to my channel on youtube directly from android and iOS using youtube API v3.
I know "client login" of Youtube API v2 is now deprecated and cannot use any more now, but is there any method in V3 API that we can use now to achieve the video upload to my channel on youtube without user interaction or without user prompt to ask username or password?
Letting other people upload random videos to your channel is not recommended. That's why OAuth2 only lets them to upload to their own channel. You can use YouTube Direct Lite for people to upload to their channel, but you can still collect those videos into your playlist.
https://code.google.com/p/youtube-direct-lite/
https://github.com/youtube/yt-direct-lite-iOS
https://github.com/youtube/yt-direct-lite-android
The user isn't able to create a playlist unless they have a YouTube channel created on their Google account. Is there a way I can create the channel for them programmatically using JavaScript?
Unfortunately you can not create a new Channel (https://developers.google.com/youtube/v3/docs/channels) in the v3 api.
One possible work around is that you redirect your end user to https://www.youtube.com/create_channel .