Interface IAdClient
Namespace: EasyMobile
Assembly: cs.temp.dll.dll
Syntax
public interface IAdClient
Properties
DefinedCustomInterstitialAdPlacements
All the custom interstitial AdPlacement(s) defined in EM_Settings.
If there's no such custom placement defined, this will return null
.
Declaration
List<AdPlacement> DefinedCustomInterstitialAdPlacements { get; }
Property Value
Type | Description |
---|---|
List<AdPlacement> |
DefinedCustomRewardedAdPlacements
All the custom rewarded AdPlacement(s) defined in EM_Settings.
If there's no such custom placement defined, this will return null
.
Declaration
List<AdPlacement> DefinedCustomRewardedAdPlacements { get; }
Property Value
Type | Description |
---|---|
List<AdPlacement> |
IsBannerAdSupported
Whether banner ads are supported.
Declaration
bool IsBannerAdSupported { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsInitialized
Gets a value indicating whether this client is initialized.
Declaration
bool IsInitialized { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsInterstitialAdSupported
Whether interstitial ads are supported.
Declaration
bool IsInterstitialAdSupported { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsRewardedAdSupported
Whether rewarded ads are supported.
Declaration
bool IsRewardedAdSupported { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsSdkAvail
Whether the required SDK is available.
Declaration
bool IsSdkAvail { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Network
Gets the associated ad network of this client.
Declaration
AdNetwork Network { get; }
Property Value
Type | Description |
---|---|
AdNetwork | The network. |
Methods
DestroyBannerAd()
Destroys the banner ad at the default placement.
Declaration
void DestroyBannerAd()
DestroyBannerAd(AdPlacement)
Destroys the banner ad at the specified placement.
Declaration
void DestroyBannerAd(AdPlacement placement)
Parameters
Type | Name | Description |
---|---|---|
AdPlacement | placement | Placement. |
HideBannerAd()
Hides the banner ad at the default placement.
Declaration
void HideBannerAd()
HideBannerAd(AdPlacement)
Hides the banner ad at the specified placement.
Declaration
void HideBannerAd(AdPlacement placement)
Parameters
Type | Name | Description |
---|---|---|
AdPlacement | placement | Placement. |
Init()
Initializes the client using the global settings.
Declaration
void Init()
IsInterstitialAdReady()
Determines whether the interstitial ad at the default placement is loaded.
Declaration
bool IsInterstitialAdReady()
Returns
Type | Description |
---|---|
System.Boolean |
|
IsInterstitialAdReady(AdPlacement)
Determines whether the interstitial ad at the specified placement is loaded.
Declaration
bool IsInterstitialAdReady(AdPlacement placement)
Parameters
Type | Name | Description |
---|---|---|
AdPlacement | placement | Placement. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsRewardedAdReady()
Determines whether the rewarded ad ready at the default placement is loaded.
Declaration
bool IsRewardedAdReady()
Returns
Type | Description |
---|---|
System.Boolean |
|
IsRewardedAdReady(AdPlacement)
Determines whether the rewarded ad at the specified placement is loaded.
Declaration
bool IsRewardedAdReady(AdPlacement placement)
Parameters
Type | Name | Description |
---|---|---|
AdPlacement | placement | Placement. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsValidPlacement(AdPlacement, AdType)
Check if placement is valid.
Declaration
bool IsValidPlacement(AdPlacement placement, AdType type)
Parameters
Type | Name | Description |
---|---|---|
AdPlacement | placement | Placement. |
AdType | type |
Returns
Type | Description |
---|---|
System.Boolean |
LoadInterstitialAd()
Loads the interstitial ad at the default placement.
Declaration
void LoadInterstitialAd()
LoadInterstitialAd(AdPlacement)
Loads the interstitial ad at the specified placement.
Declaration
void LoadInterstitialAd(AdPlacement placement)
Parameters
Type | Name | Description |
---|---|---|
AdPlacement | placement | Placement. |
LoadRewardedAd()
Loads the rewarded ad at the default placement.
Declaration
void LoadRewardedAd()
LoadRewardedAd(AdPlacement)
Loads the rewarded ad at the specified placement.
Declaration
void LoadRewardedAd(AdPlacement placement)
Parameters
Type | Name | Description |
---|---|---|
AdPlacement | placement | Placement. |
ShowBannerAd(AdPlacement, BannerAdPosition, BannerAdSize)
Shows the banner ad at the specified placement.
Declaration
void ShowBannerAd(AdPlacement placement, BannerAdPosition position, BannerAdSize size)
Parameters
Type | Name | Description |
---|---|---|
AdPlacement | placement | Placement. |
BannerAdPosition | position | Position. |
BannerAdSize | size | Size. |
ShowBannerAd(BannerAdPosition, BannerAdSize)
Shows the banner ad at the default placement.
Declaration
void ShowBannerAd(BannerAdPosition position, BannerAdSize size)
Parameters
Type | Name | Description |
---|---|---|
BannerAdPosition | position | Position. |
BannerAdSize | size | Size. |
ShowInterstitialAd()
Shows the interstitial ad at the specified placement.
Declaration
void ShowInterstitialAd()
ShowInterstitialAd(AdPlacement)
Shows the interstitial ad at the specified placement.
Declaration
void ShowInterstitialAd(AdPlacement placement)
Parameters
Type | Name | Description |
---|---|---|
AdPlacement | placement | Placement. |
ShowRewardedAd()
Shows the rewarded ad at the default placement.
Declaration
void ShowRewardedAd()
ShowRewardedAd(AdPlacement)
Shows the rewarded ad at the specified placement.
Declaration
void ShowRewardedAd(AdPlacement placement)
Parameters
Type | Name | Description |
---|---|---|
AdPlacement | placement | Placement. |
Events
InterstitialAdCompleted
Occurs when an interstitial ad completed. This event is always raised on main thread.
Declaration
event Action<IAdClient, AdPlacement> InterstitialAdCompleted
Event Type
Type | Description |
---|---|
System.Action<IAdClient, AdPlacement> |
RewardedAdCompleted
Occurs when a rewarded ad completed. This event is always raised on main thread.
Declaration
event Action<IAdClient, AdPlacement> RewardedAdCompleted
Event Type
Type | Description |
---|---|
System.Action<IAdClient, AdPlacement> |
RewardedAdSkipped
Occurs when a rewarded ad is skipped. This event is always raised on main thread.
Declaration
event Action<IAdClient, AdPlacement> RewardedAdSkipped
Event Type
Type | Description |
---|---|
System.Action<IAdClient, AdPlacement> |