iOS

Before you begin

If you haven't already, add Adrop to Apple and make sure that Adrop Metrics is enabled in your project

Initialize Adrop

import AdropAds

// true for production
// If you are using this SDK in specific countries, 
// pass an array of ISO 3166 alpha-2 country codes.
Adrop.initialize(production: false, targetCountries: [])

Set user properties

You can set properties to describe the users of your app. Check the preset defined for the keys we support. Read more about the AdropMetrics.

import AdropAds

let key = "YOUR_PROPERTY_KEY"
let value = "YOUR_PROPERTY_VALUE"
AdropMetrics.setProperty(key: key, value: value)

Last updated