diff --git a/prebid-mobile/pbm-api/android/android-sdk-integration-gam-original-api.md b/prebid-mobile/pbm-api/android/android-sdk-integration-gam-original-api.md index 8264e1f049..3086a1e678 100755 --- a/prebid-mobile/pbm-api/android/android-sdk-integration-gam-original-api.md +++ b/prebid-mobile/pbm-api/android/android-sdk-integration-gam-original-api.md @@ -1050,32 +1050,39 @@ Render a native ad: ```kotlin private fun inflatePrebidNativeAd(ad: PrebidNativeAd, wrapper: ViewGroup) { + val nativeContainer = View.inflate(wrapper.context, R.layout.layout_native, null) - val nativeContainer = View.inflate(wrapper.context, R.layout.layout_native, null) - ad.registerView(nativeContainer, object : PrebidNativeAdEventListener { - override fun onAdClicked() {} - override fun onAdImpression() {} - override fun onAdExpired() {} - }) + val icon = nativeContainer.findViewById(R.id.imgIcon) + ImageUtils.download(ad.iconUrl, icon) - val icon = nativeContainer.findViewById(R.id.imgIcon) - ImageUtils.download(ad.iconUrl, icon) + val title = nativeContainer.findViewById(R.id.tvTitle) + title.text = ad.title - val title = nativeContainer.findViewById(R.id.tvTitle) - title.text = ad.title + val image = nativeContainer.findViewById(R.id.imgImage) + ImageUtils.download(ad.imageUrl, image) - val image = nativeContainer.findViewById(R.id.imgImage) - ImageUtils.download(ad.imageUrl, image) + val description = nativeContainer.findViewById(R.id.tvDesc) + description.text = ad.description - val description = nativeContainer.findViewById(R.id.tvDesc) - description.text = ad.description + val cta = nativeContainer.findViewById