Configuring the Integration

Introduction

To work with the DT Offer Wall Edge using the Fyber SDK you must ensure that you have:

Note

Before you can configure the DT Offer Wall Edge, you must ensure that you have your virtual currency configured. If you have not already done so, you can modify your App Settings.

Step 1: Enabling the DT Offer Wall Edge

  1. Go to the Dashboard and click on your selected App.
  2. Please make sure to enable the app and select your preferable metrics according to the getting started article under Creating Placements.

Step 2: Displaying the DT Offer Wall Edge

Follow these steps to set up the display.

The SDK header is included in your View Controller:

Objective-C
#import "FyberSDK.h"

The following code snippet must be added to display DT Offer Wall Edge:

Objective-C Swift
// Creating an instance of the FYBOfferWallViewController
FYBOfferWallViewController *offerWallViewController = [FyberSDK offerWallViewController];

If YES the offer wall will be dismissed after clicking on an offer
offerWallViewController.shouldDismissOnRedirect = YES;

// Showing the Offer Wall
[offerWallViewController presentFromViewController:self animated:YES completion:^{>

// The Offer Wall is successfully presented}
dismiss:^(NSError *error) {

// The Offer Wall is dismissed
// If an error occurred, the error parameter describes the error otherwise is nil

The optional boolean property shouldDismissOnRedirect is used to control the behavior of of the FYBOfferWallViewController custom class.

This is set to No by default, and DT Offer Wall Edge remains open after the user is redirected to an offer. If this is set to Yes, DT Offer Wall Edge is automatically dismissed.

Requesting a Placement

If you are using Placements on the DT Offer Wall you can request a Placement by passing the Placement ID.

Objective-C Swift
FYBRequestParameters *parameters = [[FYBRequestParameters alloc] init];
        parameters.placementId = @"my_placement";
        [[FyberSDK offerWallViewController] presentFromViewController:viewController
                                                           parameters:parameters
                                                             animated:YES completion:^{}
                                                              dismiss:^(NSError *error) {}];

Optional Configuration

By default, DT Offer Wall Edge is dismissed if it is not fully loaded after 20 seconds.

If you want to change this, add the following key in your application's Info.plist.

Key Type Example Description
FYBOFWRequestTimeout Number 20 Define the time interval after which the DT Offer Wall is dismissed if it is not fully loaded.
 

Step 3: Choose Your Rewarding Strategy

First, set up the developer Dashboard for the option you choose and then add the code necessary on the SDK side.

There are two options when it comes to rewarding the users with virtual currency: 

Option 1: Using the Virtual Currency Server (VCS)

If you do not run your own servers, Fyber can provide you with virtual currency hosting. This is the default setting for mobile applications in the developer dashboard.

Click here for details of VCS Hosting.

Option 2: Using your Own Server (Server Side)

If you are interested in using your own server to handle virtual rewarding to your users, Fyber can interact with it after you've set up your own server.

Click here for details of Server-Side Hosting.

Note

You must choose one of the two options. You cannot have both.

For more details on Reward Handling, click here.

Note

Make sure to read the Rewarding your Users section to discover the advantages of each method.

DT Offer Wall Sample App for iOS

Fyber's sample app can assist you in using DT Offer Wall within your app.

In addition, use the Fyber sample app as a reference during implementation to troubleshoot possible integration issues.

Sample App

Click here to view and download the sample app repository.

Back to Top ⇧