asales Expert Licensed User Longtime User Feb 25, 2018 #1 With this code: B4X: NativeContentAd.RunMethod("getVideoController", Null) I get this return: com.google.android.gms.ads.VideoController@94da3d6 that is an VideoController (An object that provides playback control for video ads): https://developers.google.com/android/reference/com/google/android/gms/ads/VideoController https://developers.google.com/admob/android/native-advanced#videocontroller How I can show the video of the ad in a panel? Thanks in advance for any tips. reference: https://www.b4x.com/android/forum/threads/any-news-about-native-ads-advanced.88100/#post-562893
With this code: B4X: NativeContentAd.RunMethod("getVideoController", Null) I get this return: com.google.android.gms.ads.VideoController@94da3d6 that is an VideoController (An object that provides playback control for video ads): https://developers.google.com/android/reference/com/google/android/gms/ads/VideoController https://developers.google.com/admob/android/native-advanced#videocontroller How I can show the video of the ad in a panel? Thanks in advance for any tips. reference: https://www.b4x.com/android/forum/threads/any-news-about-native-ads-advanced.88100/#post-562893
Erel B4X founder Staff member Licensed User Longtime User Feb 25, 2018 #2 What is the output of: B4X: Dim vc As JavaObject = NativeContentAd.RunMethod("getVideoController", Null) Log("Has video: " & vc.RunMethod("hasVideoContent", Null)) Upvote 0
What is the output of: B4X: Dim vc As JavaObject = NativeContentAd.RunMethod("getVideoController", Null) Log("Has video: " & vc.RunMethod("hasVideoContent", Null))
asales Expert Licensed User Longtime User Feb 25, 2018 #3 Erel said: B4X: Log("Has video: " & vc.RunMethod("hasVideoContent", Null)) Click to expand... "False" I tried with 5 differents ad units and in all of them I get this return: False. I think the video asset is not available. I'll be wait and and test later. Thanks! Upvote 0
Erel said: B4X: Log("Has video: " & vc.RunMethod("hasVideoContent", Null)) Click to expand... "False" I tried with 5 differents ad units and in all of them I get this return: False. I think the video asset is not available. I'll be wait and and test later. Thanks!