Skip to content

TopOn Mediation Support ​

Integrate SDK and Mediation Adapter ​

To integrate the MartoTopOnAdapter through CocoaPods:

1.Add the following line to your Podfile:

http
//TopOnSDK > 6.4.9.3
pod 'MartoTopOnAdapter'

//TopOnSDK <= 6.4.9.3
pod 'MartoTopOnAdapter/6493'

2.Run the following on the command line:

http
pod install --repo-update

Configure your Mediation Settings ​

Click on the "Network" link on the side bar menu and Select "+ Custom Netwrok Firm"

addCustomEvent1

Then Fill the "iOS Adapte's class names" And Submit

Ad TypeClass Name
BannerMTTopOnBannerAdapter
NativeMTTopOnNativeAdapter
InterstitialMTTopOnInterstitialAdapter
Rewarded VideoMTTopOnRewardedAdapter
SplashMTTopOnAppOpenAdapter

addCustomEvent2

Click on the "Mediation" link on the side bar menu and "Add Ad Soure"

  • Netwrok Firm select Custom Netwrok Firm (Marto)
  • App Dimension Parameters add a Param appid and fill the your marto appid
  • Slot ID fill the your marto placement id
  • Then Submit

addCustomEvent3

If you need to set the banner size:

Ad Source Dimension Parameters add a Param bannerSize and fill the size

  • Supported bannerSize values: "320x50" or "320x100" or "300x250"

addCustomEvent3

CustomExtras ​

Ad network extras sent to MartoSDK

objc
NSMutableDictionary * loadConfigDict = [NSMutableDictionary dictionary];

//set bannerSize (only Banner)
//Supported bannerSize values: "320x50" or "320x100" or "300x250"
loadConfigDict[@"MT_BannerSize"] = @"320x50"

//set mute
loadConfigDict[@"MT_isMute"] = @(YES);

//load Ad
[[ATAdManager sharedManager] loadADWithPlacementID:self.pid extra:loadConfigDict viewController:self delegate:self];