Programing

광고로드 실패 : 3

lottogame 2020. 10. 12. 07:06
반응형

광고로드 실패 : 3


DoubleClick을 사용하여 Android 애플리케이션에 광고를 설정하고 있는데 최종 광고를 표시 할 수 없습니다. 누군가 도와 줄 수 있습니까?

".addTestDevice ("xxx ... ")"를 추가하여 광고를 테스트하면 테스트 광고가 표시되지만이 줄을 제거하면 다음 오류가 발생합니다.

W / Ads : 광고 서버에서 채우기 없음

W / Ads : 광고로드 실패 : 3

다음과 같이 광고를 설정했습니다.

PublisherAdRequest adRequest = new PublisherAdRequest.Builder().build();
mPublisherAdView.loadAd(adRequest);

그리고 내 publisherView는 다음과 같습니다.

    <com.google.android.gms.ads.doubleclick.PublisherAdView
        android:id="@+id/pronostics_ad"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"

        android:layout_gravity="center"

        ads:adSize="BANNER"
        ads:adUnitId="@string/ad_unit_pronostic">
    </com.google.android.gms.ads.doubleclick.PublisherAdView>

무엇이 잘못 되었을까요?

귀하의 답변에 미리 감사드립니다.


W / Ads : 광고로드 실패 : 3

당으로 문서 다음과 같은 오류 코드를 얻고있다 :

공용 정적 최종 정수 ERROR_CODE_NO_FILL

광고 요청이 성공했지만 광고 인벤토리 부족으로 인해 광고가 반환되지 않았습니다.

상수 값 : 3

포스트 바탕으로 광고 요청이 성공하지만, 애드 월과 몹을 사용하는 경우에는 광고로 인해 광고 인벤토리 부족으로 반환 - onFailedToReceiveAd :

이 오류가 발생하면 코드가 올바른 것입니다. 문제는 AdMob에 모든 요청에 ​​대해 반환 할 광고가 항상있는 것은 아니라는 것입니다. 특히 AdMob 게시자 ID를 방금 등록한 경우 새 ID가 광고를 반환하기 시작하는 데 시간과 여러 요청이 걸리기 때문에 이러한 문제가 발생할 수 있습니다.

유효 노출 률이 낮은 또 다른 이유는 애드 센스 백업 광고를 사용하도록 설정하지 않았거나 일부 광고를 필터링했기 때문입니다. 이 경우 앱 설정을 확인하십시오.


우리의 경우에 도움이 된 한 가지 옵션이 있습니다. @blizzard가 Google 개발자 콘솔의 애플리케이션 설정에서 언급했듯이 "가격 및 배포"라는 섹션이 있습니다. 이 섹션에는 "광고 포함"확인란이 있습니다. 우리의 경우에는 비활성화되었습니다. 활성화 후 우리는 성공적으로 광고를 받았습니다. 도움이 되었기를 바랍니다.


새롭고 업데이트 된 답변 하나 : 개인 정보 취급 방침이 없어 올해 10 월 (2018)에 삭제 된 많은 앱은 Play 스토어로 돌아온 후 광고를받을 수 없습니다. 이 양식을 사용하여 해당 앱의 광고에 대한 '재설정'을 요청해야합니다. https://support.google.com/admob/contact/appeal_policy_violation

답을 깨닫고 찾는 데 며칠이 걸렸습니다. 광고를 다시 받으시기 바랍니다.


옵션 1 : 설정 -> 광고 ID 재설정 검색 -> 광고 ID 재설정 클릭 -> 확인 . 지금 광고 수신을 시작해야합니다.

검색 옵션이 없습니까? 옵션 2 시도

옵션 2 : 설정-> Google-> 광고-> 광고 ID 재설정-> 확인으로 이동합니다.

설정에 Google 옵션이 없습니까? 옵션 3 시도

옵션 3 : Google 설정을 찾습니다 (설정이 아님) -> 광고-> 광고 ID 재설정


내 앱에서 동일한 오류가 발생했습니다. 디버그 구성에서 앱을 시작했습니다. 동일한 장치에서 내 앱 릴리스 버전을 실행하자마자 문제가 해결되었습니다 . Android Studio에서 Build-> Generate Signed APK로 이동하여 릴리스 구성을 선택하십시오. 그런 다음 장치에 릴리스 .apk를 설치하십시오. 디버그 구성에서 AdRequest.Builder.addTestDevice ( "YOUR TEST DEVICE")를 추가 하여 테스트 광고가 표시 되는지 확인할 수도 있습니다 . 광고가 표시 되어도 괜찮다면 릴리스 구성 만 필요하다는 의미입니다.


다음은 간단한 해결 방법입니다 (솔루션 없음).

InMobi와 같은 미디 에이션을 설치할 수 있습니다. https://developers.google.com/admob/android/mediation/inmobi

이런 식으로 어떤 이유로 든 admob이 광고를 표시하지 않는 경우에도 다른 광고 네트워크에서 광고를 표시 할 수 있습니다.


