Yieldprobe
@available(swift 5.0)
public class Yieldprobe : NSObject
The Yieldprobe SDK.
Use this class to request bids from Yieldprobe.
-
Yieldprobe Singleton
Use this instance to communicate with the Yieldprobe API.
Declaration
Swift
@objc(sharedInstance) public static let shared: Yieldprobe
-
Yieldprobe SDK Version
This property will return the version of the current Yieldprobe iOS SDK.
Declaration
Swift
public var sdkVersion: String { get }
-
Configure Yieldprobe
Pass a
Configuration
to modify the behavior of Yieldprobe.Declaration
Swift
public func configure(using configuration: Configuration)
-
Request a Bid from Yieldprobe for the specified ad slot ID.
This method will perform an HTTP request to fetch the most recent bid for the ad slot identified by
slotID
.Declaration
Swift
public func probe (slot slotID: Int, timeout: TimeInterval? = nil, queue: DispatchQueue? = nil, completionHandler: @escaping (Result<Bid,Swift.Error>) -> Void)
Parameters
slotID
The ad slot ID used to request a bid.
timeout
(optional) The maximum time interval to deliver an ad.
queue
(optional) The target DispatchQueue for the completion handler.
completionHandler
The code that will be invoked when a request was either successful or failed. Parameters: