Swift

  1. Sign up at https://adcel.co

  2. Add your applications and get SDK key (%SDK_KEY%) for each of them

  3. Drag and drop libAdCelVerify.a and AdCelVerify.h files into your Xcode project. "Copy items if needed" checkbox must be checked.

  4. Create a file MyProjectName-Bridging-Header.h and add to your project. Add the following line of code into this file:

#import "AdCelVerify.h"

Go to ProjectSettings->Build Settings->Objective-C Bridging Header and insert the full path to the "MyProjectName-Bridging-Header.h" file.

5.  Add the following code to your application delegate:

@UIApplicationMain

class AppDelegate: UIResponder, UIApplicationDelegate {

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

       

        //AdCelVerify.setLogging(true)

        AdCelVerify.start(withAppId: "%SDK_KEY%")

       

        . . .

        return true

    }

. . .

}

Objective C

  1. Sign up at https://adcel.co

  2. Add your applications and get SDK key (%SDK_KEY%) for each of them

  3. Drag and drop libAdCelVerify.a and AdCelVerify.h files into your Xcode project. "Copy items if needed" checkbox must be checked.

  4. Add the following code to your application delegate:

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

{  

    //[AdCelVerify setLogging:YES];

    [AdCelVerify startWithAppId:@"%SDK_KEY%"/* SDK key */];

    . . .

   

    return YES;

}

. . .

@end
Did this answer your question?