BRST
BRST

Reputation: 81

Rewarded video ads-Failed to load ad error code 3 admob

I stuck for 3 days on implementing AdMob Rewarded Video , the code is completely find but when I launch the app it's said "onRewardedVideoAdFailedToLoad" and getting error code 3 and ad won't display kindly please help me what i do?

Upvotes: 8

Views: 14918

Answers (4)

Kand
Kand

Reputation: 53

You need to generate a signed apk for ads to begin to be served, otherwise you will get error code 3.

Upvotes: 0

Akash Kumar Saw
Akash Kumar Saw

Reputation: 21

Google throws error code 3 for many reasons. One of the official reason is that there is no Ads in the Google Server. This Error is also caused when you change your Keystore after implementing the Ad to previous Keystore. If you have changed your Keystore then you can fix this error just by replacing the Ad Unit. Still if you find this error then you don't worry and upload the App in Play Store or App Store and Connect your App With Admob. Hope this was Helpful for you.

Upvotes: 2

user10224828
user10224828

Reputation:

I had the same issue, it was caused because I was trying to load real adds while still on development. So I fixed it by using this .addTestDevice("device Id provided by admob on the logs") just before building my request. You can check this for more info about adding test devices.

Upvotes: 2

Cuong Vo
Cuong Vo

Reputation: 672

Error code is 3 stand for the ad request was successful, but no ad was returned due to lack of ad inventory.

The document is here https://developers.google.com/android/reference/com/google/android/gms/ads/AdRequest#ERROR_CODE_NO_FILL

You can implement this small function to get the knowledge of error code.

   private int getAdMobErrorCode(SampleErrorCode errorCode) {
    switch (errorCode) {
        case BAD_REQUEST:
        return AdRequest.ERROR_CODE_INVALID_REQUEST;
    case NETWORK_ERROR:
        return AdRequest.ERROR_CODE_NETWORK_ERROR;
    case NO_INVENTORY:
        return AdRequest.ERROR_CODE_NO_FILL;
    case UNKNOWN:
    default:
        return AdRequest.ERROR_CODE_INTERNAL_ERROR;
    }
}

Upvotes: 11

Related Questions