To incorporate the Mars SDK into your AppLovin monetization setup, enable the Mars SDK ad network and add it to the appropriate ad units.
Here are the steps to follow:
Navigate to your AppLovin dashboard and select Networks tab.
Networks
Locate Click here to add a Custom Event button and click it.
Click here to add a Custom Event
Fill the Custom Network Name field. In thw iOS Adapter Class Name field set value - MediafyAppLovinAdapter. Click Save.
Custom Network Name
iOS Adapter Class Name
MediafyAppLovinAdapter
Save
Navigate to your AppLovin dashboard and select Ad Units tab.
Ad Units
Click Create ad unit.
Create ad unit
Fill Name field. Choose iOS option in Platform section and add your app's bundle ID. Choose an appropriate Ad Type option.
Name
iOS
Platform
Ad Type
Locate Custom Networks section. Set Status switch on. Add values for:
Custom Networks
Status
Click Save.
You can provide custom parameters via Parameter field during custom event setup. For that you should pass a valid JSON structure with desired values.
Parameter
banner
video
["banner", "video"]
imp[].ext.mediafy.adunitid
"56maxa"
w
h
[{ "w": 320,"h": 480},{"w": 1024,"h": 768}]
Ensure you provide sizes for your ad unit in code or via settings on the publisher's UI. It's a critical property.
{ "ad_formats": [ "banner" ], "sizes": [ { "w": 300, "h": 250 } ], "ad_unit_id": "56maxa" }
{ "ad_formats": [ "video" ], "sizes": [ { "w": 300, "h": 250 } ], "ad_unit_id": "56maxa" }
{ "ad_formats": [ "banner" ], "sizes": [ { "w": 300, "h": 250 }, { "w": 320, "h": 50 } ], "ad_unit_id": "56maxa" }
{ "ad_formats": [ "banner" ], "sizes": [ { "w": 320, "h": 480 }, { "w": 1024, "h": 768 } ], "ad_unit_id": "56maxa" }
{ "ad_formats": [ "video" ], "sizes": [ { "w": 320, "h": 480 }, { "w": 1024, "h": 768 } ], "ad_unit_id": "56maxa" }
{ "ad_formats": [ "banner", "video" ], "sizes": [ { "w": 320, "h": 480 } ], "ad_unit_id": "56maxa" }
{ "ad_formats": [ "banner", "video" ], "sizes": [ { "w": 320, "h": 480 }, { "w": 1024, "h": 768 } ], "ad_unit_id": "56maxa" }