Package com.my.target.ads
Class InterstitialAd
java.lang.Object
com.my.target.common.BaseAd
com.my.target.ads.BaseInterstitialAd
com.my.target.ads.InterstitialAd
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.my.target.common.BaseAd
adConfig, metricFactory -
Constructor Summary
ConstructorsConstructorDescriptionInterstitialAd(int slotId, android.content.Context context) Public constructor -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Close, destroy the ad and free resourcesGet events listener of an advertisementvoidSet events listener of an advertisement Must be called beforeBaseInterstitialAd.load()Methods inherited from class com.my.target.ads.BaseInterstitialAd
dismiss, getAdSource, getAdSourcePriority, handleSection, isMediationEnabled, isUseExoPlayer, load, loadFromBid, setMediationEnabled, show, show, useExoPlayerMethods inherited from class com.my.target.common.BaseAd
getCustomParams, isLoadCalled, setAdNetworkConfig
-
Field Details
-
listener
-
-
Constructor Details
-
InterstitialAd
public InterstitialAd(int slotId, @NonNull android.content.Context context) Public constructor- Parameters:
slotId- your slot idcontext- app context
-
-
Method Details
-
getListener
Get events listener of an advertisement- Returns:
- an instance of listener
- See Also:
-
setListener
Set events listener of an advertisement Must be called beforeBaseInterstitialAd.load()- See Also:
-
destroy
public void destroy()Close, destroy the ad and free resources- Overrides:
destroyin classBaseInterstitialAd
-