Pre-roll ads / sponsored links not showing up with YouTube API - youtube-api

The dev team at my company has implemented a YouTube API Client using the IFrame API (HTML5/JS YouTube player) and the YouTube Data API.
I would like to check our compliance with YouTube's API ToS, and something bugs me: no sponsored videos show up in search results and we get no pre-roll nor interstitial ads when playing back any of the videos fetched through the API.
Is this normal behaviour ? Have other developers noticed this ?
I worry that something may be "wrong" in our implementation that would unbeknownst to us obscure YouTube's monetisation means and put us at odds with the ToS. (our implementation is somewhat atypical - see below)
I noticed that YouTube's official developer demos on the API website don't show any ads either - e.g. here :
https://www.youtube.com/yt/dev/demos.html#/topic
Any hints ?
/Guilhem
Notes on our implementation:
In terms of functionality, it pretty much does what the above "topic" demo does.
In terms of design : we have implemented a fairly basic YouTube API client web page that embeds the HTML5 player from YouTube, running on our own fork of QtWebkit browser engine on embedded Linux. The underlying hardware is low-perf TV set-top boxes that cannot meet YouTube's requirements for their YTTV HTML5 app (formerly known as Leanback). The webpage is dynamically generated on our server by fetching YouTube's most popular categories through the YouTube Data API. Search is also implemented through the Youtube Data API. API query results are cached on our server tto optimise quota usage.

Related

How can I play video from YouTube channel in Decentraland?

