Class PrebidMobile


  • public class PrebidMobile
    extends java.lang.Object
    • 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)