public final class UnifiedBidding
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
UnifiedBidding.PrebidListener
A listener for Prebid requests.
|
| Modifier and Type | Method and Description |
|---|---|
static com.smaato.sdk.core.KeyValuePairs |
getKeyValuePairs() |
static void |
prebidBanner(java.lang.String adSpaceId,
UBBannerSize bannerSize,
UnifiedBidding.PrebidListener listener)
Requests a prebid data for Banner Ads.
|
static void |
prebidInterstitial(java.lang.String adSpaceId,
UnifiedBidding.PrebidListener listener)
Requests a prebid data for Interstitial Ads.
|
static void |
prebidRewardedInterstitial(java.lang.String adSpaceId,
UnifiedBidding.PrebidListener listener)
Requests a prebid data for Rewarded Interstitial Ads.
|
static void |
setKeyValuePairs(com.smaato.sdk.core.KeyValuePairs keyValuePairs)
Sets an
KeyValuePairs object to target more specific ads. |
public static void prebidBanner(@NonNull
java.lang.String adSpaceId,
@NonNull
UBBannerSize bannerSize,
@NonNull
UnifiedBidding.PrebidListener listener)
adSpaceId - AdSpace ID (assigned by Smaato). Can not be null. If null is passed, then
UnifiedBidding.PrebidListener.onPrebidResult(com.smaato.sdk.ub.UBBid, com.smaato.sdk.ub.UBBidRequestError) will be called with UBError.INVALID_REQUEST error.
Unified Bidding support should be enabled for this adSpaceId in Smaato SPXbannerSize - UBBannerSize for this request.listener - UnifiedBidding.PrebidListener for this request.
SmaatoSdk keeps 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(@NonNull
java.lang.String adSpaceId,
@NonNull
UnifiedBidding.PrebidListener listener)
adSpaceId - AdSpace ID (assigned by Smaato). Can not be null. If null is passed, then
UnifiedBidding.PrebidListener.onPrebidResult(com.smaato.sdk.ub.UBBid, com.smaato.sdk.ub.UBBidRequestError) will be called with UBError.INVALID_REQUEST error.
Unified Bidding support should be enabled for this adSpaceId in Smaato SPXlistener - UnifiedBidding.PrebidListener for this request.
SmaatoSdk keeps 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(@NonNull
java.lang.String adSpaceId,
@NonNull
UnifiedBidding.PrebidListener listener)
adSpaceId - AdSpace ID (assigned by Smaato). Can not be null. If null is passed, then
UnifiedBidding.PrebidListener.onPrebidResult(com.smaato.sdk.ub.UBBid, com.smaato.sdk.ub.UBBidRequestError) will be called with UBError.INVALID_REQUEST error.
Unified Bidding support should be enabled for this adSpaceId in Smaato SPXlistener - UnifiedBidding.PrebidListener for this request.
SmaatoSdk keeps WeakReference on listener to prevent memory leaks.
It's responsibility of SmaatoSdk's user to keep instances from being collected by garbage collector.@Nullable public static com.smaato.sdk.core.KeyValuePairs getKeyValuePairs()
KeyValuePairs object if one was set by setKeyValuePairs(KeyValuePairs)public static void setKeyValuePairs(@Nullable
com.smaato.sdk.core.KeyValuePairs keyValuePairs)
KeyValuePairs object to target more specific ads.keyValuePairs - to be set