Vungle

Vungle

사용방법

1) 설치

미디에이션

2) 초기 셋팅

SKAdNetwork 처리 -> 링크

다음 코드를 사용하여 Info.plist 내부에 추가하여 주세요!

SKAdNetwork (2024.03.04)

3) 초기화

-> 링크

Native Layout 설정

스토리보드에 UIView 생성 후 Custom Class을 AdPopcornSSPNativeAd 설정

AdPopcornSSPNativeAd 영역 안에 미디에이션 업체의 실제 광고 영역 추가 및 viewcontroller에 outlet 연결합니다.

1) Component 구성

Vungle 네이티브에서 지원하는 아래 요소를 이용하여 구성합니다.

You must prepare UIViews (1), UILabel (4, 5, 6), and UIButtons (9) inside the main UIView (a container to hold all components for a Native ad). You must create the UI elements listed below (with the exception of UIImage (7, the Privacy icon image, which is discussed in the Display Privacy Icon section)

2) UI component를 SDK에 매칭

1,2 단계에서 생성한 UI Componenet 요소를 SDK에 매칭합니다.

storyboard에서 생성한 UI view를 APVungleNativeAdRenderer를 사용하여 sdk에 전달한다.

APVungleNativeAdRenderer를 생성한 뒤, 애드팝콘 Vungle 네이티브 광고에서 지원하는 ui componenet를 전달하여 준다.

APVungleNativeAdRenderer에 각 component를 연결시켜 준 후,setVungleRenderer:superView: renderer와 nativeAdView 를 sdk 최종적으로 전달합니다.

Last updated

Was this helpful?