AdMob Ad Network Integration
This guide explains how you can set up an AdMob Ad Network with the Smaato SDK for both Android and iOS platforms.
Client-Side Mediation Intro
Client Side Mediation (aka SDK mediation) enables you to mediate owned third-party ad network accounts. In order to do this, you simply need to integrate the Smaato SDK as well as the respective third party SDK as described. Finally, you will also need to configure your ad network mediation inside of your SPX account via the “Networks” tab.
All libraries need to be explicitly initialized.
Please consult the corresponding AdMob initialization guides for Android and/or iOS.
First, add the following lines to your
<!--GOOGLE ADMob Include the AdActivity --> <activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:theme="@android:style/Theme.Translucent" />
Now, add the following line to your project level
Inside the ZIP file, you will find the following plugins:
- To add Google AdMob and Mopub: Add the respective plugins, as well as the respective third-party SDK.
- To add a custom SDK network: Append your custom network class to the
SOMAMediationPluginclass, and define your public method with a parameter to receive the data you defined in your SPX custom SDK network account.
- If you want to mediate interstitial ads, please override the
presentInterstitialmethod and implement your preferred interstitial presentation method.
Modified: June 11, 2019 at 6:55 pm