Dim vid As JavaObject = NativeUnifiedAd.RunMethod("getVideoController", Null)
Dim hasvid As Boolean = vid.RunMethod("hasVideoContent", Null)
If hasvid = True Then
If vid.IsInitialized Then
Dim MediaView As JavaObject
MediaView.InitializeNewInstance("com/google/android/gms/ads/formats/MediaView".Replace("/", "."), Array(ctxt))
content.AddView(MediaView, 10dip, 40dip, 200dip, 200dip)
NativeUnifiedAdView.RunMethod("setMediaView", Array(MediaView))
End If
Else
Dim images As List = NativeUnifiedAd.RunMethod("getImages", Null)
If images.IsInitialized And images.Size > 0 Then
Dim imgView As Panel = pAdmob.GetView(5) 'example
Dim image As JavaObject = images.Get(0)
imgView.Background = image.RunMethod("getDrawable", Null)
NativeUnifiedAdView.RunMethod("setImageView", Array(imgView))
End If
End If