Skip to content

TopOn Mediation Support

Integrate SDK and Mediation Adapter

To integrate the CartyTopOnAdapter through CocoaPods:

1.Add the following line to your Podfile:

http
//TopOnSDK > 6.4.9.3
pod CartyTopOnAdapter

//TopOnSDK <= 6.4.9.3
pod 'CartyTopOnAdapter/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
BannerCartyTopOnBannerAdapter
NativeCartyTopOnNativeAdapter
InterstitialCartyTopOnInterstitialAdapter
Rewarded VideoCartyTopOnRewardedAdapter
SplashCartyTopOnAppOpenAdapter

addCustomEvent2

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

  • Netwrok Firm select Custom Netwrok Firm (Carty)
  • App Dimension Parameters add a Param appid and fill the your carty appid
  • Slot ID fill the your carty 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 CartySDK

objc
NSMutableDictionary * loadConfigDict = [NSMutableDictionary dictionary];

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

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

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