Dec 1, 2025 Replies: 3 This class implements the Google Open Ads feature: https://developers.google.com/admob/ios/app-open It is compatible with B4i v10+. Usage: call Initialize when the app starts: Code: OpenAd.Initialize("ca-app-pub-3940256099942544/5575463023") 'test id And call ShowAdIfAvailable in B4XPage/Application_Foreground: Code: If OpenAd.IsInitialized Then OpenAd.ShowAdIfAvailable Attachments OpenAdManager.bas OpenAdManager.bas 2.3 KB · Views: 10 Click to expand...
This class implements the Google Open Ads feature: https://developers.google.com/admob/ios/app-open It is compatible with B4i v10+. Usage: call Initialize when the app starts: Code: OpenAd.Initialize("ca-app-pub-3940256099942544/5575463023") 'test id And call ShowAdIfAvailable in B4XPage/Application_Foreground: Code: If OpenAd.IsInitialized Then OpenAd.ShowAdIfAvailable
asales Expert Licensed User Longtime User Dec 1, 2025 #2 Great. Thanks! We can use this approach to the other kinds of ads: native, rewarded, etc.?
Erel B4X founder Staff member Licensed User Longtime User Dec 2, 2025 #4 asales said: We can use this approach to the other kinds of ads: native, rewarded, etc.? Click to expand... It shouldn't be too difficult to add other types of ads. If you have any question on the code then I'll explain.
asales said: We can use this approach to the other kinds of ads: native, rewarded, etc.? Click to expand... It shouldn't be too difficult to add other types of ads. If you have any question on the code then I'll explain.