시작하기
Android SDK 적용
SDK 적용
Download Link
다운로드 받은 SDK를 프로젝트 라이브러리 폴더에 복사
Gradle 설정
dependencies {
implementation files ("라이브러리 폴더/DeXOpsAdsAgent.aar") //DeXOps SDK
// 구글 광고 ID
// https://mvnrepository.com/artifact/com.google.android.gms/play-services-ads-identifier
implementation("com.google.android.gms:play-services-ads-identifier:18.0.1")
// Play Store 설치정보
// https://mvnrepository.com/artifact/com.android.installreferrer/installreferrer
implementation("com.android.installreferrer:installreferrer:2.2")
// Kotlin JSON
// https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-serialization-json
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3")
}프로가드 예외 설정
AndroidManifest.xml 권한 설정
SDK 초기화
Android Application Class 에서 수행
Sample Code
광고 요청
Activity 의 LifeCycle onCreate(), onStart(), onResume() 광고 목적에 맞게 광고 요청을 수행
아래 예시는 onStart() 에서 요청
Hybrid App 광고 요청
Javascript Interface 설정
Sample Code
Web 광고 요청
등록된 Javascript Interface 를 통해 광고를 요청 하고 Web 화면에 광고를 보여주게 됨
HTML 또는 Javascript 함수 호출 선택
Custom Element 가이드
Javascript 가이드
Last updated
Was this helpful?