Yieldprobe

@available(swift 5.0)
public class Yieldprobe : NSObject

The Yieldprobe SDK.

Use this class to request bids from Yieldprobe.

Class Properties

  • Yieldprobe Singleton

    Use this instance to communicate with the Yieldprobe API.

    Declaration

    Swift

    @objc(sharedInstance)
    public static let shared: Yieldprobe

Properties

  • Yieldprobe SDK Version

    This property will return the version of the current Yieldprobe iOS SDK.

    Declaration

    Swift

    public var sdkVersion: String { get }

Object Life-Cycle

Bid Requests

  • 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: