VpnHood.AppLib.Ads.InMobi.Android
9.0.784
dotnet add package VpnHood.AppLib.Ads.InMobi.Android --version 9.0.784
NuGet\Install-Package VpnHood.AppLib.Ads.InMobi.Android -Version 9.0.784
<PackageReference Include="VpnHood.AppLib.Ads.InMobi.Android" Version="9.0.784" />
<PackageVersion Include="VpnHood.AppLib.Ads.InMobi.Android" Version="9.0.784" />
<PackageReference Include="VpnHood.AppLib.Ads.InMobi.Android" />
paket add VpnHood.AppLib.Ads.InMobi.Android --version 9.0.784
#r "nuget: VpnHood.AppLib.Ads.InMobi.Android, 9.0.784"
#:package VpnHood.AppLib.Ads.InMobi.Android@9.0.784
#addin nuget:?package=VpnHood.AppLib.Ads.InMobi.Android&version=9.0.784
#tool nuget:?package=VpnHood.AppLib.Ads.InMobi.Android&version=9.0.784
VpnHood.AppLib.Ads.InMobi.Android
InMobi interstitial ads for an Android app built on VpnHood: an ad provider that the app's ad service loads and shows like its other ad networks. The package holds a small Java wrapper over the InMobi SDK and ships the SDK with everything it needs at run time, so the app references nothing else for InMobi.
Requirements
- .NET 11 for Android (
net11.0-android37.0). - Android 9 (API 28) or later on the device: on an older one the provider refuses to load.
- An InMobi account id and the placement id of an interstitial (a number), from your InMobi dashboard.
Use
Add the provider to the list the app gets as AppOptions.AdProviderItems:
using VpnHood.AppLib.Ads.InMobi.Android;
using VpnHood.AppLib.App.Services.Ads;
if (InMobiAdProvider.IsAndroidVersionSupported)
adProviderItems.Add(new AppAdProviderItem {
AdProvider = InMobiAdProvider.Create(accountId, placementId,
initializeTimeout: TimeSpan.FromSeconds(5), isDebugMode: false)
});
The first ad it loads starts the InMobi SDK, which has initializeTimeout to finish; isDebugMode turns
on the SDK's debug log.
Privacy
The provider passes no consent of its own. The InMobi SDK reads the person's answer from a consent platform that stores it under IAB TCF, such as Google's UMP form, which VpnHood's AdMob package shows where a law requires consent. Where an app shows no such form, InMobi gets no consent.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0-android37.0 is compatible. |
-
net11.0-android37.0
- Square.OkHttp3 (>= 5.5.0)
- Square.Picasso (>= 2.8.0.23)
- VpnHood.AppLib.Abstractions (>= 8.2.853)
- VpnHood.Core.Client.Devices.Android (>= 8.2.853)
- Xamarin.AndroidX.Browser (>= 1.10.0.1)
- Xamarin.AndroidX.Core.Core.Ktx (>= 1.19.0.1)
- Xamarin.AndroidX.Media3.ExoPlayer (>= 1.4.1.1)
- Xamarin.GooglePlayServices.Ads.Identifier (>= 118.3.0.3)
- Xamarin.GooglePlayServices.AppSet (>= 116.1.0.11)
- Xamarin.GooglePlayServices.Tasks (>= 118.4.1.3)
- Xamarin.Kotlin.StdLib (>= 2.4.0.1)
- Xamarin.KotlinX.Coroutines.Android (>= 1.11.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.