MPS
public final class MPS: NSObject
Automates the connection to MPS and Google Ads.
-
Gets MPS Site Config from MPS Server.
Declaration
Swift
public func getSiteConfig( success: @escaping((_ json: [String: Any]) -> Void), failure: @escaping((_ error: Error) -> Void))Parameters
successSuccess block that contains MPS Site Config JSON.
failureFailure block to handle response errors.
-
Constructor. Creates the instance of SDK.
Declaration
Swift
public convenience init(url: URL, site: String)Parameters
urlURL - MPS server URL.
siteString - MPS site value.
-
Constructor. Creates the instance of SDK.
Declaration
Swift
public convenience init(url: URL, site: String, enableTestMode: Bool)Parameters
urlURL - MPS server URL.
siteString - MPS site value.
enableTestModeBool is test mode enabled.
-
Constructor. Creates the instance of SDK.
Declaration
Swift
public required init(url: URL, site: String, logLevel: MPSSDKLogLevel, enableTestMode: Bool)Parameters
urlURL - MPS server URL.
siteString - MPS site value.
logLevelMPSSDKLogLevel for library.
enableTestModeBool is test mode enabled.
-
Constructor. Creates the instance of SDK.
Declaration
Swift
public convenience init(url: URL, site: String, logLevel: MPSSDKLogLevel)Parameters
urlURL - MPS server URL.
siteString - MPS site value.
logLevelMPSSDKLogLevel for library.
-
Gets MPS page object for selected parameters.
Declaration
Swift
public func requestPageObject(mpsParams: MPSPageParameters) -> MPSPageParameters
mpsParamsMPSPageParameters - parameters for the ad.
-
Boolean to control updating Correlator between pages. Default is true.
Declaration
Swift
public var updateCorrelator: Bool -
MPS Configuration.
Declaration
Swift
public var siteConfig: [String: Any] -
Version dictionary of MPS and embedded frameworks.
Declaration
Swift
public var version: [String: String]
MPS Class Reference