Package org.prebid.mobile.api.mediation
Class MediationInterstitialAdUnit
-
- All Implemented Interfaces:
public class MediationInterstitialAdUnit extends MediationBaseFullScreenAdUnit
Mediation interstitial ad unit for Rendering API with AdMob or AppLovin MAX.
-
-
Constructor Summary
Constructors Constructor Description MediationInterstitialAdUnit(Context context, String configId, AdSize minSizePercentage, PrebidMediationDelegate mediationDelegate)Constructor to fetch demand for a display interstitial ad with specified minHeightPercentage and minWidthPercentage MediationInterstitialAdUnit(Context context, String configId, EnumSet<AdUnitFormat> adUnitFormats, PrebidMediationDelegate mediationDelegate)Constructor to fetch demand for either display or video interstitial ads
-
Method Summary
Modifier and Type Method Description final voidfetchDemand(OnFetchCompleteListener listener)Loads ad and applies mediation delegate. voidsetMinSizePercentage(int width, int height)Sets min width and height in percentage. -
Methods inherited from class org.prebid.mobile.api.mediation.MediationBaseFullScreenAdUnit
setCloseButtonArea, setCloseButtonPosition, setIsMuted, setIsSoundButtonVisible, setMaxVideoDuration, setSkipButtonArea, setSkipButtonPosition, setSkipDelay -
Methods inherited from class org.prebid.mobile.api.mediation.MediationBaseAdUnit
destroy, getGlobalOrtbConfig, getImpOrtbConfig, getPbAdSlot, setGlobalOrtbConfig, setImpOrtbConfig, setPbAdSlot -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MediationInterstitialAdUnit
MediationInterstitialAdUnit(Context context, String configId, AdSize minSizePercentage, PrebidMediationDelegate mediationDelegate)
Constructor to fetch demand for a display interstitial ad with specified minHeightPercentage and minWidthPercentage
-
MediationInterstitialAdUnit
MediationInterstitialAdUnit(Context context, String configId, EnumSet<AdUnitFormat> adUnitFormats, PrebidMediationDelegate mediationDelegate)
Constructor to fetch demand for either display or video interstitial ads
-
-
Method Detail
-
fetchDemand
final void fetchDemand(OnFetchCompleteListener listener)
Loads ad and applies mediation delegate.
- Parameters:
listener- callback when operation is completed (success or fail)
-
setMinSizePercentage
void setMinSizePercentage(int width, int height)
Sets min width and height in percentage. Range from 0 to 100.
-
-
-
-