You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
namespace MauiApp2
{
public partial class App : Application
{
public App()
{
InitializeComponent();
// Set the Ad Unit ID based on the platform
CrossMauiMTAdmob.Current.AdsId =
DeviceInfo.Platform == DevicePlatform.Android
? "ca-app-pub-3940256099942544/8214777181"
: "ca-app-pub-3940256099942544/4255350878";
MainPage = new AppShell();
}
}
}
how can I use the value of CrossMauiMTAdmob.Current.AdsId in my MainPage.xaml?
The text was updated successfully, but these errors were encountered:
My app.xaml.cs file contains this:
using Plugin.MauiMTAdmob;
namespace MauiApp2
{
public partial class App : Application
{
public App()
{
InitializeComponent();
}
how can I use the value of CrossMauiMTAdmob.Current.AdsId in my MainPage.xaml?
The text was updated successfully, but these errors were encountered: