Re: Get “ Fail to instantiate adapter com.google.DummyAdapter” Error When use RewardedVideoAd

192 views
Skip to first unread message
Message has been deleted

Joshua Lagonera (Mobile Ads SDK Team)

unread,
May 15, 2017, 4:16:35 AM5/15/17
to Google Mobile Ads SDK Developers
Hi there,

The Error Code: 3 you are receiving could mean that there is no available ad to be displayed at the time of the Ad Request. I have tried the Ad Unit ID in your sample code snippet and I was able to receive ads on my end.

That said, to help resolve this issue, I would suggest that you try to Mediate with Supported Third Party Ad Networks to increase the available Ad Inventory and reduce the occurrence of this error.

Let me know if this works for you.

Regards,
Joshua Lagonera
Mobile Ads SDK Team

On Monday, May 15, 2017 at 11:14:24 AM UTC+8, zouyuc...@gmail.com wrote:
I am trying to load RewardedVideoAd, but I am getting error code 3. Any help will be Appreciated:D

Here is message in logcat:
--
07-13 11:02:27.575 10759-10814/com.appvv.os11launcher W/Ads: Fail to instantiate adapter com.google.DummyAdapter
                                                             android.os.RemoteException
                                                                 at com.google.android.gms.internal.zzjz.zzav(Unknown Source)
                                                                 at com.google.android.gms.internal.zzjz.zzau(Unknown Source)
                                                                 at com.google.android.gms.internal.zzjz.zzas(Unknown Source)
                                                                 at com.google.android.gms.internal.zzka$zza.onTransact(Unknown Source)
                                                                 at android.os.Binder.transact(Binder.java:347)
                                                                 at com.google.android.gms.ads.internal.mediation.client.d.a(:com.google.android.gms.DynamiteModulesA:94)
                                                                 at com.google.android.gms.ads.internal.reward.c.b(:com.google.android.gms.DynamiteModulesA:229)
                                                                 at com.google.android.gms.ads.internal.reward.mediation.k.a(:com.google.android.gms.DynamiteModulesA:1140)
                                                                 at com.google.android.gms.ads.internal.util.b.run(:com.google.android.gms.DynamiteModulesA:19)
                                                                 at com.google.android.gms.ads.internal.util.ab.call(:com.google.android.gms.DynamiteModulesA:1055)
                                                                 at com.google.android.gms.ads.internal.util.ac.run(:com.google.android.gms.DynamiteModulesA:75)
                                                                 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
                                                                 at java.util.concurrent.FutureTask.run(FutureTask.java:234)
                                                                 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
                                                                 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
                                                                 at java.lang.Thread.run(Thread.java:841)
07-13 11:02:27.575 10759-10759/com.appvv.os11launcher W/Ads: Failed to load ad: 3
--

Here is my gradle:
--
    compile 'com.android.support:support-v4:25.0.1'
    compile 'com.google.android.gms:play-services-ads:10.2.4'
--

Here is my activity:
--
public class VideoActivity extends Activity implements RewardedVideoAdListener {

    private RewardedVideoAd mAd;
    private FrameLayout mContainer;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        MobileAds.initialize(this, "ca-app-pub-8120576962100760~6395355738");
        setContentView(R.layout.activity_framelayout);
        mContainer = (FrameLayout) findViewById(R.id.ad_container);
        mAd = MobileAds.getRewardedVideoAdInstance(this);
        mAd.setRewardedVideoAdListener(this);
        loadRewardedVideoAd();
    }

    @Override
    public void onResume() {
        mAd.resume(this);
        super.onResume();
    }

    @Override
    public void onPause() {
        mAd.pause(this);
        super.onPause();
    }

    @Override
    public void onDestroy() {
        mAd.destroy(this);
        super.onDestroy();
    }

    private void loadRewardedVideoAd() {
        mAd.loadAd("ca-app-pub-8120576962100760/6651162135", new AdRequest.Builder().addTestDevice("A08A4F117D47DD1FEB7688DEA5DE45BC").build());
    }

    @Override
    public void onRewardedVideoAdLoaded() {
        mAd.show();
    }

    @Override
    public void onRewardedVideoAdOpened() {

    }

    @Override
    public void onRewardedVideoStarted() {

    }

    @Override
    public void onRewardedVideoAdClosed() {

    }

    @Override
    public void onRewarded(RewardItem rewardItem) {

    }

    @Override
    public void onRewardedVideoAdLeftApplication() {

    }

    @Override
    public void onRewardedVideoAdFailedToLoad(int i) {

    }
--
Reply all
Reply to author
Forward
0 new messages