Is there any AdMob dummy id?

前端 未结 8 1677
没有蜡笔的小新
没有蜡笔的小新 2020-12-13 06:39

Is there any AdMob dummy ids for testing purpose? Do I need to register app & get MY_AD_UNIT_ID?

相关标签:
8条回答
  • 2020-12-13 07:28

    Banner:

    ca-app-pub-3940256099942544/6300978111
    

    Interstitial:

    ca-app-pub-3940256099942544/1033173712
    

    Rewarded Video:

    ca-app-pub-3940256099942544/5224354917
    

    Native Advanced:

    ca-app-pub-3940256099942544/2247696110
    

    Native Advanced Video:

    ca-app-pub-3940256099942544/1044960115
    

    Native Express Small/Large:

    ca-app-pub-3940256099942544/2793859312 
    ca-app-pub-3940256099942544/2177258514
    

    source

    0 讨论(0)
  • 2020-12-13 07:28

    For RewardedVideo you can use the following one :

    private static final String AD_UNIT_ID = "ca-app-pub-3940256099942544/5224354917";
    private static final String APP_ID = "ca-app-pub-3940256099942544~3347511713";
    

    how to use:

    MobileAds.initialize(this, APP_ID);
    
    mRewardedVideoAd = MobileAds.getRewardedVideoAdInstance(this);
    mRewardedVideoAd.setRewardedVideoAdListener(this);
    mRewardedVideoAd.loadAd(AD_UNIT_ID, new AdRequest.Builder().build());
    

    for showing

     if (mRewardedVideoAd.isLoaded()) {
            mRewardedVideoAd.show();
      }
    

    Hope this will help many of us!

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