YaftaMobileInterstitial is used to display an interstitial ad. It has a close button for the user to dismiss it.
| Extends: | java.lang.Object |
| Implements: | YaftaMobileAdView |
| Package: | com.mustamara.yaftamobile.sdk.ads.interstitial |
YaftaMobileInterstitialConstruct an YaftaMobileInterstitial.
public YaftaMobileInterstitial(Activity activity,InterstitialAdListener interstitialAdListener)
|Parameter | Description| |-|-| |activity|The activity that owns this YaftaMobileInterstitial| |interstitialAdListener|The InterstitialAdListener that will be notified of events occurred during the ad life-cycle.|
requestAdRequest an ad to be fetched.
public void requestAd(AdRequest adRequest)
|Parameter | Description| |-|-| |adRequest|The AdRequest object containing the required information about the ad to fetch.|
showAdShow the interstitial ad.
public void showAd()
|Parameter | Description| |-|-| |||