Package org.prebid.mobile.api.original
Class PrebidAdUnit
-
- All Implemented Interfaces:
public class PrebidAdUnitUniversal ad unit for original API. It allows to make multi-format request. Fetch demand result provides access to bid info data BidInfo.
-
-
Constructor Summary
Constructors Constructor Description PrebidAdUnit(String configId)Default constructor.
-
Method Summary
Modifier and Type Method Description voidfetchDemand(PrebidRequest request, OnFetchDemandResult listener)Loads ad and calls listener with bid info data. voidfetchDemand(Object adObject, PrebidRequest request, OnFetchDemandResult listener)Loads ad, applies keywords to the ad object, and calls listener with bid info data. voidsetAutoRefreshInterval(int seconds)Auto refresh interval for banner ad. voidactivatePrebidImpressionTracker(View adView)Applies the banner native visibility tracker for tracking `burl` url. voidactivateInterstitialPrebidImpressionTracker(boolean activate)Applies the interstitial native visibility tracker for tracking `burl` url. voidresumeAutoRefresh()Resumes auto refresh interval after stopping. voidstopAutoRefresh()Stops auto refresh interval. voiddestroy()Destroy ad unit and stop downloading. -
-
Constructor Detail
-
PrebidAdUnit
PrebidAdUnit(String configId)
Default constructor.
-
-
Method Detail
-
fetchDemand
void fetchDemand(PrebidRequest request, OnFetchDemandResult listener)
Loads ad and calls listener with bid info data.
- Parameters:
request- request objectlistener- callback when operation is completed (success or fail)
-
fetchDemand
void fetchDemand(Object adObject, PrebidRequest request, OnFetchDemandResult listener)
Loads ad, applies keywords to the ad object, and calls listener with bid info data.
- Parameters:
adObject- AdMob's (AdManagerAdRequestor @AdManagerAdRequest.Builder) or AppLovin's (MaxNativeAdLoader) ad objectrequest- request objectlistener- callback when operation is completed (success or fail)
-
setAutoRefreshInterval
void setAutoRefreshInterval(int seconds)
Auto refresh interval for banner ad.
-
activatePrebidImpressionTracker
void activatePrebidImpressionTracker(View adView)
Applies the banner native visibility tracker for tracking `burl` url.
- Parameters:
adView- the ad view object (f.e.
-
activateInterstitialPrebidImpressionTracker
void activateInterstitialPrebidImpressionTracker(boolean activate)
Applies the interstitial native visibility tracker for tracking `burl` url.
-
resumeAutoRefresh
void resumeAutoRefresh()
Resumes auto refresh interval after stopping.
-
stopAutoRefresh
void stopAutoRefresh()
Stops auto refresh interval.
-
destroy
void destroy()
Destroy ad unit and stop downloading.
-
-
-
-