2017-10-05 1 views
0

Ich habe Admob erfolgreich in meiner App integriert. Ich habe meinen Admob-Schlüssel. aber es funktioniert nicht. Es werden keine Anzeigen in der App angezeigt.Android Admob Integration Zeigt keine Anzeige

Dies ist mein XML. das ist, was ich bisher

<?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> 

mein Java-Code

NativeExpressAdView adView = (NativeExpressAdView) findViewById(R.id.adView); 

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

Haben Sie einen Fehlercode in logcat erhalten? –

Antwort

2

Native Anzeigen braucht Zeit, um zu zeigen, getan haben. Also bitte warten Sie 2-3 Stunden. Sie werden automatisch angezeigt. Sie könnten Ihren Account erst vor einer Minute erstellt haben.

Verwandte Themen