![]() You can use Global Properties in this way:ĬrossMTAdmob.Current. UseRestrictedDataProcessing: For compliance with the CCPA TestDevices: You can add here the ID of your test devices So it's better if you create a custom consent xmlns:controls'clr-namespace: assemblyPlugin.MtAdmob' CODE MTAdView ads new MTAdView () Now you can add the control to your layout. PersonalizedAds: You can set it to False if you want to use generic ads (for GDPR.) (It works only for Android Banners, for the others, you must ask for consent)įor GDPR it's better to rely on a custom consent instead or using the non personalized ads as I cannot guarantee it works. So it's better if you create a custom consent GLOBAL PROPERTIES You need to add your Admob APPLICATION_ID to your AppManifest:įor each AdView if you want, you can set this property:ĪdSize: To chose the size of your banners (from version 1.9)ĪutoSize: If true, the plugin will update the heightbanner height according to the ads loaded (from version 1.9)įor GDPR it's better to rely on a custom consent instead or using the non personalized ads as I cannot guarantee it works. It's not complicated to update your code and it's worth it. *Only supported on iOS IMPORTANT To allow a smooth toward MAUI, Version 1.9 contains few breaking changes, several fixes and am improved support for Banner. To add the namespace to the toolkit: In your C page, add: using Xamarin.CommunityToolkit or using In your XAML page, add the namespace attribute: xmlns:xct' Register the renderer (s) you want to use in the Startup.cs file. *They are implemented but currently they are not working. Said that, if you need faster support with this plugin or in general with your Xamarin or MAUI project, contact me at to discuss it further. The plugin is free to use and I aim to improve it and fix any bugs in the shortest possible time. 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, Rewarded Videos and Rewearded Interstitials (from version 1.9) Please, support my work
0 Comments
Leave a Reply. |