benxu.AppPlatform.Ads.Core
3.2.7
dotnet add package benxu.AppPlatform.Ads.Core --version 3.2.7
NuGet\Install-Package benxu.AppPlatform.Ads.Core -Version 3.2.7
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="benxu.AppPlatform.Ads.Core" Version="3.2.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="benxu.AppPlatform.Ads.Core" Version="3.2.7" />
<PackageReference Include="benxu.AppPlatform.Ads.Core" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add benxu.AppPlatform.Ads.Core --version 3.2.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: benxu.AppPlatform.Ads.Core, 3.2.7"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package benxu.AppPlatform.Ads.Core@3.2.7
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=benxu.AppPlatform.Ads.Core&version=3.2.7
#tool nuget:?package=benxu.AppPlatform.Ads.Core&version=3.2.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
benxu.AppPlatform.Ads.Core
廣告服務抽象層,定義所有廣告類型的核心介面。
功能
- ✅ 廣告服務主介面(
IAdService) - ✅ Banner 廣告介面(
IBannerAdService) - ✅ Interstitial 廣告介面(
IInterstitialAdService) - ✅ Rewarded 廣告介面(
IRewardedAdService)- 預留 - ✅ Premium 用戶廣告隱藏支援
- ✅ 三種廣告模式:Production / Test / Mock
安裝
dotnet add package benxu.AppPlatform.Ads.Core
核心介面
IAdService
public interface IAdService
{
bool IsPremium { get; }
bool IsEnabled { get; }
void SetIsPremium(bool isPremium);
void SetEnabled(bool enabled);
Task InitializeAsync();
}
廣告模式
public enum AdMode
{
Production, // 正式廣告
Test, // Google 官方測試廣告
Mock // 模擬模式(不呼叫 SDK)
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Options (>= 10.0.0)
- Xamarin.Build.Download (>= 0.11.4)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on benxu.AppPlatform.Ads.Core:
| Package | Downloads |
|---|---|
|
benxu.AppPlatform.BlazorUI
Blazor UI component library for benxu App Platform - Provides reusable UI components. |
|
|
benxu.AppPlatform.Ads.AdMob
AdMob implementation for ad services in .NET MAUI Blazor applications. Supports Banner, Interstitial and Rewarded ads with Mock mode for testing. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.2.7 | 102 | 6/5/2026 |
| 3.2.6 | 122 | 5/30/2026 |
| 3.2.5 | 136 | 4/25/2026 |
| 3.2.4 | 111 | 4/25/2026 |
| 3.2.3 | 132 | 4/23/2026 |
| 3.2.2 | 129 | 4/22/2026 |
| 3.2.1 | 117 | 4/17/2026 |
| 3.2.0 | 125 | 4/11/2026 |
| 3.1.9 | 115 | 4/10/2026 |
| 3.1.8 | 111 | 4/10/2026 |
| 3.1.7 | 119 | 4/10/2026 |
| 3.1.6 | 120 | 4/10/2026 |
| 3.1.5 | 113 | 4/9/2026 |
| 3.1.4 | 117 | 4/7/2026 |
| 3.1.3 | 131 | 3/24/2026 |
| 3.1.2 | 116 | 3/23/2026 |
| 3.1.1 | 121 | 3/22/2026 |
| 3.1.0 | 113 | 3/22/2026 |
| 3.0.9 | 110 | 3/20/2026 |
| 3.0.8 | 120 | 3/19/2026 |
Loading failed