Ads not showing on Youtube data API v3

Joined
Nov 24, 2021
Messages
3
Reaction score
0
I have used a youtube player view (com.google.android.youtube.player.YouTubePlayerView) in my android app. Before May 2021, It shows ads without any problem, but suddenly it stops showing ads in my player view, only the yellow line of ads on the scroll bar shows that the video contains ads but it doesn't show ads anymore on a video.

Users are always complaining about ads not showing. Please help me with this..

XML layout

Code:
<LinearLayout
    android:id="@+id/linear_Layout_youtube"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="center_vertical"
    android:layout_weight="6">

<com.google.android.youtube.player.YouTubePlayerView
    android:id="@+id/youtube_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#000" />
</LinearLayout>

--------------------------------------------------
This was asked during my android developer interview.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top