Android
2
3
Adrop 초기화(initialize)
import io.adrop.ads.Adrop
// ..
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
// 1. Application Context를 사용하세요.
// 2. production = true 를 사용하세요.
// 3. 특정 국가에서 이 SDK를 사용하고 있다면,
// ISO 3166 alpha-2 국가 코드 array를 전달하세요.
Adrop.initialize(
application,
production = true,
targetCountries = arrayOf<String>())
// 테마 설정하기
Adrop.setTheme(AdropTheme.AUTO)
}import io.adrop.ads.Adrop;
// ..
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// 1. Application Context를 사용하세요.
// 2. production = truse 를 사용하세요.
// 3. 특정 국가에서 이 SDK를 사용하고 있다면,
// ISO 3166 alpha-2 국가 코드 array를 전달하세요.
boolean production = true;
String[] targetCountries = {};
Adrop.INSTANCE.initialize(getApplication(), production, targetCountries);
}초기화 파라미터
파라미터
타입
설명
Backfill Ads 사용
1
Repository 추가
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url = uri("https://artifact.bytedance.com/repository/pangle") }
}
}dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url 'https://artifact.bytedance.com/repository/pangle' }
}
}2
Last updated