![]() |
VOOZH | about |
dotnet add package Soenneker.Maui.Admob --version 4.0.514
NuGet\Install-Package Soenneker.Maui.Admob -Version 4.0.514
<PackageReference Include="Soenneker.Maui.Admob" Version="4.0.514" />
<PackageVersion Include="Soenneker.Maui.Admob" Version="4.0.514" />Directory.Packages.props
<PackageReference Include="Soenneker.Maui.Admob" />Project file
paket add Soenneker.Maui.Admob --version 4.0.514
#r "nuget: Soenneker.Maui.Admob, 4.0.514"
#:package Soenneker.Maui.Admob@4.0.514
#addin nuget:?package=Soenneker.Maui.Admob&version=4.0.514Install as a Cake Addin
#tool nuget:?package=Soenneker.Maui.Admob&version=4.0.514Install as a Cake Tool
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
Soenneker.Maui.Admob is a .NET MAUI AdMob helper.
dotnet add package Soenneker.Maui.Admob
This is the same pattern used by the demo:
using Microsoft.Extensions.Configuration;
using Soenneker.Maui.Admob.Registrars;
var builder = MauiApp.CreateBuilder();
#if ANDROID
builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
{
["AdMob:TestMode"] = "true"
});
builder.AddAdMobService();
#endif
If you are not using test mode, configure:
AdMob:TestModeAdMob:BannerUnitIdAdMob:TestDevicesIn Platforms/Android/AndroidManifest.xml:
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544~3347511713" />
That is Google's test app id. Replace it with your own app id for production.
<Grid x:Name="BannerHost" MinimumHeightRequest="60" />
This matches the demo approach:
private void InitializeBanner()
{
var banner = new BannerAd
{
Size = Enums.AdmobAdSize.Banner
};
banner.OnLoaded += (_, _) =>
{
StatusLabel.Text = "Banner loaded successfully.";
};
banner.OnFailedToLoad += (_, problem) =>
{
StatusLabel.Text = $"Banner failed to load: {problem.Title}";
};
BannerHost.Children.Add(banner);
}
Available sizes:
BannerLargeBannerMediumRectangleFullBannerLeaderboardAdaptiveBannerCustomIf you use Custom, also set ContentWidth and ContentHeight.
BannerAd exposes:
OnLoadedOnFailedToLoadOnImpressionOnClickedOnSwipedOnOpenedOnClosedIf you are using a MAUI Blazor Hybrid app, you may also want Soenneker.Maui.Blazor.Bridge. It may help you use this library from Blazor code.
There is a demo app here:
test/Soenneker.Maui.Admob.Demo
It shows the entire Android banner flow:
AddAdMobService()BannerAdIt uses Google's test ids, so it is safe to run as-is.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-android36.0 net10.0-android36.0 is compatible. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-ios26.0 net10.0-ios26.0 is compatible. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.514 | 0 | 6/19/2026 |
| 4.0.512 | 0 | 6/18/2026 |
| 4.0.511 | 43 | 6/16/2026 |
| 4.0.510 | 47 | 6/16/2026 |
| 4.0.509 | 100 | 6/13/2026 |
| 4.0.507 | 100 | 6/10/2026 |
| 4.0.505 | 93 | 6/10/2026 |
| 4.0.504 | 93 | 6/9/2026 |
| 4.0.503 | 107 | 6/6/2026 |
| 4.0.502 | 104 | 6/6/2026 |
| 4.0.500 | 100 | 6/6/2026 |
| 4.0.498 | 107 | 6/6/2026 |
| 4.0.496 | 93 | 6/5/2026 |
| 4.0.494 | 92 | 6/5/2026 |
| 4.0.491 | 104 | 6/5/2026 |
| 4.0.490 | 93 | 6/5/2026 |
| 4.0.489 | 106 | 5/21/2026 |
| 4.0.488 | 107 | 5/13/2026 |
| 4.0.487 | 103 | 5/13/2026 |
| 4.0.486 | 101 | 5/12/2026 |
Update dependency Soenneker.Extensions.Enumerable to 4.0.635 (#920)