B4i Library [class] Google Open Ads

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:
B4X:
OpenAd.Initialize("ca-app-pub-3940256099942544/5575463023") 'test id

And call ShowAdIfAvailable in B4XPage/Application_Foreground:
B4X:
If OpenAd.IsInitialized Then OpenAd.ShowAdIfAvailable
 

Attachments

  • OpenAdManager.bas
    2.3 KB · Views: 5

asales

Expert
Licensed User
Longtime User
Great. Thanks!
We can use this approach to the other kinds of ads: native, rewarded, etc.?
 
Top