Skip to content
This repository was archived by the owner on May 30, 2022. It is now read-only.

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Smart AdServer - MoPub SDK Adapter for Android

Deprecated

This repository and those adapters are now deprecated. They are not supported and will not be updated anymore.

Introduction

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.

Setup

  1. Install the Smart AdServer Android SDK in your Android Studio Project. You can follow the instructions in our documentation.

  2. 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

  3. (Optional) **If you plan to use Native Ads with video, you need to register SmartAdServerNativeVideoAdRenderer as a MoPubRenderer for mediated Smart AdServer native ads with video. More info on MoPub documentation. **

  4. 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.SmartAdServerBanner as the Custom Event Class.

  5. 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"}
  1. Make sure your new Custom Native Network is activated for your chosen Ad Units and Segments.

  2. That's it, you're all set, you should be able to display Smart AdServer's ads through your MoPub SDK integration.

More infos

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/

About

MoPub to Smart mediation adapter for Android.

Resources

Stars

0 stars

Watchers

7 watching

Forks

Releases

Packages

Contributors

Languages