Prebid
@objcMembers
public class Prebid : NSObject
Undocumented
-
Undocumented
Declaration
Swift
public static let bidderNameAppNexus: String
-
Undocumented
Declaration
Swift
public static let bidderNameRubiconProject: String
-
Undocumented
Declaration
Swift
public var timeoutUpdated: Bool
-
Undocumented
Declaration
Swift
public var prebidServerAccountId: String
-
Undocumented
Declaration
Swift
public var pbsDebug: Bool
-
Undocumented
Declaration
Swift
public var customHeaders: [String : String]
-
Undocumented
Declaration
Swift
public var storedBidResponses: [String : String]
-
This property is set by the developer when he is willing to assign the assetID for Native ad.
Declaration
Swift
public var shouldAssignNativeAssetID: Bool
-
This property is set by the developer when he is willing to share the location for better ad targeting
Declaration
Swift
public var shareGeoLocation: Bool
-
Set the desidered verbosity of the logs
Declaration
Swift
public var logLevel: LogLevel { get set }
-
Array containing objects that hold External UserId parameters.
Declaration
Swift
public var externalUserIdArray: [ExternalUserId]
-
Undocumented
Declaration
Swift
public static let shared: Prebid
-
Undocumented
Declaration
Swift
public var version: String { get }
-
Undocumented
Declaration
Swift
public var omsdkVersion: String { get }
-
Undocumented
Declaration
Swift
public var prebidServerHost: PrebidHost { get set }
-
Undocumented
Declaration
Swift
public var customStatusEndpoint: String? { get set }
-
Undocumented
Declaration
Swift
public var timeoutMillis: Int { get set }
-
Undocumented
Declaration
Swift
public var timeoutMillisDynamic: NSNumber?
-
Undocumented
Declaration
Swift
public var storedAuctionResponse: String?
-
Undocumented
Declaration
Swift
public var useCacheForReportingWithRenderingAPI: Bool
-
Undocumented
Declaration
Swift
public var creativeFactoryTimeout: TimeInterval
-
Undocumented
Declaration
Swift
public var creativeFactoryTimeoutPreRenderContent: TimeInterval
-
Undocumented
Declaration
Swift
public var useExternalClickthroughBrowser: Bool
-
Undocumented
Declaration
Swift
public var impClickbrowserType: ClickbrowserType
-
Undocumented
Declaration
Swift
public var debugLogFileEnabled: Bool { get set }
-
Undocumented
Declaration
Swift
public var locationUpdatesEnabled: Bool { get set }
-
Undocumented
Declaration
Swift
public var includeWinners: Bool
-
Undocumented
Declaration
Swift
public var includeBidderKeys: Bool
-
Undocumented
Declaration
Swift
public func setCustomPrebidServer(url: String) throws
-
Undocumented
Declaration
Swift
public func addStoredBidResponse(bidder: String, responseId: String)
-
Undocumented
Declaration
Swift
public func clearStoredBidResponses()
-
Undocumented
Declaration
Swift
public func getStoredBidResponses() -> [[String : String]]?
-
Undocumented
Declaration
Swift
public func addCustomHeader(name: String, value: String)
-
Undocumented
Declaration
Swift
public func clearCustomHeaders()
-
Initializes PrebidMobile SDK.
Checks the status of Prebid Server. The
customStatusEndpoint
property is used as server status endpoint. IfcustomStatusEndpoint
property is not provided, the SDK will use default endpoint -host
+/status
. Thehost
value is obtained fromPrebid.shared.prebidServerHost
.Checks the version of GMA SDK. If the version is not supported - logs warning.
Use this SDK initializer if you’re using PrebidMobile with GMA SDK.
Declaration
Swift
public static func initializeSDK(_ gadMobileAdsObject: AnyObject? = nil, _ completion: PrebidInitializationCallback? = nil)
Parameters
gadMobileAdsObject
GADMobileAds object
completion
returns initialization status and optional error
-
Initializes PrebidMobile SDK.
Checks the status of Prebid Server. The
customStatusEndpoint
property is used as server status endpoint. IfcustomStatusEndpoint
property is not provided, the SDK will use default endpoint -host
+/status
. Thehost
value is obtained fromPrebid.shared.prebidServerHost
.Checks the version of GMA SDK. If the version is not supported - logs warning.
Use this SDK initializer if you’re using PrebidMobile with GMA SDK.
Declaration
Swift
public static func initializeSDK(gadMobileAdsVersion: String? = nil, _ completion: PrebidInitializationCallback? = nil)
Parameters
gadMobileAdsVersion
GADMobileAds version string, use
GADGetStringFromVersionNumber(GADMobileAds.sharedInstance().versionNumber)
to get itcompletion
returns initialization status and optional error
-
Initializes PrebidMobile SDK.
Checks the status of Prebid Server. The
customStatusEndpoint
property is used as server status endpoint. IfcustomStatusEndpoint
property is not provided, the SDK will use default endpoint -host
+/status
. Thehost
value is obtained fromPrebid.shared.prebidServerHost
.Use this SDK initializer if you’re using PrebidMobile without GMA SDK.
Declaration
Swift
public static func initializeSDK(_ completion: PrebidInitializationCallback? = nil)
Parameters
completion
returns initialization status and optional error