Adivery 1.0.0
dotnet add package Adivery --version 1.0.0
NuGet\Install-Package Adivery -Version 1.0.0
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="Adivery" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Adivery" Version="1.0.0" />
<PackageReference Include="Adivery" />
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 Adivery --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Adivery, 1.0.0"
#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 Adivery@1.0.0
#: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=Adivery&version=1.0.0
#tool nuget:?package=Adivery&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
📦 Adivery
A lightweight .NET library for displaying Adivery ads on the Android platform.
Description
Adivery is a .NET library designed to show Adivery advertisements in Android applications.
It supports only Interstitial and Rewarded ad formats and is intended for modern Android versions.
Supported Platforms
- Android 8 (API 26) up to Android 16
- Android versions below 8 are not supported
Requirements
- Internet permission must be declared in
AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
- Valid Adivery credentials (App ID and Placement IDs)
Supported Ad Types
- Interstitial Ads
- Rewarded Ads
Banner ads are not supported.
Installation
Install the package from NuGet:
dotnet add package Adivery
Initialization
Initialize the library after the application is fully loaded to ensure the Application instance is not null.
Adivery.Ads.Initialize(
Platform.CurrentActivity?.Application,
App_ID,
RewardedPlace_ID,
InterstitialPlace_ID
);
Notes
- App_ID, RewardedPlace_ID, and InterstitialPlace_ID must be obtained from the Adivery dashboard.
- If you only need Interstitial ads, you may leave RewardedPlace_ID empty
- Initializing too early may result in a null Application
Showing Interstitial Ads
var result = await Adivery.Ads.ShowRewardedAd();
Resutl
- result.Status (bool) Indicates whether the ad was shown successfully.
- result.Message (string) Contains the failure reason (in Persian) if the ad was not shown.
Showing Rewarded Ads
var result = await Adivery.Ads.ShowRewardedAd();
Important
- Simply displaying the ad is not sufficient.
- The user must watch the ad until the end.
- If the ad is skipped or closed early, result.Status will always be false
👨💻 Author: SLVZ
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-android36.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0-android36.0
- Microsoft.Maui.Essentials (>= 9.0.120)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 137 | 12/29/2025 |