애드팝콘 SSP SDK 연동가이드
애드팝콘 홈페이지애드팝콘 SSP 콘솔 바로가기
  • 개요
  • Android
    • 기본 설정
    • 배너 광고
    • 전면 광고
    • 전면 비디오 광고
    • 리워드 비디오 광고
    • 비디오 믹스 광고
    • 보상형 광고 플러스 연동(v1.0)
    • 보상형 광고 플러스 연동(v1.5)
    • 네이티브 광고
      • 네이티브 광고 레이아웃 구성 가이드
        • AdPopcornSSP NativeAdView
    • 스플래시 광고
    • 모달 광고
    • 팝콘텐츠 광고
    • 응답 에러 코드 및 샘플 프로젝트
    • 미디에이션(Android)
      • AdFit
      • Admob
      • AdForus
      • ADOP
      • GAM (Google Ad Manager)
      • Cauly
      • FAN(Facebook Audience Network)
      • MezzoMedia
      • Mintegral
      • Mobwith
      • UnityAds
      • Vungle(LiftOff)
      • Fyber
      • Pangle
      • AppLovin
      • AppLovinMax
      • NAM (Naver Ad Manager)
      • CoupangCPM
    • AppLovin Max Android Mediation 가이드
    • 릴리즈 노트
  • iOS
    • 기본 설정
      • CocoaPod 설치
      • SPM 설치
      • 수동 설치
    • 배너 광고
    • 전면 광고
    • 전면 비디오 광고
    • 리워드 비디오 광고
    • 비디오 믹스 광고
    • 보상형 광고 플러스 연동(1.0)
    • 보상형 광고 플러스 연동(v1.5)
    • 네이티브 광고
      • NativeAdView layout
        • 직접 설정
        • 템플릿 사용
    • 스플래시 광고
    • 모달 광고
    • 팝콘텐츠 광고
    • 응답 에러 코드 및 샘플 프로젝트
    • 미디에이션
      • NAM (Naver Ad Manager)
      • AdFit
      • AppLovin
      • AppLovinMAX
      • UnityAds
      • Vungle
      • FBAudienceNetwork (FaceBook)
      • AdMob
      • Google AdManager(GAM)
      • ADOP
      • Fyber
      • Mezzo
      • Mintegral
      • Pangle
      • Cauly
      • SDK, Mediation ver 호환성
    • AppLovin Max iOS Mediation 가이드
    • 릴리즈노트
  • Unity
    • Unity (Android)
      • 기본 설정
      • 배너 광고
      • 전면 광고
      • 리워드 비디오 광고
      • 비디오 믹스 광고
      • 네이티브 광고
      • 보상형 광고 플러스 연동(v1.0)
      • 보상형 광고 플러스 연동(v1.5)
      • 미디에이션 Unity Android
    • Unity (iOS)
      • 기본 설정
      • 배너 광고
      • 전면 광고
      • 리워드 비디오 광고
      • 비디오 믹스 광고
      • 네이티브 광고
      • 보상형 광고 플러스 연동(v1.0)
      • 보상형 광고 플러스 연동(v1.5)
      • 미디에이션 Unity iOS
    • 에러 코드
  • Flutter
    • 기본 설정
    • 배너 광고
    • 전면 광고
    • 전면 비디오 광고
    • 리워드 비디오 광고
    • 보상형 광고 플러스 연동(beta)
    • 네이티브 광고
    • 팝콘텐츠 광고
  • React Native(beta)
    • 기본 설정
    • 배너 광고
    • 전면 광고
    • 전면 비디오 광고
    • 리워드 비디오 광고
    • 네이티브 광고
  • Web SDK
  • 하이브리드 앱 - Web(APM + NAM)
    • 네이티브 Side 연동(Android)
    • 네이티브 Side 연동(iOS)
    • WebPage Side 연동
    • 광고 ID 수동 세팅
  • 하이브리드 앱- Web(Adfit)
    • Android
    • iOS
  • 테스트 코드
  • 리포트 API
    • 애드팝콘 SSP Report API
    • DSP Report API
    • Publisher API (Report)
    • Publisher API (Metadata)
    • Adserver Report API
    • Popcontent Report API
  • 추가 기능 연동가이드
    • Adfit Bizboard Android 연동 가이드
    • 웹 CS 페이지 연동
    • AppLovin Custom Network
      • Android
      • iOS
    • KT Library
    • 원스토어 연동가이드
      • 애드팝콘 SSP SDK for Onestore
      • 원스토어 Ads 래핑 가이드(내부용)
        • 배너 광고
        • 전면 광고
        • 전면 비디오 광고
        • 리워드 비디오 광고
        • 네이티브 광고
        • SSP 미디에이션
        • 에러 코드 및 외부 노출 함수
        • 테스트 지면 키
        • AAR 라이브러리 목록
    • 쿠팡 연동가이드
      • 쿠팡 포스트백 연동
      • 쿠팡 EP 리스트 연동
      • 쿠팡 리포트 API 연동
        • 쿠팡 일별 리포트 API
        • 쿠팡 API - Report
        • 쿠팡 API - Product list
    • Reward Banner 스크립트 연동가이드
      • Reward Banner 스크립트 Android
      • Reward Banner 스크립트 iOS
    • 차단관리 파일 가이드
    • 커스텀 타입 연동 가이드
      • 커스텀 타입(Android)
      • 커스텀 타입(iOS)
    • 쿠팡 클릭 이벤트 페이지 연동 가이드
  • 팝콘텐츠 연동가이드
    • WebView 직접 연동
    • 리워드 콜백
  • 웹 SSP
    • 쿠키 매칭
    • Web Header Bidding(WIP)
