Class Monetization
Syntax
[Obsolete("Deprecated. Please use Advertisements", false)]
public static class Monetization
Properties
isInitialized
Returns whether the monetization system is initialized successfully.
Declaration
public static bool isInitialized { get; }
Property Value
isSupported
Returns if the current platform is supported by the monetization system.
Declaration
public static bool isSupported { get; }
Property Value
version
Returns the current Unity Monetization version.
Declaration
public static string version { get; }
Property Value
Methods
CreateNativePromoAdapter(PromoAdPlacementContent)
Declaration
public static INativePromoAdapter CreateNativePromoAdapter(PromoAdPlacementContent placementContent)
Parameters
Returns
GetPlacementContent(String)
Declaration
public static PlacementContent GetPlacementContent(string placementId)
Parameters
Type |
Name |
Description |
String |
placementId |
|
Returns
Initialize(String, Boolean)
Initialize the monetization system with specified gameId, testMode, IPurchasingAdapter
Declaration
public static void Initialize(string gameId, bool testMode)
Parameters
Type |
Name |
Description |
String |
gameId |
Game identifier.
|
Boolean |
testMode |
Test mode.
|
IsReady(String)
Declaration
public static bool IsReady(string placementId)
Parameters
Type |
Name |
Description |
String |
placementId |
|
Returns
Declaration
public static void SetMetaData(MetaData metaData)
Parameters
SetPurchasingAdapter(IPurchasingAdapter)
Declaration
public static void SetPurchasingAdapter(IPurchasingAdapter adapter)
Parameters
Events
onPlacementContentReady
Declaration
public static event EventHandler<PlacementContentReadyEventArgs> onPlacementContentReady
Event Type
onPlacementContentStateChange
Declaration
public static event EventHandler<PlacementContentStateChangeEventArgs> onPlacementContentStateChange
Event Type