Table of Contents

Class AppAdProviderItem

Namespace
VpnHood.AppLib.App.Services.Ads
Assembly
VpnHood.AppLib.App.dll

Represents an ad network the app shows ads from (AdProviderItems).

public class AppAdProviderItem
Inheritance
AppAdProviderItem
Inherited Members

Properties

AdProvider

Gets the network's provider.

public required IAdProvider AdProvider { get; init; }

Property Value

IAdProvider

CanShowOverVpn

Gets a value indicating whether the network can show its ads while the VPN is connected. Nothing in the app acts on it.

public bool CanShowOverVpn { get; init; }

Property Value

bool

ExcludeCountryCodes

Gets the countries the network's ads are not loaded in, by their codes, or empty for none.

public string[] ExcludeCountryCodes { get; init; }

Property Value

string[]

IncludeCountryCodes

Gets the only countries the network's ads are loaded in, by their codes, or empty for every country. An item may not have both this and ExcludeCountryCodes; the app's start fails on one that does.

public string[] IncludeCountryCodes { get; init; }

Property Value

string[]

IsEnabled

Gets or sets a value indicating whether the app loads ads from the network. The default is true.

public bool IsEnabled { get; set; }

Property Value

bool

IsFallback

Gets or sets a value indicating whether the network is tried only where its caller asks for the fallbacks too. The default is false.

public bool IsFallback { get; set; }

Property Value

bool

Name

Gets the item's name: ProviderName, or else the network's own (NetworkName).

public string Name { get; }

Property Value

string

ProviderName

Gets the name the item goes by, or null for the network's own.

public string? ProviderName { get; init; }

Property Value

string