DT Exchange integration

Read time 5 minutes

This guide instructs you step-by-step on how to set DT Exchange live as an Ad Network on the Unity LevelPlay Mediation.

Prerequisites

Ensure that you have correctly integrated ironSource SDK's Rewarded VideoInterstitial or Banner into your application.

Step 1. Create an DT Exchange Account

  1. Create an account with DT Exchange. You can do so here.
  2. After your account has been verified, you can log in to their partner login here.

Step 2. Create an Application and Placements in DT Exchange

To gain access to DT Exchange inventory within ironSource platform, you must first add your app and set up placements in your DT Exchange account.

  1. Add Your App
    1. Log into your DT Exchange account, navigate to 'Monetization' > 'New App Management'. Select ‘Add App’.
    2. Define the settings of your app: Choose platform and category
    3. Add placements - Rewarded, Interstitial, Banner, MREC
    4. When finished setting up, click 'Create App'

Step 3. Activate DT Exchange in the SDK Networks Setup Module

There are a few parameters from your DT Exchange account which need to be inserted into your SDK Network Setup Module on the ironSource platform in order for DT Exchange to work correctly in connection with ironSource SDK:

Publisher ID,  Consumer Key,  Consumer SecretThis is a unique identifiers for your DT Exchange account, which allows the ironSource Platform to import performance data from your DT Exchange account to use in reporting & optimization.
App IDThis is a unique identifier of your application in DT Exchange system.
Placement IDThis is the unique spot which DT Exchange will deliver ads to.

After you obtain this information, you must configure DT Exchange Parameters in your ironSource Account. By adding the above information correctly, you will be able to take full advantage of DT Exchange ad inventory and reporting data on the ironSource platform.

  1. Publisher ID, Consumer Key, Consumer Secret Navigate to the 'User Profile' page and you will locate them on the bottom part of the page under 'Reporting API Keys'
  2. App ID, Placement ID Navigate to 'Inventory' > 'Manage Apps & Sites' > Select the relevant application from the list > Select 'Integration Options' from menu on the right.

Configure DT Exchange Parameters into ironSource Account

  • After you have all of these parameters, log in to your ironSource account and go to 'Monetize' > 'Mediation' > 'SDK Networks'.
  • Select DT Exchangefrom the list of Available Ad Networks and enter the DT Exchange 'Publisher ID', 'Consumer Key', 'Consumer Secret'. Click 'Save'.
  • DT Exchange will then be enabled in the Available Ad Networks table.
  • Make sure to define the app on which you’d like to run Unity LevePlay with DT Exchange. Go to the DT Exchange row on the Setup list of Ad Networks and click on the 'Setup' button.
  • Insert the 'App ID' on the application level, and 'Placement ID' for the relevant Ad Units.
  • Click 'Save'.
  • Activate requested Ad Units.
  • Verify your integration with the Reporting API; this column will check your integration through the Reporting API and return three possible responses: Verified, Failed and No Response. Double check your integration and the information you entered above; then click 'Retry' until you see 'Verified'.

Step 4. Add the DT Exchange Adapter to Your Build

  1. Download the DT Exchange ANE: Add the DT Exchange Adobe Native Extension to your build. You can find the latest DT Exchange ANE here. Important! Make sure you download both Adapter and SDK.

  2. Add the ANE to your project by clicking on project properties > Flex build path > Native Extension Tab. Click on ‘Add ANE’ and choose file you downloaded in the previous step.

  3. Make sure you mark the ANE to be packaged into your application on Flex Build Packaging > Native Extension Tab, select the checkbox of ‘package‘.

  4. Make sure to add the following extensions, for iOS and Android:

    <extensionID>com.ironsource.adobeair.fyber</extensionID>
    <extensionID>com.ironsource.adobeair.fybersdk</extensionID>
    
  5. For Android Only Adding the content of the fyber.zip file onto the src folder of the adobe project

    • On the “module settings”, select Android.
    • Click on the “+” icon, select the path where you saved your files
    • Add the files one by one and make sure they are under the “src” folder
  6. For Android Only, Update AndroidManifest.xml

     <!-- Fyber -->
            <activity
                android:name="com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity"
                android:configChanges="keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
                android:hardwareAccelerated="true"
                android:screenOrientation="fullUser" />
            <activity
                android:name="com.fyber.inneractive.sdk.activities.InneractiveFullscreenAdActivity"
                android:configChanges="keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
                android:hardwareAccelerated="true"
                android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
            <activity
                android:name="com.fyber.inneractive.sdk.activities.InneractiveRichMediaVideoPlayerActivityCore"
                android:configChanges="keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
                android:hardwareAccelerated="true"
                android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
            <activity
                android:name="com.fyber.inneractive.sdk.activities.InternalStoreWebpageActivity"
                android:configChanges="keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
                android:excludeFromRecents="true"
                android:screenOrientation="sensor"
                android:theme="@android:style/Theme.Translucent.NoTitleBar" />
            <activity
                android:name="com.fyber.inneractive.sdk.activities.FyberReportAdActivity"
                android:configChanges="keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"
                android:hardwareAccelerated="true"
                android:screenOrientation="fullUser" />
    
  7. For iOS Only  Add the dependencies folder to your project:

    1. On the “module settings”, select iOS.
    2. Click on the "+" icon and select the path where you saved your ios dependencies.
    3. Select inside the folder “devices” and add a dot “.” to include all files.