Prebid

@objcMembers
public class Prebid : NSObject

Undocumented

Public Properties (SDK)

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

Public Properties (Prebid)

Public Properties (SDK)

Public Methods

Stored Bid Response

Custom Headers

  • 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. If customStatusEndpoint property is not provided, the SDK will use default endpoint - host + /status. The host value is obtained from Prebid.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. If customStatusEndpoint property is not provided, the SDK will use default endpoint - host + /status. The host value is obtained from Prebid.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 it

    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. If customStatusEndpoint property is not provided, the SDK will use default endpoint - host + /status. The host value is obtained from Prebid.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