Search code examples
androidinterstitial

how to place Interstitial Ad After If Statement?


I was Implemented interstitial Code to my App but I want interstitial Code in if-else statement ..so what to do ?


Solution

  • Try this one.

    if (url.endsWith(".mp3")){
      // your ad view should be visible here. and load ad here.
    }else{
     // your ad view should be gone here.
    }