public class Prebid
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Prebid.AdServer |
static class |
Prebid.Host |
static interface |
Prebid.OnAttachCompleteListener
Listener Interface to be used with attachTopBidWhenReady for Banner.
|
| Constructor and Description |
|---|
Prebid() |
| Modifier and Type | Method and Description |
|---|---|
static void |
attachBids(java.lang.Object adObj,
java.lang.String adUnitCode,
Context context) |
static void |
attachBidsWhenReady(java.lang.Object adObject,
java.lang.String adUnitCode,
Prebid.OnAttachCompleteListener listener,
int timeOut,
Context context) |
static void |
detachUsedBid(java.lang.Object adObj) |
static java.lang.String |
getAccountId() |
static Prebid.AdServer |
getAdServer() |
static Prebid.Host |
getHost() |
static void |
init(Context context,
java.util.ArrayList<AdUnit> adUnits,
java.lang.String accountId,
Prebid.AdServer adServer,
Prebid.Host host)
This method is used to:
- Validate inputs of ad units
- Validate the setup of the demand adapter
- Start the bid manager
|
static boolean |
isSecureConnection()
Get whether to use secure connection
|
static void |
shouldLoadOverSecureConnection(boolean secureConnection)
Set whether to use secure connection for ad requests
|
static boolean |
useLocalCache() |
public static Prebid.AdServer getAdServer()
public static Prebid.Host getHost()
public static boolean useLocalCache()
public static void init(Context context,
java.util.ArrayList<AdUnit> adUnits,
java.lang.String accountId,
Prebid.AdServer adServer,
Prebid.Host host)
throws PrebidException
context - Application contextadUnits - List of Ad Slot Configurations to registeraccountId - Prebid Server accountadServer - Primary AdServer you're using for your apphost - Host you're using for your appPrebidExceptionpublic static void attachBids(java.lang.Object adObj,
java.lang.String adUnitCode,
Context context)
public static void detachUsedBid(java.lang.Object adObj)
public static void attachBidsWhenReady(java.lang.Object adObject,
java.lang.String adUnitCode,
Prebid.OnAttachCompleteListener listener,
int timeOut,
Context context)
public static java.lang.String getAccountId()
public static boolean isSecureConnection()
public static void shouldLoadOverSecureConnection(boolean secureConnection)
secureConnection - true to use secure connection