Powered by GitBook
On this page
  • 1. 인스턴스 생성
  • 1) Placement ID 변경
  • 2. 전면 비디오 광고 요청
  • 3. 전면 비디오 광고 노출
  • 4. 델리게이트 설정

Was this helpful?

  1. iOS

전면 비디오 광고

화면을 최대한 이용하여 비디오 광고를 유저에게 송출합니다. 다음을 참고하여 전면 비디오 광고를 연동합니다.

1. 인스턴스 생성

광고를노출하고자 하는 ViewController.m에 AdPopcornSSPInterstitialVideoAd.h를 import 하고 인스턴스 변수를 선언 합니다.

#import <AdPopcornSSP/AdPopcornSSPInterstitialVideoAd.h>
					
@interface AdPopcornSSPInterstitialVideoADViewController () <AdPopcornSSPInterstitialVideoAdDelegate>	
{										
    AdPopcornSSPInterstitialVideoAd *_sspInterstitialVideoAd;					
} 										
@end	

광고를 노출하고자 하는 ViewController.swift 에 AdPopcornSSPInterstitialVideoAd 인스턴스 변수를 생성합니다.

class ViewController: UIViewController, APSSPInterstitialVideoAdDelegate
{	
    // InterstitialVideoAd
    var interstitialVideoAd: AdPopcornSSPInterstitialVideoAd!
}

ViewController.m 을 수정하여 생성한 인스턴스를 구현 합니다.

@implementation AdPopcornSSPInterstitialVideoADViewController () 					
- (void) viewDidLoad									
{										
    _sspInterstitialVideoAd = [[AdPopcornSSPInterstitialVideoAd alloc] initWithKey: @"YOUR_APP_KEY" placementId: @"YOUR_PLACEMENT_Id" viewController:self];							
} 
@end

ViewController.swift 을 수정하여 생성한 인스턴스를 구현합니다.

class ViewController: UIViewController, APSSPInterstitialVideoAdDelegate
{	
    // InterstitialVideoAd
    var interstitialVideoAd: AdPopcornSSPInterstitialVideoAd!
    
    override func viewDidLoad() {
        super.viewDidLoad()
	interstitialVideoAd= AdPopcornSSPInterstitialVideoAd.init(key: "YOUR_APP_KEY", 
	placementId: "YOUR_PLACEMENT_Id", viewController: self)        
    }
}

1) Placement ID 변경

전면 비디오 인스턴스 생성 시 사용한 placementID를 변경하고자 할 경우, 아래와 같은 방식으로 변경합니다.

_sspInterstitialVideoAd.placementId = @"변경하고자 할 ID";
interstitialVideoAd.placementId = @"변경하고자 할 ID"

2. 전면 비디오 광고 요청

loadRequest API를 호출 하여 전면 비디오 광고를 불러옵니다.

[_sspInterstitialVideoAd loadRequest];
interstitialVideoAd.loadRequest()

loadRequst 호출에 대한 결과로 광고 수신에 실패한 경우에는 loadAd 재호출을 하시면 안됩니다. 과도한 광고 요청 api 호출은 block 사유가 됩니다.

