Package org.prebid.mobile
Class PrebidMobile
- java.lang.Object
-
- org.prebid.mobile.PrebidMobile
-
public class PrebidMobile extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddStoredBidResponse(java.lang.String bidder, java.lang.String responseId)static voidassignNativeAssetID(boolean assignNativeAssetID)For assigning ID to the Assets in the Asset array (in Native Ad Request)static voidclearStoredBidResponses()static android.content.ContextgetApplicationContext()static java.util.HashMap<java.lang.String,java.lang.String>getCustomHeaders()Returns the HashMap containing a list of custom headers to add to requestsstatic java.util.List<ExternalUserId>getExternalUserIds()Returns the List that hold External UserId parameters for the current application userstatic booleangetPbsDebug()static java.lang.StringgetPrebidServerAccountId()static HostgetPrebidServerHost()static java.lang.StringgetStoredAuctionResponse()static intgetTimeoutMillis()static booleanisShareGeoLocation()static voidsetApplicationContext(android.content.Context context)static voidsetCustomHeaders(java.util.HashMap<java.lang.String,java.lang.String> customHeaders)HashMap containing a list of custom headers to add to requestsstatic voidsetExternalUserIds(java.util.List<ExternalUserId> externalUserIds)List containing objects that hold External UserId parameters for the current application user.static voidsetPbsDebug(boolean pbsDebug)static voidsetPrebidServerAccountId(java.lang.String accountId)static voidsetPrebidServerHost(Host host)static voidsetShareGeoLocation(boolean share)static voidsetStoredAuctionResponse(java.lang.String storedAuctionResponse)static voidsetTimeoutMillis(int timeoutMillis)static booleanshouldAssignNativeAssetID()
-
-
-
Method Detail
-
getTimeoutMillis
public static int getTimeoutMillis()
-
setTimeoutMillis
public static void setTimeoutMillis(int timeoutMillis)
-
setPrebidServerAccountId
public static void setPrebidServerAccountId(java.lang.String accountId)
-
getPrebidServerAccountId
public static java.lang.String getPrebidServerAccountId()
-
setPrebidServerHost
public static void setPrebidServerHost(Host host)
-
getPrebidServerHost
public static Host getPrebidServerHost()
-
setShareGeoLocation
public static void setShareGeoLocation(boolean share)
-
isShareGeoLocation
public static boolean isShareGeoLocation()
-
setExternalUserIds
public static void setExternalUserIds(java.util.List<ExternalUserId> externalUserIds)
List containing objects that hold External UserId parameters for the current application user.- Parameters:
externalUserIds-
-
getExternalUserIds
public static java.util.List<ExternalUserId> getExternalUserIds()
Returns the List that hold External UserId parameters for the current application user- Returns:
- externalUserIds as Array.
-
setCustomHeaders
public static void setCustomHeaders(java.util.HashMap<java.lang.String,java.lang.String> customHeaders)
HashMap containing a list of custom headers to add to requests- Parameters:
customHeaders-
-
getCustomHeaders
public static java.util.HashMap<java.lang.String,java.lang.String> getCustomHeaders()
Returns the HashMap containing a list of custom headers to add to requests- Returns:
- externalUserIds as Array.
-
setApplicationContext
public static void setApplicationContext(android.content.Context context)
-
getApplicationContext
public static android.content.Context getApplicationContext()
-
setStoredAuctionResponse
public static void setStoredAuctionResponse(@NonNull java.lang.String storedAuctionResponse)
-
getStoredAuctionResponse
@Nullable public static java.lang.String getStoredAuctionResponse()
-
addStoredBidResponse
public static void addStoredBidResponse(java.lang.String bidder, java.lang.String responseId)
-
clearStoredBidResponses
public static void clearStoredBidResponses()
-
getPbsDebug
public static boolean getPbsDebug()
-
setPbsDebug
public static void setPbsDebug(boolean pbsDebug)
-
shouldAssignNativeAssetID
public static boolean shouldAssignNativeAssetID()
- Returns:
- boolean that states if the ID will be set to the Asset array (in the Native Ad Request)
This value can be set using the
assignNativeAssetID(boolean)
-
assignNativeAssetID
public static void assignNativeAssetID(boolean assignNativeAssetID)
For assigning ID to the Assets in the Asset array (in Native Ad Request)
-
-