public class InterstitialAd extends Object
Constructor and Description |
---|
InterstitialAd(Context context)
Creates a new interstitial ad
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Cleans up any used resources.
|
boolean |
isLoaded()
Returns whether an ad is done loading
|
void |
loadAd()
Loads a new ad in the background.
|
void |
setAdListener(AdListener adListener)
Sets the listener for events from this ad.
|
void |
setAdUnitId(String adUnitId)
Sets the ID of the ad unit in which an ad will be shown.
|
void |
show()
Displays the loaded interstitial ad to the user.
|
public InterstitialAd(Context context)
context
- contextpublic void setAdListener(AdListener adListener)
adListener
- listenerpublic void setAdUnitId(String adUnitId)
adUnitId
- ad unit IDpublic void loadAd()
public boolean isLoaded()
public void show()
public void destroy()