3. 전면 비디오 광고 노출

presentFromViewController API를 호출하여 전면 비디오 광고를 불러옵니다.

[_sspInterstitialVideoAd presentFromViewController:self];

present API를 호출하여 전면 비디오 광고를 불러옵니다.

interstitialVideoAd.present(from:self)

4. 델리게이트 설정

전면 비디오 광고에서 발생하는 이벤트에 대한 델리게이트를 제공 합니다. 델리게이트를 사용하기 위해서는 APSSPInterstitialVideoAdDelegate를 추가 하여야 합니다.

_sspInterstitialVideoAd 인스턴스에 delegate를 설정하고 구현하여야 합니다.

delegate
설명

APSSPInterstitialVideoAdLoadSuccess

비디오광고 로드 성공

APSSPInterstitialVideoAdLoadFail, error

APSSPInterstitialVideoAdShowSuccess

비디오광고 노출 성공

APSSPInterstitialVideoAdShowFail

비디오광고 노출 실패

APSSPInterstitialVideoAdClosed

비디오광고 닫기

delegate
설명

apsspInterstitialVideoAdLoadSuccess

비디오광고 로드 성공

apsspInterstitialVideoAdLoadFail(error)

apsspInterstitialVideoAdShowSuccess

비디오광고 노출 성공

apsspInterstitialVideoAdShowFail

비디오광고 노출 실패

apsspInterstitialVideoAdClosed

비디오광고 닫기

#import "AdPopcornSSPInterstitialVideoADViewController.h
						
@interface AdPopcornSSPInterstitialVideoADViewController() <APSSPInterstitialVideoAdDelegate>		
@end											
											
@implementation AdPopcornSSPInterstitialVideoADViewController						
											
- (void)viewDidLoad {																			
    [super viewDidLoad];												
    // 전면 비디오 광고 델리게이트 설정								
    _sspInterstitialVideoAd.delegate = self;								
}											
											
// 전면 비디오 광고 델리게이트 구현									
- (void)APSSPInterstitialVideoAdLoadSuccess:(AdPopcornSSPInterstitialVideoAD *)interstitialVideoAd;						
{													
   [_sspInterstitialVideoAd presentFromViewController:self];						
}											
											
- (void)APSSPInterstitialVideoAdLoadFail:(AdPopcornSSPInterstitialVideoAd *)interstitialVideoAd error:(AdPopcornSSPError)error			
{														
}	
										
- (void)APSSPInterstitialVideoAdShowSuccess:(AdPopcornSSPInterstitialVideoAD *)interstitialVideoAd				
{													
}		
									
- (void)APSSPInterstitialVideoAdShowFail:(AdPopcornSSPInterstitialVideoAd *)interstitialVideoAd							
{												
}	
										
- (void)APSSPInterstitialVideoAdClosed:(AdPopcornSSPInterstitialVideoAD *)interstitialVideoAd							
{													
}													
@end	
class ViewController: UIViewController, APSSPInterstitialVideoAdDelegate
{	
    // InterstitialVideoAd
    var interstitialVideoAd: AdPopcornSSPInterstitialVideoAd!
    
    override func viewDidLoad() {
	super.viewDidLoad()
	interstitialVideoAd= AdPopcornSSPInterstitialVideoAd.init(key: "YOUR_APP_KEY", 
	placementId: "YOUR_PLACEMENT_Id", viewController: self)        
    }

    // InterstitialVideoAd Delegate
    func apsspInterstitialVideoAdLoadSuccess(_ interstitialVideoAd: AdPopcornSSPInterstitialVideoAd!) {
    }
    func apsspInterstitialVideoAdLoadFail(_ interstitialVideoAd: AdPopcornSSPInterstitialVideoAd!, error: AdPopcornSSPError!) {
    }
    func apsspInterstitialVideoAdShowSuccess(_ interstitialVideoAd: AdPopcornSSPInterstitialVideoAd!) {
    }
    func apsspInterstitialVideoAdShowFail(_ interstitialVideoAd: AdPopcornSSPInterstitialVideoAd!) {
    }
    func apsspInterstitialVideoAdClosed(_ interstitialVideoAd: AdPopcornSSPInterstitialVideoAd!) {
    }
}

Previous전면 광고Next리워드 비디오 광고

Last updated 12 months ago

Was this helpful?

비디오광고 로드 실패.

비디오광고 로드 실패.

에러코드 값
에러코드 값