First of all I donât believe there is a âhostâ parameter to the YT.Player. If so, it is not listed in their documentation. So I am inclined to say that you canât run videos from other URLs other than YouTube.
Secondly, there is a rule under âAdditional Prohibitionsâ (section I) of the YouTube API services part on General Developer Polices" that states and I quoteâŠ
modify, interfere with, replace, or block advertisements placed or served by YouTube or by YouTube API Services including in API Data, YouTube audiovisual content, or YouTube players;
So the answer is probably no and if you can, you are probably in violation of the terms of use and bad things may happen to you.
Thank you for pointing that out. I am aware of it. But, I donât know if you ever tried, the iframe code I shared at the top of my post is unmodified valid code (i.e. nothing is done extra to intentionally block ads) and it does not display ads. Just wondering if it is possible to do the same with the Iframe API, without doing extra things that are not within the API capability.
What weâre trying to tell you is youâre asking to break the rules. You may think itâs a special case, but itâs not. Youâre breaking the rules.
We will not help you break the rules.
If YouTube decide to serve ads in one case, but not another, thatâs their choice, which they are allowed to do.