The following instructions assume you are already familiar with the AdMob mediation network and have already integrated the AdMob iOS SDK into your application. Otherwise, please start by visiting AdMob site and reading the instructions on how to add AdMob mediation code into your app.
- Login into your [Magnite developer's account](TODO:PROVIDE URL TO PORTAL)
- Add your application and get its App ID
The easiest way is to use CocoaPods, just add to your Podfile the dependency
pod 'magnite-admob-mediation'
- Login into your Admob account
- From the left menu select "Mediation"
- Press "CREATE MEDIATION GROUP" unless you already have prepared one
- Fill out all the fields regarding to your ad parameters
- Select your previously created ad unit pressing "ADD AD UNITS"
- On the "Waterfall" panel press "ADD CUSTOM EVENT"
- Fill in "Label" and "eCPM" as you need
- Fill in the appeared fields "Class Name" and "Parameter" regarding to your ad type:
| Ad Type | Class Name | Parameter | Options |
|---|---|---|---|
| Interstitial | MagniteAdmobFullscreenAdapter | {"appId":"your_id_from_portal", "adTag":"any_your_tag", "interstitialMode":"OVERLAY", "minCPM":0.02} | interstitialMode can be OVERLAY or VIDEO |
| Banner/Medium Rectangle | MagniteAdmobInlineAdapter | {"appId":"your_id_from_portal", "adTag":"any_your_tag", "minCPM":0.02} | |
| Rewarded | MagniteAdmobRewardedAdapter | {"appId":"your_id_from_portal", "adTag":"any_your_tag", "minCPM":0.02} | |
| Native | MagniteAdmobNativeAdapter | {"appId":"your_id_from_portal", "adTag":"any_your_tag", "minCPM":0.02, "nativeImageSize":"SIZE150X150", "nativeSecondaryImageSize":"SIZE100X100"} | nativeImageSize and nativeSecondaryImageSize can be any of SIZE72X72, SIZE100X100, SIZE150X150, SIZE340X340, SIZE1200X628(for main image only) |
All parameters in the "Parameter" field are optional except the "appId" which you must provide in any case.