nach 2 Wochen meiner App in Google Store habe ich festgestellt, dass Banner nicht in realen Geräten angezeigt wird. Als ich es mit Android Studio Virtual Device getestet habe, war es in Ordnung.Admob Banner nicht in realen Geräten
Dies ist die auf Banner bezogenen Code in meinem MainActivity:
AdView mAdView = (AdView) findViewById(R.id.adView);
AdRequest request = new AdRequest.Builder().build();
mAdView.loadAd(request);
und Layout:
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/gray_background">
<com.flaviofaria.kenburnsview.KenBurnsView
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<LinearLayout
android:layout_marginTop="?attr/actionBarSize"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:context="misc.songbox.Search"
android:orientation="vertical">
<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
ads:adSize="SMART_BANNER"
ads:adUnitId="@string/bannerAd">
</com.google.android.gms.ads.AdView>
<ListView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/listView"
android:dividerHeight="0dp"
/>
</LinearLayout>
</RelativeLayout>
'AdView' sollte auf der obersten Ebene sein – Aryan
Was meinst du? –