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: [])

Log Events

You can log custom event to define the users of your app. Read more about the AdropMetrics.

import AdropAds

let params = [
    "data_key_1": 1,
    "data_key_2": 1.1, 
    "data_key_3": true, 
    "data_key_4": "value_text"
]
AdropMetrics.logEvent(name: "MyEvent1", params: params)

Last updated