failed to load ad : 3

后端 未结 24 1390
南方客
南方客 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: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.

提交回复
热议问题