스플래시 광고
모바일 앱의 스플래시 화면(Splash Screen) 내 광고를 송출하는 형태입니다.
1. 인스턴스 생성
#import <AdPopcornSSP/AdPopcornSSPSplashAd.h>
@interface SplashViewController() <APSSPSplashAdDelegate>
{
AdPopcornSSPSplashAd *_sspSplashAd;
}
@endclass SplashViewController: UIViewController, APSSPSplashAdDelegate
{
// AdPopcornSSPSplashAd
var splashAd: AdPopcornSSPSplashAd!
}
@implementation SplashViewController
- (void)viewDidLoad {
[super viewDidLoad];
_sspSplashAd = [[AdPopcornSSPSplashAd alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height) Key:@"YOUR_APP_KEY" placementId:@"YOUR_PLACEMENT_ID" viewController:self];
[self.view addSubView:_sspSplashAd];
}
@endclass SplashViewController: UIViewController, APSSPSplashAdDelegate
{
// AdPopcornSSPSplashAd
var splashAd: AdPopcornSSPSplashAd!
override func viewDidLoad() {
super.viewDidLoad()
splashAd = AdPopcornSSPSplashAd.init(frame: CGRect(x: 0, y: 0, width: 300, height: 300),
key: "YOUR_APP_KEY", placementId: "YOUR_PLACEMENT_ID", viewController: self)
}
}
2. 광고 타입 설정
광고 타입
설명
예시 이미지
3. 스플래시 광고 요청
4. 델리게이트 설정
delegate
설명
delegate
설명
마지막 업데이트

