MPS
public 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 required init(url: URL, site: String, options: MPSOptions)Parameters
urlURL - MPS server URL.
siteString - MPS site value.
optionsMPSOptions for library.
-
Gets MPS page object for selected parameters.
Declaration
Swift
public func requestPageObject(mpsParams: MPSPageParameters) -> MPSPageParameters
mpsParamsMPSPageParameters - parameters for the ad.
-
MPS Configuration.
Declaration
Swift
public var siteConfig: [String: Any] -
Version dictionary of MPS and embedded frameworks.
Declaration
Swift
public var version: [String: String]
-
Boolean to control updating Correlator between pages. Default is true.
Declaration
Swift
public var updateCorrelator: Bool
MPS Class Reference