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.

2. Enable in IronSource Mediation Group

Select Mediation → Management → Mediation from the left menu and configure the mediation group.

3. Integrate SDK

Integrate the Android TradPlus SDK (Packaging Platform) as per the standard process, and introduce dependencies. Take version V14.1.10.1 as an example.

3.1 Dependency Libraries

Add Maven repositories to the build.gradle file at the project level in the buildscript and allprojects sections:

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 custom_mediation_1.0.0.aar

Place custom_mediation_1.0.0.aar in the assets/libs folder, as shown below:

Download custom_mediation_1.0.0.aar

3.3 Check files like mainTemplate.gradle.

3.4 Add Dependencies

Developers should go to the TradPlus SDK Download Platform, select the integrated version, and click to generate integration code. For example, using version V14.1.10.1:

dependencies {
...

// 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 the version is synchronized with the main package)
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 Document.