Skip to main content

IronSource Mediation Integration 1.0.0

Adaptation Overview

  • Supported Ad Types: Banner, Interstitial, Rewarded Video
  • Supported Ad Platforms (V1.0.0): TradPlus Adx
  • Compatible IronSource Version: V8.1.0+
  • Compatible TradPlus Version: V14.1.10.1+

IronSource Adapter Integration Steps

1. IronSource Backend Configuration

1.1 Add Custom Adapter

Log in to the IronSource backend, go to the left menu and select Mediation → Setup → SDK networks. Choose your application and add a Custom Adapter under Manage Networks.

1.2 Enter the network key

Enter the network Key obtained from the IronSourceCustomAdapter registration page.

Method 1: Directly enter 15bff7a51

  • Network name (abbrev.)* Input: HKWL. (Required)

  • App level Input:appid。(Required)

  • Instance level Input:placementid.(Required)

  • Fill in the rest according to the actual situation.

1.3 Locate the added custom ad source and click Edit to configure settings.

1.4 Fill in the following fields on the edit page:

  • AppID: TradPlus backend AppID
  • PlacementID: TradPlus backend Ad Placement ID

1.5 Click Save to apply changes.

2. Enable Mediation Group in IronSource

  • Go to Mediation → Management → Mediation in the left menu and configure the mediation group.

3. SDK Integration

3.1 Dependency Libraries

Add the Maven repository in both the buildscript and allprojects sections of your project-level build.gradle file:

buildscript {
repositories {
...
mavenCentral()
// IronSource
maven { url 'https://android-sdk.is.com/' }
}
}

allprojects {
repositories {
...
mavenCentral()
// IronSource
maven { url 'https://android-sdk.is.com/' }
}
}

3.2 Add Dependencies

Add Custom Adapter dependencies in the app/build.gradle file:

dependencies {
...
implementation(name: "custom_mediation_1.0.0", ext: 'aar')

// TradPlus
implementation 'com.tradplusad:tradplus:14.1.10.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'

// IronSource
implementation 'com.ironsource.sdk:mediationsdk:8.1.0'
implementation 'com.tradplusad:tradplus-ironsource:10.14.1.10.1'
implementation 'com.google.android.gms:play-services-appset:16.0.0'
implementation 'com.google.android.gms:play-services-ads-identifier:17.0.0'
implementation 'com.google.android.gms:play-services-basement:17.5.0'

// TP Exchange (Ensure it stays in sync with the main package version)
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.tradplusad:tp_exchange:40.14.1.10.1'
}

4. Obfuscation Configuration

After enabling obfuscation, add the following rules in proguard-rules.pro:

-keep public class com.tradplus.** { *; }
-keep class com.tradplus.ads.** { *; }
-keep class com.ironsource.adapters.custom.hkwl.** {*;}

5. Resource Optimization

Advertising SDK resources cannot be obfuscated. If using a third-party resource shrinking framework, whitelist the SDK's resources:

R.string.tp_*
R.drawable.tp_*
R.layout.tp_*
R.id.tp_*

6. Configuring Privacy Policies for International Markets

Since Custom Adapter cannot obtain CCPA, COPPA, or GDPR settings through the IronSource mediation API, you need to configure these settings before initializing the IronSource SDK.

Privacy Policy Documentation

7. Test Mode

Use the test mode of TradPlus for testing, Test Mode Documentation