##Who Can Use the Plugin
To use the plugin, you need to be a SpotXchange publisher and have an active account with MoPub.
Become a SpotXchange Publisher
If you are not already a SpotXchange publisher, click here to apply.
Create a MoPub Account
If you don't yet have a MoPub account, click here to sign up.
What the Plugin Does
The plugin allows the SpotX SDK and the MoPub SDK to communicate with each other seamlessly. To use this new plugin, SpotX publishers will need to integrate the SpotX SDK and the MoPub SDK into their App.
How to Install the Plugin
There are three ways to install this plugin:
Gradle Dependency (preferred)
Simply add the following to your build.gradle.
compile 'com.spotxchange:spotx-mopub-android:+'
Maven Dependency
Declare the dependency in Maven:
<dependency>
<groupId>com.spotxchange</groupId>
<artifactId>spotx-mopub-android</artifactId>
<version>1.0</version>
</dependency>
As a Library Project
Download the source code and import it as a library project in Android Studio or Eclipse. The project is available from our GitHub repository here.
Get more information on how to do this here.
Configuration
Use the custom data field to pass configuration parameters to the SpotX plugin. Get more information on MoPub custom events here. The custom data is a JSON object with the following keys:
- channel_id - Your SpotXchange publisher channel ID
- playstore_url - URL to your app in the Google Play store.
- app_domain - Internet domain for your app's website
- iab_category - IAB category used to classify your app
- in_app_browser - If true, ad interactions will be displayed in an internal browser rather than the system default
Get step-by-step instructions on how to specify parameters through the MoPub UI here.