public final class

UnifiedBidding

extends Object
java.lang.Object
   ↳ com.smaato.sdk.ub.UnifiedBidding

Summary

Nested Classes
interface UnifiedBidding.PrebidListener A listener for Prebid requests. 
Public Methods
static KeyValuePairs getKeyValuePairs()
static void prebidBanner(String adSpaceId, UBBannerSize bannerSize, UnifiedBidding.PrebidListener listener)
Requests a prebid data for Banner Ads.
static void prebidInterstitial(String adSpaceId, UnifiedBidding.PrebidListener listener)
Requests a prebid data for Interstitial Ads.
static void prebidRewardedInterstitial(String adSpaceId, UnifiedBidding.PrebidListener listener)
Requests a prebid data for Rewarded Interstitial Ads.
static void setKeyValuePairs(KeyValuePairs keyValuePairs)
Sets an KeyValuePairs object to target more specific ads.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static KeyValuePairs getKeyValuePairs ()

Returns

public static void prebidBanner (String adSpaceId, UBBannerSize bannerSize, UnifiedBidding.PrebidListener listener)

Requests a prebid data for Banner Ads.

Parameters
adSpaceId AdSpace ID (assigned by Smaato). Can not be null. If null is passed, then onPrebidResult(UBBid, UBBidRequestError) will be called with INVALID_REQUEST error. Unified Bidding support should be enabled for this adSpaceId in Smaato SPX
bannerSize UBBannerSize for this request.
listener UnifiedBidding.PrebidListener for this request. SmaatoSdk keeps java.lang.ref.WeakReference on listener to prevent memory leaks. It's responsibility of SmaatoSdk's user to keep instances from being collected by garbage collector.

public static void prebidInterstitial (String adSpaceId, UnifiedBidding.PrebidListener listener)

Requests a prebid data for Interstitial Ads.

Parameters
adSpaceId AdSpace ID (assigned by Smaato). Can not be null. If null is passed, then onPrebidResult(UBBid, UBBidRequestError) will be called with INVALID_REQUEST error. Unified Bidding support should be enabled for this adSpaceId in Smaato SPX
listener UnifiedBidding.PrebidListener for this request. SmaatoSdk keeps java.lang.ref.WeakReference on listener to prevent memory leaks. It's responsibility of SmaatoSdk's user to keep instances from being collected by garbage collector.

public static void prebidRewardedInterstitial (String adSpaceId, UnifiedBidding.PrebidListener listener)

Requests a prebid data for Rewarded Interstitial Ads.

Parameters
adSpaceId AdSpace ID (assigned by Smaato). Can not be null. If null is passed, then onPrebidResult(UBBid, UBBidRequestError) will be called with INVALID_REQUEST error. Unified Bidding support should be enabled for this adSpaceId in Smaato SPX
listener UnifiedBidding.PrebidListener for this request. SmaatoSdk keeps java.lang.ref.WeakReference on listener to prevent memory leaks. It's responsibility of SmaatoSdk's user to keep instances from being collected by garbage collector.

public static void setKeyValuePairs (KeyValuePairs keyValuePairs)

Sets an KeyValuePairs object to target more specific ads.

Parameters
keyValuePairs to be set