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

Repository files navigation

Smart AdServer - MoPub SDK Adapter for iOS

Deprecated

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

Introduction

The Smart Display SDK (7.14+) 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 Display SDK in your Xcode project. This can be done using Cocoapods (by installing the Smart-Display-SDK pod) or by following the instructions in our documentation.

  2. Checkout this repository and copy the Custom Event Classes you need into your XCode Project.

  • SASMopubBannerCustomEvent for banner ads.
  • SASMopubInterstitialCustomEvent for interstitial ads.
  • SASMopubRewardedVideoCustomEvent for rewarded videos.
  • SASMopubNativeAdAdapter and SASMopubNativeAdCustomEvent for native ads.
  • SASMopubAdapterConfigurationin and SASMopubUtils any cases.
  1. (Optional) If you plan to use Native Ads, don't forget to add SASMopubNativeAdCustomEvent as a supportedCustomEvent to your MPNativeAdRendererConfiguration or its subclass.
let config = MPStaticNativeAdRenderer.rendererConfiguration(with: settings)!
config.supportedCustomEvents = [ "SASMopubNativeAdCustomEvent" ]
  1. 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 SASMopubBannerCustomEvent as the Custom Event Class.

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

Known limitations

  • Clicks counting : you may experience discrepancies between MoPub and Smart AdServer click statistics. This is due to the fact that MoPub can only count one click per ad whereas Smart AdServer is able to count multiple clicks on the same ad.

More infos

You can find more informations about the Smart Display SDK and the MoPub SDK Custom Events in the official documentation: http://documentation.smartadserver.com/displaySDK/

About

MoPub to Smart mediation adapter for iOS.

Resources

Stars

0 stars

Watchers

7 watching

Forks

Releases

Packages

Contributors

Languages