Class AppAdProviderItem
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
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
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
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
Name
Gets the item's name: ProviderName, or else the network's own (NetworkName).
public string Name { get; }
Property Value
ProviderName
Gets the name the item goes by, or null for the network's own.
public string? ProviderName { get; init; }