Android 전면 광고
전면 광고 노출하기
Ad type
Ad unit ID
Interstitial
PUBLIC_TEST_UNIT_ID_INTERSTITIAL
val interstitialAd = AdropInterstitialAd(context, "YOUR_UNIT_ID")
interstitialAd.interstitialAdListener = object : AdropInterstitialAdListener {
override fun onAdReceived(ad: AdropInterstitialAd) {
Log.d("ADROP", "interstitial ad received ${ad.unitId}, ${ad.creativeId}")
ad.show()
}
override fun onAdFailedToReceive(ad: AdropInterstitialAd, errorCode: AdropErrorCode) {
Log.d("ADROP", "failed to receive $errorCode")
}
override fun onAdFailedToShowFullScreen(ad: AdropInterstitialAd, errorCode: AdropErrorCode) {
Log.d("ADROP", "failed to show full screen $errorCode")
}
...
}
interstitialAd.load()
전면 광고 Destroy
AdropInterstitialAd 노출을 종료한다면, 네이티브 광고가 garbage collection 되도록 다음과 같이 destroy해야합니다.
interstitialAd.destroy()
console에서 발급받은 unitId가 한 번이라도 request 가 들어가면 성공적으로 연결됩니다.

Last updated