0
Starting ad request. 09-16 09:31:56.827 9836-9836/com.netvariant.panic I/Ads: Use AdRequest.Builder.addTestDevice("F92724BDB6A4403A8C027B851F7DA3AF") to get test ads on this device. 09-16 09:31:58.385 9836-9849/com.netvariant.panic I/Ads: No fill from ad server. 09-16 09:31:58.392 9836-9836/com.netvariant.panic W/Ads: Failed to load ad: 3
오전 내 XML에서이 오류가 점점 :광고
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:ads="http://schemas.android.com/apk/res-auto" android:id="@+id/tesd" android:layout_width="match_parent" android:layout_height="match_parent"> <com.google.android.gms.ads.doubleclick.PublisherAdView android:id="@+id/ad_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" ads:adSize="BANNER" ads:adUnitId="ca-app-pub-4532549351948034/7622739505" /> </RelativeLayout>
그리고 내 자바 코드는 다음과 같습니다
,536,913,632을 10mAdView = (PublisherAdView) rootView.findViewById(R.id.ad_view); // Create an ad request. Check logcat output for the hashed device ID to // get test ads on a physical device. e.g. // "Use AdRequest.Builder.addTestDevice("ABCDEF") to get test ads on this device." PublisherAdRequest adRequest = new PublisherAdRequest.Builder().build(); // Start loading the ad in the background. mAdView.loadAd(adRequest);
그리고 어떻게로드 할 수 있습니다. 문제가 무엇입니까? 고맙습니다. 나는 firebase를 만들었고, 내 Mac 스튜디오 (내 스토어에 업로드하는 데 사용하는 키 저장소가 아닌)를 사용하여 계정을 감탄했습니다. 안드로이드 스튜디오에서 장치로 실행되는 .am은 작동하지 않습니다. 내 앱에도 google-services.json이 있습니다. . 는 로그 캣 콘솔에서 말했듯이
내가이 지침[https://firebase.google.com/docs/admob/][1]
내가 스토어에 업로드하면 addtestdevice 부분없이 작동합니까? –
앱을 게시 할 때 두 가지 일을 할 수 있습니다. 1) 해당 행을 주석 처리하거나 2) 변수를 추가하여 개발 모드 또는 프로덕션 모드에 있는지 확인하십시오. –