Admob本机广告未在Android中显示

Admob本机广告未在Android中显示,android,admob,Android,Admob,我正在尝试在我的android应用程序中加载Admob本机广告。但他们没有表现出来。我无法理解这个问题。请通读下面的代码 注意:我正在使用广告大小为“280x132”的Admob本机广告。 XML文件 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schema

我正在尝试在我的android应用程序中加载Admob本机广告。但他们没有表现出来。我无法理解这个问题。请通读下面的代码

注意:我正在使用广告大小为“280x132”的Admob本机广告。

XML文件

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:ads="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context="com.radioaudio.motivationalaudios.MyYouTubePlayer">

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

    <TextView
        android:id="@+id/videoTitle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:padding="10dp"
        android:text="Arise, Awake and stop not till the truth is known - Radio Story | IIT Kanpur Radio"
        android:textColor="#000"
        android:textSize="20dp" />

    <com.google.android.gms.ads.NativeExpressAdView
        android:id="@+id/adView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        ads:adUnitId="ca-app-pub-5059726881726792/7013814664"
        ads:adSize="280x132">
    </com.google.android.gms.ads.NativeExpressAdView>

</LinearLayout>

在这里添加更多日志,以便我们能够理解。尝试关闭并在一段时间后再次打开你的应用程序。如果解决不了,日志可能会帮助我们

此外,对于您的信息,当我们的版面中有YouTube播放器视图时,我们无法显示广告。这就是你所拥有的。这是我在play store上发布应用程序时遇到的问题之一

这是一种双向货币化: 1.播放器内的视频将显示广告 2.同时显示横幅/本地广告

这是谷歌方面不允许的

可能是,这也可能是一个问题,广告不显示。
好运

本地广告需要时间来展示。所以请等待2-3个小时。它们将自动弹出。

您永远不能在同一页面上与youtube或属于谷歌的任何服务一起显示广告。

请共享您的日志。过滤AdsHi,你找到解决方案了吗?
protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.my_youtube_player);
        //Admob Ad
        NativeExpressAdView adView = (NativeExpressAdView) findViewById(R.id.adView);

        AdRequest request = new AdRequest.Builder()
                .addTestDevice("A5E3E2068BD88202CBC281AD76984BEE")
                .build();
        adView.loadAd(request);
    }