简体   繁体   中英

How to get a Test ad unit ID for rewarded video ads for Android?

I'm trying to test a rewarded video in my Android app but I don't want to use my real id since they can close my account. Where can I get a test unit ID for this?

Edit: using admob

 private void loadAd(){

if(!mAd.isLoaded()){
  mAd.loadAd("TEST_ID",
      new AdRequest.Builder()
          .build());
}


  }

Be careful, Admob introduced their own rewarded video in early March 2017 and since this time its been enabled by default for rewarded ad units. This means that if you've set up an Admob unit to point to mediated providers using suitable test settings at the providers end it will serve live Admob rewarded videos (and revenue) depending on the mediation settings see this: admob sdk forum that provided a dummy rewarded unit ID

您必须转到中介网络面板并启用测试广告,而在进行中介时,无需通过代码

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM