MediaBrix Mediation Integration Guide for SDK 6.4 and Below
This guide will instruct you step-by-step on how to set MediaBrix live as an Ad Network on the ironSource Mediation platform. The integration process is completed in a few simple steps:
- Create an MediaBrix Account
- Submit Your Application to MediaBrix
- Activate MediaBrix in Your ironSource Network Setup Module
- Add the MediaBrix Adapter to Your Build
- Update AndroidManifest.xml
Before You Start
Make sure you have correctly integrated ironSource’s Rewarded Video into your application. Integration is outlined here.
Step 1. Create an MediaBrix Account
- Create an account with MediaBrix. You can do so here.
- Once your account has been verified, log in to their partner login here.
Step 2. Submit Your Application in MediaBrix
To gain access to MediaBrix’s inventory within ironSource‘s Mediation platform, you must first submit your apps in your MediaBrix account.
To add your app:
- Click ‘+ Submit App‘ on the left menu. You will be redirected to the below page:
- Enter the following information to complete the App Info form:
- Select Rally for Interstitial or Rescue for Rewarded Video when requested to select what MediaBrix product you’d like to serve on your app.
You will then see a dedicated form to fill out the details for the Rally and/or Rescue ad unit.
Once you’ve filled out all the necessary information to rescue your users, click ‘Next Page‘. - Enter your app’s technical information to finish adding your app. You will have to specify the following:
- Your App Platform (XCode Direct for iOS developers, Android Direct for Android developers, Unity or Adobe Air)
- Under 3rd Party, select ironSource
- Upload Your App’s Logo or IconOnce you’ve entered all the above, click ‘Submit‘.
Note: Note: MediaBrix will send you your application credentials within 1-2 business days of your app’s submission.
Step 3. Activate MediaBrix in Your ironSource Network Setup Module
There are a few pieces of data from your MediaBrix account which need to be inserted into your ironSource Network Setup Module in order for MediaBrix to work correctly in connection with ironSource:
Important! You must contact the MediaBrix team for the below account information.
Base URL | https://mobile.mediabrix.com/v2/manifest |
Reporting Property | This information will be provided to you in the MediaBrix on-boarding package. |
Consumer Key | This information will be provided to you in the MediaBrix on-boarding package. |
Consumer Secret | This information will be provided to you in the MediaBrix on-boarding package. |
Access Token | This is the unique identifier for token credentials in MediaBrix’ system. Contact the MediaBrix team for more details. |
Access Token Secret | This information will be provided to you in the MediaBrix on-boarding package. |
App ID | This is a unique identifier for your MediaBrix account, which allows your ironSource Mediation Platform to import performance data from your MediaBrix account to use in reporting & optimization. This information will be provided to you in the MediaBrix on-boarding package. |
Zone ID | This is the unique Zone which MediaBrix will deliver ads to. This information will be provided to you in the MediaBrix on-boarding package. |
Once you obtain this information from the MediaBrix team , you must configure MediaBrix’ Parameters in your ironSource Account. By adding the above information correctly, you will be able to take full advantage of MediaBrix’s ad inventory and reporting data on ironSource’s Mediation platform.
Configure MediaBrix’s Parameters into ironSource Account
- Once you have all of these parameters, log in to your ironSource account and go to ‘Monetize‘ ➣ ‘Mediation‘ ➣ ‘Network Setup‘.
- Select MediaBrix in the Available Ad Networks table and enter the MediaBrix’ Base URL, Consumer Key, Consumer Secret, Access Token, Access Token Secret and click ‘Save‘.
- Select the application you’d like to run MediaBrix’ Rewarded Video or Interstitials on.
- Go to MediaBrix in the Setup list and click on the ‘Define’ icon:
- Enter the MediaBrix’ App ID and Reporting Property; under Rewarded Video or Interstitial Settings, enter the Ad Zone. Set to ‘Active‘ and click ‘Save‘.
- You will then see MediaBrix activated for Mediation on the Setup dashboard.
- New! 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 MediaBrix Adapter to Your Build
Android
ironSource supports both Gradle dependencies and manual download mechanisms.
Gradle:
- Make sure the following Maven URL exist in your build.gradle script of your app module (should appear only once for all the adapters).
repositories { maven { url "https://dl.bintray.com/supersonic/android-adapters" } }
- Add the adapter’s Maven name to your build.gradle script of your app module.
dependencies { compile 'com.supersonic.adapters:mediabrixadapter:2.1.2@jar' }
Manual download:
- Download the MediaBrix Adapter:
Add the MediaBrix Adapter to your build. You can find the latest MediaBrix Adapter here.
Important! The MediaBrix Adapter already contains the MediaBrix SDK. You DON’T need to additionally add the MediaBrix SDK directly. - Add the MediaBrix Adapter to your Project:
After you download the Adapter; drop the MediaBrixAdapter jar into the libs folder in your Android Project.
- Make sure you add the following to your Gradle build file in your app under the dependencies section:
compile fileTree(dir: 'libs', include: ['*.jar'])
Step 5. Update AndroidManifest.xml
Manifest Permissions:
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Manifest Activities:
Add the following activities inside the <application> tag on your manifest:
<activity android:name="com.mediabrix.android.service.AdViewActivity" android:configChanges="orientation|screenSize|keyboard" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" > </activity> <service android:name="com.mediabrix.android.service.MediaBrixService" > </service>
Verify Your Ad-Network Integration
The ironSource SDK provides an easy way to verify that your mediation integration was completed successfully. To verify your ironSource and additional Ad Networks integration, follow this document.
Done!
You are now all set to deliver MediaBrix Ads within your application!
What’s Next?
To add additional Rewarded Video Ad networks, follow the integration guides on our Supported Ad Networks list.