Documentation

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

Documentation

iOS SDK

SDK version 4.0
Updated: Aug 1, 2019

1. Introduction

The OfferToro iOS SDK gives iOS developers an easy way to integrate the OfferToro OfferWall module into their native iOS apps.

Before you can integrate our SDK into your projects, you must first create a publisher account and then create an app placement.

The OfferToro iOS SDK can be downloaded from your publisher account under SDK section.

Please make sure the monetization tool of the app you are using matches the required monetization tool of the integration. An integration with wrong monetization tool might not work.

2. Getting Started

OfferToro SDK supports iOS versions 8.0 and above.

To integrate the SDK into your project, please follow the simple steps described below:

  • Step 1. Add OffertoroSDK.framework to your project.
  • Step 2. Add OffertoroSDKResources.bundle to your project.

    Verify that OffertoroSDKResources.bundle is displayed into Build Phases/Copy Bundle Resources section).
  • Step 3. Add required frameworks to your project:
    1. CoreMedia.framework;
    2. AVFoundation.framework;
    3. AdSupport.framework.
    4. Webkit.framework.
  • Step 4. Add the following code into your project info.plist file:
    <key> NSPhotoLibraryUsageDescription</key>
    <string>$(PRODUCT_NAME) uses Photo Library</string>
    
    <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
    </dict>
  • Step 5. Create Objective-C bridging header file (required for Swift project)
    Objective-C bridging header file should be added to your project if it's developed in Swift.

    Note:

    The bridging header file will be generated automatically if you try to create a new Objective-C file into your Swift project. You will need to specify its location and proceed to editing the file.

    The following line should be added to Objective-C bridging header file:

    #import <OffertoroSDK/OfferToroSDK.h>