Documentation

Here you will find all the info you need to integrate the various monetization tools OfferToro has to offer.

iOS SDK

SDK version 3.6
Updated: Oct 13, 2017

5. Non-Incent OfferWall

  • Step 1. Implement your delegate

    The OfferToro SDK gives a possibility to be notified of events happening in the Non-Incent OfferWall lifecycle via the delegate OfferToroDelegate.

    Objective-C:

    [OfferToro sharedInstance].delegate = YOUR_DELEGATE

    Swift:

    OfferToro.sharedInstance()?.delegate = YOUR_DELEGATE

    Your delegate will be notified of all possible events listed below:

    - (void)offertoroNIInitSuccess;

    // Invoked when Non-Incent OfferWall is successfully initialized

    - (void)offertoroNIInitFail:(NSError *)error;

    // Invoked when Non-Incent OfferWall initialization fails

    - (void)offertoroNIOpened;

    // Invoked when Non-Incent OfferWall is presented

    - (void)offertoroNIClosed;

    // Invoked when Non-Incent OfferWall is dismissed

  • Step 2. Configure the Non-Incent OfferWall module

    Non-Incent OfferWall module should be initialized on the application launch.

    Objective-C:

    [[OfferToro sharedInstance] initNIWithAppId:APP_ID userId:USER_ID secretKey:SECRET_KEY];

    Swift:

    OfferToro.sharedInstance()?.initNI(withAppId: APP_ID, userId: USER_ID, secretKey: SECRET_KEY)

    Note:

    - APP_ID and SECRET_KEY can be found in your OfferToro account, under your "App Placement" settings.

    - USER_ID, is a parameter which should be passed from your end as an ID for each end user of your app. A common practice is to use the Advertising Identifier IDFA.

  • Step 3. Present the Non-Incent OfferWall

    To present Non-Incent OfferWall, presentNIInViewController method should be called:

    Objective-C:

    [[OfferToro sharedInstance] presentNIInViewController:VIEW_CONTROLLER animation:YES];

    Swift:

    OfferToro.sharedInstance()?.presentNI(inViewController: VIEW_CONTROLLER, animation: true)