Mintegral
마지막 업데이트
마지막 업데이트
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
[self setupMintegral];
return YES;
}
-(void)setupMintegral {
MTGSDK *sdk = [MTGSDK sharedInstance];
[sdk setAppID:@"your appID" ApiKey:@"your appKey"];
}import MTGSDK
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
setupMintegral()
...
return true
}
func setupMintegral() {
MTGSDK.sharedInstance().setAppID("appID", apiKey: "appKey")
}#import <AdPopcornSSP/AdPopcornSSPNativeAd.h>
#import "Mintegral.h"
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
APMintegralNativeAdRenderer *apMintegralNativeAdRenderer = [[APMintegralNativeAdRenderer alloc] init];
apMintegralNativeAdRenderer.adUIView = _mintegralNativeAdView;
apMintegralNativeAdRenderer.iconImageView = _mintegralAdIconView;
apMintegralNativeAdRenderer.appNameLabel = _mintegralAdTitleView;
apMintegralNativeAdRenderer.appDescLabel = _mintegralAdDescView;
apMintegralNativeAdRenderer.adCallButton = _mintegralAdCTAView;
apMintegralNativeAdRenderer.mMediaView = _mintegralMediaView;
[_adPopcornSSPNativeAd setMintegralNativeRenderer:apMintegralNativeAdRenderer superView:_mintegralNativeAdView];
}override func viewDidLoad()
{
super.viewDidLoad()
apMintegralNativeAdRenderer = APMintegralNativeAdRenderer.init()
apMintegralNativeAdRenderer.adUIView = _mintegralNativeAdView
apMintegralNativeAdRenderer.iconImageView = _mintegralAdIconView
apMintegralNativeAdRenderer.appNameLabel = _mintegralAdTitleView
apMintegralNativeAdRenderer.appDescLabel = _mintegralAdDescView
apMintegralNativeAdRenderer.adCallButton = _mintegralAdCTAView
apMintegralNativeAdRenderer.mMediaView = _mintegralMediaView
adPopcornSSPNativeAd.setMintegralNativeRenderer(apMintegralNativeAdRenderer, superView: _mintegralNativeAdView)
}