If you haven't already, add Adrop to Apple and make sure that Adrop Metrics is enabled in your project
Initialize Adrop
importAdropAds// 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: [])
// AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
[Adrop initializeWithProduction:NO targetCountries:@[]];
return YES;
}
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.
importAdropAdslet key ="YOUR_PROPERTY_KEY"let value ="YOUR_PROPERTY_VALUE"AdropMetrics.setProperty(key: key, value: value)