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 |
YaftaMobileInterstitial
Construct 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.|
requestAd
Request 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.|
showAd
Show the interstitial ad.
public void showAd()
|Parameter | Description| |-|-| |||