failed to load ad : 3

后端 未结 24 1385
南方客
南方客 2020-11-22 08:12

I\'m setting an ad to my Android application using DoubleClick and can\'t manage to show the final ad, can someone help me?

When I test an ad by adding ".addTest

相关标签:
24条回答
  • 2020-11-22 08:35

    If error continues last try is create a new placement in admob. This works for me. Without changing anything(except placement id string) else in code ads start displaying.

    0 讨论(0)
  • 2020-11-22 08:37

    There could be one of the reasons that You might have created your advertise from adMob console by clicking yes that your app is already in playstore and giving url of your live app.Now in that case you wont able to run your ads in any other projects which is having diff package id then the live one(not even test advertise).You have to implement the ads in live project containing same package id and in other case will be getting ad failed to load ad : 3.

    Thanks! Happy coding!

    0 讨论(0)
  • 2020-11-22 08:41

    W/Ads: Failed to load ad: 3

    It Means that your code is correct but due to less amount of request to the server your ads are not Visible. To check the Test ADS you Should put the code in loop for some time, and you have to give multiple requests so that your admob receives multiple requests and will load the ads immediately.

    Add the below code

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

    Restart Your application multiple times.

    Remove the Loop after you start receiving ads.

    0 讨论(0)
  • 2020-11-22 08:43

    I had the same error in my app. I was launching the app in debug configuration. The problem was solved as soon as I run the release version of my app on the same device. In Android Studio just go to Build -> Generate Signed APK and choose the release configuration. Then install release .apk on your device. In debug configuration you can also check whether your test ads appears by adding AdRequest.Builder.addTestDevice("YOUR TEST DEVICE"). If it's ok with ads appearing, it means you just need release configuration.

    0 讨论(0)
  • 2020-11-22 08:45

    One new and update answer: Many apps that were removed this October(2018) for the lack of Privacy Policy are unable to receive ads after they get back in Play Store. You must use this form to request a "reset" for that app's ads. https://support.google.com/admob/contact/appeal_policy_violation

    Took me a few days to realize and find the answer. Hope you get your ads back.

    0 讨论(0)
  • 2020-11-22 08:46
    1. Check And Make sure You Have not linked two accounts to adsense as I have mistakenly done in my case.

    2. if you are just creating your admob account waut for 24 hours and try again

    0 讨论(0)
提交回复
热议问题