To run the example project, clone the repo, and run pod install
from the Example directory first.
IdxDmpSdk is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'IdxDmpSdk'
class ViewController: UIViewController {
var dmp: DataManagerProvider?
...
override func viewDidLoad() {
super.viewDidLoad()
self.dmp = DataManagerProvider(providerId: providerId, monitoringLabel: "My app name") {_ in
// Success callback
}
}
...
@IBAction func handleShowAd() {
guard let dmp = self.dmp else {
return
}
let adRequest: GAMRequest = GAMRequest()
adRequest.customTargeting = ["dxseg": dmp.getDefinitionIds()]
}
...
}
Brainway LTD, https://brainway.co.il/
IdxDmpSdk is available under the MIT license. See the LICENSE file for more info.