Class Monetization
  
Inheritance
System.Object
Monetization
 
Syntax
public static class Monetization
 
Properties
  
isInitialized
Returns whether the monetization system is initialized successfully.
Declaration
public static bool isInitialized { get; }
 
Property Value
| Type | Description | 
| System.Boolean |  | 
isSupported
Returns if the current platform is supported by the monetization system.
Declaration
public static bool isSupported { get; }
 
Property Value
| Type | Description | 
| System.Boolean |  | 
version
Returns the current Unity Monetization version.
Declaration
public static string version { get; }
 
Property Value
| Type | Description | 
| System.String |  | 
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 | 
| System.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 | 
| System.String | gameId | Game identifier. | 
| System.Boolean | testMode | Test mode. | 
IsReady(String)
Declaration
public static bool IsReady(string placementId)
 
Parameters
| Type | Name | Description | 
| System.String | placementId |  | 
Returns
| Type | Description | 
| System.Boolean |  | 
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