我已經加入從火力本土快遞AD瀏覽到我的應用程序 它加載很好,當我使用他們提供的測試ID,但是當我與我的發佈者ID和單元編號取代它,它停止顯示它本土快遞AdView中不顯示
logcat的
Starting ad request.
Use AdRequest.Builder.addTestDevice("3C5C50F4B6108021A73AB0588B9E62C0") to get test ads on this device.
There was a problem getting an ad response. ErrorCode: 0
Failed to load ad: 0
Ad is not visible. Not refreshing ad.
Scheduling ad refresh 60000 milliseconds from now.
代碼 XML
<com.google.android.gms.ads.NativeExpressAdView
android:id="@+id/adView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
android:layout_gravity="center_horizontal|center"
ads:adSize="FULL_WIDTHx80"
ads:adUnitId="@string/ad_unit_id">
</com.google.android.gms.ads.NativeExpressAdView>
JAVA
MobileAds.initialize(getApplicationContext(), APIClass.PUBLISHER_ID);
NativeExpressAdView adView = (NativeExpressAdView) findViewById(R.id.adView1);
adView.loadAd(new AdRequest.Builder().build());
會在我添加發布應用程序玩商店
我從320x150改變adSize設置爲300x250.Thanks隊友解決我的問題。 –
也解決了我的問題,將350x200更改爲300x250。 – X09
在NativeAds上已詢問此問題。爲什麼答案談論智能橫幅? – Vikas