This repository and those adapters are now deprecated. They are not supported and will not be updated anymore.
The Smart AdServer Android SDK can be used with MoPub SDK through Custom Event Classes provided in this repository. Supported Ad Formats are Banners, Fullscreen, Rewarded Video and Native Ads.
-
Install the Smart AdServer Android SDK in your Android Studio Project. You can follow the instructions in our documentation.
-
Checkout this repository and merge the src/ folder (containing adapter classes) into the src/ folder of your project. Folder structure should be as follows : com/mopub/mobileads for all custom event (banner, interstitial, rewarded video, native) and utility classes. com/mopub/nativeads for the specific MoPub renderer class for native ads with video content
-
(Optional) **If you plan to use Native Ads with video, you need to register
SmartAdServerNativeVideoAdRendereras a MoPubRenderer for mediated Smart AdServer native ads with video. More info on MoPub documentation. ** -
On your MoPub's dashboard, create a new Custom Native Network under the Networks tab, and fill your Ad Units with the relevant Custom Event Classes. For example for a banner Ad Unit, set
com.mopub.mobileads.SmartAdServerBanneras the Custom Event Class. -
Fill the Custom Event Class Data with the informations of your Smart AdServer's placements. You must use a valid JSON String and the 4 parameters : siteid, pageid, formatid and target must exist in this string. If you want to leave a parameter empty (target for instance) feel free to do it, as long as all keys exist.
{"siteid":"your-siteID","pageid":"your-pageID","formatid":"your-formatID","target":"your-target-or-empty"}
-
Make sure your new Custom Native Network is activated for your chosen Ad Units and Segments.
-
That's it, you're all set, you should be able to display Smart AdServer's ads through your MoPub SDK integration.
You can find more informations about the Smart AdServer Android SDK and the MoPub SDK Custom Events in the official documentation: http://documentation.smartadserver.com/DisplaySDK/