W / Ads : 광고로드 실패 : 3

이는 코드가 정확하지만 서버에 대한 요청 량이 적기 때문에 광고가 보이지 않음을 의미합니다. 테스트 ADS를 확인하려면 코드를 한동안 루프에 넣어야하며 AdMob이 여러 요청을 받고 즉시 광고를로드하도록 여러 요청을 제공해야합니다.

아래 코드를 추가하십시오

for(int i=0;i<1000;i++) {
            AdRequest adRequest = new AdRequest
                    .Builder()
                    .addTestDevice("B431EE858B5F1986E4D89CA31250F732")
                    .build();
            accountSettingsBinding.adView.loadAd(adRequest);
        } 

애플리케이션을 여러 번 다시 시작하십시오.

광고 수신을 시작한 후 루프를 제거하십시오 .


누군가에게 효과가있을 경우를 대비해 여기에 남겨 두겠습니다. 모든 포럼과 게시물에서 언급 된 모든 수정 사항을 시도한 후 저에게 효과가 있었던 것은 단순히 전역 AdRequest개체 를 사용하는 것입니다. loadAdadView에서 각각을 호출 할 때 동일한 개체를 사용합니다 Activity. AdView활동에 관계없이 동일한 광고를로드하는 경향이 있지만 적어도 지금은 광고가 표시됩니다.


Google AdMod에 결제 수단 을 추가하는 것을 잊지 마십시오 . "오류 코드 3"문제였습니다. 어쨌든, 귀하의 계정 Google AdMod가 광고를 표시 할 준비가되면 (테스트 된 기기 또는 실제 사용자를 위해) 귀하의 계정이 확인되고 작동 할 준비가되었다는 이메일 을 귀하 에게 보냅니다 ! 이 편지 후에는 모든 것이 잘 작동합니다.


오류가 계속되면 마지막 시도는 AdMob에서 새 게재 위치를 만드는 것입니다. 이것은 나를 위해 작동합니다. 아무것도 변경하지 않고 (게재 위치 ID 문자열 제외) 다른 코드 광고가 표시되기 시작합니다.


게시 된 앱에 AdMob이없고 Google Developer Console의 설정 ( '가격 및 배포'라고 함) 인 경우 'CONTAINS ADS'가 처리되지 않습니다. 항상 logcat 출력으로 테스트 ID로 개발하십시오.


새 AdMob 버전에서는 다음을 사용하세요.

// 이전에 adView로드

    adView.setAdListener(new AdListener() {    


        @Override
        public void onAdFailedToLoad(int errorCode) {
            // Code to be executed when an ad request fails.
            Toast.makeText(Your current activity.this, "Ad failed: " + errorCode, Toast.LENGTH_SHORT).show();
        }




    });

에뮬레이터에 광고가로드되면 테스트 광고를 반환한다는 것은 코드에 문제가 없음을 의미합니다. 휴대 전화에 테스트 광고도로드하나요?

If you're able to see test ads on the emulator and test devices, then it usually just means that AdMob (assuming you're using AdMob) is unable to return an Ad due to a lack of Ad inventory. If this is the case, then when looking at the Logcat you should see the line W/Ads: Failed to load ad: 3.

What you should do is plug in an Android phone to your computer, and then in Android Studio click on Logcat, and in the top left you should see some devices to select from. Select your phone if it's listed (it should be). The logcat will now be printing everything your phone is printing. In the filter bar, type in ads to filter out stuff you don't need to see.

Then open your application in your phone, and check the logcat. Make sure your device isn't considered a test device. If you see W/Ads: Failed to load ad: 3 then that should mean that the problem lies with AdMob and not you.

If it doesn't say that and it says something else, then I obviously don't know.


I've made the stupidest error. Passed app id into MobileAds.initialize from one app and used placement id in loadAd from another admob app.

Once I corrected placement id all come to work.


I hadn't published a version of my app with ads yet.

I was seeing error code 3: ERROR_CODE_NO_FILL after I switched from emulators with a debug version to a real device with the release version (installed through adb shell commands).

I waited 12+ hours and I could see ad requests on the AdMob portal, but no matches (match rate of 0%). I went to the Play Console > Store Presence > Pricing & distribution and switched the radio button for Contains ads to Yes, it has ads. I even tried uploading my app bundle (without publishing) to the Play Console. Neither of these worked.

Various AdMob help articles (including the one linked below) mention that if you've been seeing test ads (ads labeled with "Test Ad"), then your code is working and real ads should work as expected (once they build up inventory).

With that in mind, I went ahead and published my app to the Play Store and once the update was live, I downloaded it via the Play Store app on my real phone and the ads loaded no problem and my match rate is now sitting at 66% on AdMob. From the AdMob FAQ article, it sounds like it typically takes a few hours and could have taken up to 24 hours for ads to start showing.

ad mob FAQ re: how long does it take ads to show

Source: https://support.google.com/admob/answer/2993019?hl=en

참고URL : https://stackoverflow.com/questions/33566485/failed-to-load-ad-3

반응형