public abstract class BaseInterstitialAd extends BaseAd
adConfig, metricFactory| Modifier | Constructor and Description |
|---|---|
protected |
BaseInterstitialAd(int slotId,
java.lang.String format,
android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Close, destroy the ad and free resources
|
void |
dismiss()
Close screen with ad
|
java.lang.String |
getAdSource()
Get the name of source network.
|
float |
getAdSourcePriority()
Ad Source Priority is the value representing current ad network place in the queue of
received advertisements.
|
void |
handleSection(InterstitialAdSection section) |
boolean |
isMediationEnabled()
Get enable/disable mediation flag
|
boolean |
isUseExoPlayer()
Gets current flag of using ExoPlayer for video playing
|
void |
load()
Start loading ads.
|
void |
loadFromBid(java.lang.String bidId)
Start loading ad with the bidding ID
|
void |
setMediationEnabled(boolean mediationEnabled)
Enables/disables mediation for current ad.
|
void |
show()
Show screen with ad
|
void |
show(android.content.Context ctx) |
void |
useExoPlayer(boolean useExoPlayer)
Enables/disables ExoPlayer to play video.
|
getCustomParams, isLoadCalledprotected BaseInterstitialAd(int slotId,
@NonNull
java.lang.String format,
@NonNull
android.content.Context context)
public void useExoPlayer(boolean useExoPlayer)
useExoPlayer - flag to use ExoPlayerpublic boolean isUseExoPlayer()
public void setMediationEnabled(boolean mediationEnabled)
mediationEnabled - if true - enable mediation, otherwise notpublic boolean isMediationEnabled()
public final void load()
public void loadFromBid(@NonNull
java.lang.String bidId)
bidId - bidding IDpublic final void handleSection(@NonNull
InterstitialAdSection section)
public void show()
public void show(@Nullable
android.content.Context ctx)
public void dismiss()
public void destroy()
@Nullable public java.lang.String getAdSource()
public float getAdSourcePriority()