androidadmob

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());
}


  }

Solution

  • You have to go to your mediation network panel and enable test ads, is not through code when you have mediation