There is sample code to play video in Decentraland. This link
However, I want to play video from a playlist in YouTube channel. Is there any sample code you can reefer me?
Unfortunately you cannot directly access any Youtube videos due to a CORS policy set on their side. This is not an issue with Decentraland itself, but rather with Youtube and other content providers that have a similar CORS policy.
Youtube and Twitch (for example) have their own javascript players that not only display ads but also gather information about the viewer. Seeing as this is the basis of their income, they do not want people bypassing this and just viewing the video for "free".
You may notice that youtube videos work in CryptoVoxel for some reason. This is due to some trickery that the game is doing, where it is loading in the html/js and placing the video on-top of the game itself. (At least that is what I've heard)
In the meantime I strongly suggest you look into hosting your videos on another platform like Vimeo. You can directly access the video files if you pay for their service. Alternatively, you can host your videos on an Antmedia server through a cloud hosting service like Digital Ocean. Both of these are great options.

YouTube - Third Party Ads API for Creating Ads?

Does YouTube offer an API for third party platforms for ad creation and execution? I know YouTube has an ads reporting API available through Google Ad Words but I'm trying to find if we can build an ad serving API. I searched here and found someone said no but I can find little info on why or where they got this info.
The use case is for clients to create and launch YouTube ads from a third party platform via an API connection.
As far as Google Ads is concerned, you cannot build or mutate any video campaigns over an API. This has been an ongoing feature request for about as long as video campaigns first were introduced, but is still not available. See the latest answer on one of many corresponding threads in the Ads API forum.
Of course, you can also buy YouTube inventory over DV360. The current APIs (namely the obsolete BidManager API and the newer DV360 API) currently do not support the creation of TrueView line items, but there is write functionality in closed beta that should eventuelly support this use case. I'm not aware of any timeline for general availability, though.

Is it legal to use Youtube Data API to create youtube-like app that aggregrate youtube videos from any channel?

i'm planning to create some app that use youtube-api.
Is it legal to use Youtube Data API to create youtube-like app that aggregrate youtube videos from any channel? even it is not my channel or my video? Can I (legally) monetize those app with Admob?
Your question is answered in the first paragraph of the YouTube API Terms of Service.
1. Is it legal to use Youtube Data API to create youtube-like app that aggregrate youtube videos from any channel?
The terms don't prohibit it, as long as the client is compliant with the ToS. So, yes, it is legal.
2. Can I (legally) monetize those app with Admob?
It depends.
You agree not to use the YouTube API for any of the following commercial uses unless You obtain YouTube's prior written approval: [...] the sale of advertising, sponsorships, or promotions on any page of the API Client containing YouTube audiovisual content, unless other content not obtained from YouTube appears on the same page and is of sufficient value to be the basis for such sales.
I'm not an expert in law questions, but what this says (imho) is that you may advertise your application if it does not solely contain YouTube content. In other words, your application has to extend the functionality of https://youtube.com, not recreate it.
In any case, you may not block or in any way alter in-player ads.
Conclusion
Based on the short concept of your app you posted in the question, I would say:
You may build "youtube-like app that aggregrate youtube videos from any channel", but
you may not advertise it, since it does not feature original content.
if you plan to publish this on app store please review the IOS Guide Lines
5.2.3 Audio/Video Downloading: Apps should not facilitate illegal file sharing or include the ability to save, convert, or download media
from third-party sources (e.g. Apple Music, YouTube, SoundCloud,
Vimeo, etc.) without explicit authorization from those sources.
Streaming of audio/video content may also violate Terms of Use, so be
sure to check before your app accesses those services. Documentation
must be provided upon request.
And this SO question

Is there limit to access youtube's get_video_info from single IP

i am developing a online youtube video downloader in php . but i am afraid of blocking my Server Ip by youtube.
is there such restrictions by youtube ?
and if yes thenn how much requests i can do to youtube in single day ?
This information is available here:
https://developers.google.com/youtube/v3/getting-started#quota
If you are downloading/re-distributing YouTube audio-visual content you are directly in violation of YouTube's Terms of Service. No matter the number of requests, take a look at these points mentioned in the YouTube Terms of Service:
access any portion of any YouTube audiovisual content by any means other than use of a YouTube player or other video player expressly
authorized by YouTube;
store copies of YouTube audiovisual content;
In any case, downloading YouTube videos or developing a tool to do so are definitely counted as Copyright infringement. To make it more clear, read this under Section III of the link provided above:
Compliance with Laws. You are responsible for complying with all applicable laws, rules and regulations, all third-party rights and
all YouTube policies. You shall not use the YouTube API in a manner
that violates such laws, rules and regulations, third parties' rights
or any YouTube policies or in a manner that is deceptive, unethical,
false or misleading. For avoidance of doubt, You shall not distribute
or provide access to applications You develop in contravention of U.S.
export control or trade laws.
Hence, developing such a tool will hold you in violation of the YouTube ToS and (action including but not limited to) definitely get your IP blocked.
However, if you plan on making a different tool that provides legal usage of the API, here is a Quota cost calculator that can be used to determine what kind of requests can be made and how much they'll cost. And the link provided by Mike shows the daily allowance of the YouTube API.

youtube metadata on windows phone

I am planning to develop an app for the windows phone.
In this app actually, I need some metadata from youtube for each user, especially the videos they like and their playlists on youtube.
But, as I started to google for it, I came across this news that youtube apis are not fully supported on windows phone.
http://www.infoworld.com/t/windows-phone/in-blocking-windows-phone-access-youtube-google-delivers-rough-justice-210116
So, I wanted to know whether this feature can be implemented in windows phone app or not?
GData APIs work just fine on WP7/WP8 AFAIK. IANAL but it works fine and I haven't seen any official disclaimer saying it won't/shouldn't work. I believe this article has more to do about streaming video APIs then GData APIs.
You can see a sample of those APIs and how to use them in the official docs and in this previous answer of mine # Possible to play Youtube video in a wp7 app?
You can get the user metadata using YouTube Data API v3.
https://developers.google.com/youtube/v3/docs/playlists
from the documentation:
YouTube also uses playlists to identify special collections of videos
for a channel, such as:
uploaded videos
favorite videos
positively rated (liked) videos
watch history
watch later
The API can be consumed from any client, if you use any JSON library and OAUTH2 authentication.
This project shows how to do it;
https://yt-topic-explorer.googlecode.com/git/dist/index.html

Resources