To test the banner during the development google uses two Banner Id, one for Android and the other for iOS. Remember to add this line in your XAML: xmlns:controls="clr-namespace: assembly=Plugin.MtAdmob" To add a Banner on a page you have two options: XAML Visual Studio will tell you which packages you need to install. I'm slowly starting to move toward AndroidX, so it's possible that you need to install more packages in your Android project, in case of a build error, If you don't do this, your iOS app will crash.Where CompletionHandler is something like: private void CompletionHandler(InitializationStatus status)Ĭa-app-pub-3940256099942544~1458002511 ← This is a test key, replace it with your APPID In your iOS project Replace MobileAds.Configure with (CompletionHandler) Remember to edit your AppManifest otherwise it will not work on Android Your help allows me to continue to spend time on this project and continue to maintain and update it with new features and to be ready for the new Google SDK 20: Google SDK 20 Migration. If possible, please, support my work with few coffees or even better with a Membership! This plugin supports: Banners, Interstitial and Rewarded Videos Please, support me With this Plugin you can add a Google Admob Ads inside your Xamarin Android and iOS Projects with a single line!!!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |