Package org.prebid.mobile.api.rendering
Class BaseInterstitialAdUnit
java.lang.Object
org.prebid.mobile.api.rendering.BaseInterstitialAdUnit
- Direct Known Subclasses:
InterstitialAdUnit,RewardedAdUnit
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContent(ContentObject content) voidaddContextData(String key, String value) Deprecated.use addExtDatavoidaddContextKeyword(String keyword) Deprecated.use addExtKeywordvoidaddContextKeywords(Set<String> keywords) Deprecated.use addExtKeywordsvoidaddExtData(String key, String value) voidaddExtKeyword(String keyword) voidaddExtKeywords(Set<String> keywords) voidaddUserData(DataObject dataObject) protected voidchangeInterstitialAdUnitState(org.prebid.mobile.api.rendering.BaseInterstitialAdUnit.InterstitialAdUnitState state) voidDeprecated.use clearExtDatavoidDeprecated.use clearExtKeywordsvoidvoidvoidvoiddestroy()Cleans up resources when destroyed.protected android.content.ContextDeprecated.use getExtDataDictionaryDeprecated.use getExtKeywordsSetprotected voidinit(AdUnitConfiguration adUnitConfiguration) protected booleanbooleanisLoaded()voidloadAd()Executes ad loading if no request is running.protected voidvoidremoveContextData(String key) Deprecated.use removeExtDatavoidremoveContextKeyword(String keyword) Deprecated.use removeExtKeywordvoidremoveExtData(String key) voidremoveExtKeyword(String keyword) voidsetAppContent(ContentObject content) voidsetCloseButtonArea(double closeButtonArea) Sets close button percentage size in range from 0.05 to 1.voidsetCloseButtonPosition(Position closeButtonPosition) Sets close button position on the screen.voidsetIsMuted(boolean isMuted) voidsetIsSoundButtonVisible(boolean isSoundButtonVisible) voidsetMaxVideoDuration(int seconds) voidsetOrtbConfig(String ortbConfig) voidsetPbAdSlot(String adSlot) voidsetSkipButtonArea(double buttonArea) Sets skip button percentage size in range from 0.05 to 1.voidsetSkipButtonPosition(Position skipButtonPosition) Sets skip button position on the screen.voidsetSkipDelay(int secondsDelay) Sets delay in seconds to show skip or close button.voidshow()Executes interstitial display if auction winner is defined.voidupdateContextData(String key, Set<String> value) Deprecated.use updateExtDatavoidupdateExtData(String key, Set<String> value)
-
Field Details
-
adUnitConfig
-
-
Constructor Details
-
BaseInterstitialAdUnit
protected BaseInterstitialAdUnit(android.content.Context context)
-
-
Method Details
-
loadAd
public void loadAd()Executes ad loading if no request is running. -
isLoaded
public boolean isLoaded()- Returns:
- true if auction winner was defined, false otherwise
-
show
public void show()Executes interstitial display if auction winner is defined. -
addContextData
Deprecated.use addExtData -
updateContextData
Deprecated.use updateExtData -
removeContextData
Deprecated.use removeExtData -
clearContextData
Deprecated.use clearExtData -
getContextDataDictionary
Deprecated.use getExtDataDictionary -
addContextKeyword
Deprecated.use addExtKeyword -
addContextKeywords
Deprecated.use addExtKeywords -
removeContextKeyword
Deprecated.use removeExtKeyword -
getContextKeywordsSet
Deprecated.use getExtKeywordsSet -
clearContextKeywords
Deprecated.use clearExtKeywords -
addExtData
-
updateExtData
-
removeExtData
-
clearExtData
public void clearExtData() -
getExtDataDictionary
-
addExtKeyword
-
addExtKeywords
-
removeExtKeyword
-
getExtKeywordsSet
-
clearExtKeywords
public void clearExtKeywords() -
setAppContent
-
getAppContent
-
addUserData
-
getUserData
-
clearUserData
public void clearUserData() -
getOrtbConfig
-
setOrtbConfig
-
getPbAdSlot
-
setPbAdSlot
-
setSkipDelay
public void setSkipDelay(int secondsDelay) Sets delay in seconds to show skip or close button. -
setSkipButtonArea
public void setSkipButtonArea(double buttonArea) Sets skip button percentage size in range from 0.05 to 1. If value less than 0.05, size will be default. -
setSkipButtonPosition
Sets skip button position on the screen. Suitable values TOP_LEFT and TOP_RIGHT. Default value TOP_RIGHT. -
setIsMuted
public void setIsMuted(boolean isMuted) -
setIsSoundButtonVisible
public void setIsSoundButtonVisible(boolean isSoundButtonVisible) -
setMaxVideoDuration
public void setMaxVideoDuration(int seconds) -
setCloseButtonArea
public void setCloseButtonArea(double closeButtonArea) Sets close button percentage size in range from 0.05 to 1. If value less than 0.05, size will be default. -
setCloseButtonPosition
Sets close button position on the screen. Suitable values TOP_LEFT and TOP_RIGHT. Default value TOP_RIGHT. -
destroy
public void destroy()Cleans up resources when destroyed. -
init
-
loadPrebidAd
protected void loadPrebidAd() -
getContext
protected android.content.Context getContext() -
isBidInvalid
protected boolean isBidInvalid() -
changeInterstitialAdUnitState
protected void changeInterstitialAdUnitState(org.prebid.mobile.api.rendering.BaseInterstitialAdUnit.InterstitialAdUnitState state) -
getBidResponse
-
addContent
-