Aditya Borde
Aditya Borde

Reputation: 1257

Does YouTubePlayerView shows ads

I want to integrate YouTube videos in my app along with the Ads which are shown while watching the videos on YouTube app.

So I would like to know whether using YouTubePlayerView will solve my problem or do I have to use YouTubeIntents to redirect user to YouTube app in order to preserve the Ads which YouTube adds to the videos

Upvotes: 1

Views: 154

Answers (1)

abielita
abielita

Reputation: 13494

You may refer with this thread. It stated that YouTubePlayerView shows Ad word in the screen. Also, to enable ads, call the videoAdvertisingOptions.update method. In your request, set the videoId parameter to the broadcast id that you obtained. Use the videoAdvertisingOption resource's adFormats[] property to identify the ad formats (preroll, midroll, or postroll) that you want to enable.

Upvotes: 1

Related Questions