원스토어 Ads 래핑 가이드(내부용)
본 가이드는 원스토어 측의 래핑을 위한 SDK 버전 연동 가이드입니다.
1. SDK 다운로드 및 설정
1) Gradle 설정
2. 필수 코드 연동
1) SSP SDK 초기화
2) 리소스 해제
3) GDPR 설정
마지막 업데이트
본 가이드는 원스토어 측의 래핑을 위한 SDK 버전 연동 가이드입니다.
마지막 업데이트
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile(name: 'OnestoreAds_v0.3.1, ext: 'aar')
repositories { flatDir { dirs 'libs' } }
}if(AdPopcornSSP.isInitialized(MyDisplayAdSampleActivity.this){
// Already SSP SDK initialized
}
else{
AdPopcornSSP.init(MyDisplayAdSampleActivity.this, "앱키", new SdkInitListener() {
@Override
public void onInitializationFinished() {
// init 작업이 완료 된 뒤, 광고 로드 작업을 진행해 주시기 바랍니다.
}
});
}@Override
protected void onDestroy() {
// TODO Auto-generated method stub
super.onDestroy();
AdPopcornSSP.destroy();
}AdPopcornSSP.gdprConsentAvailable(false);