AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Represents purchase event in your application. The event attribute must be set by user. The example below shows how to use MonetizationEvent

MonetizationEvent monetizationEvent = new MonetizationEvent();
            
monetizationEvent.Quantity = 3.0;
monetizationEvent.ItemPrice = 1.99;
monetizationEvent.ProductId = "ProductId123";
monetizationEvent.ItemPriceFormatted = "$1.99";
monetizationEvent.Store = "Apple";
monetizationEvent.TransactionId = "TransactionId123";
monetizationEvent.Currency = "USD";     
            
analyticsManager.RecordEvent(monetizationEvent);
             

Inheritance Hierarchy

System.Object
  Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent
    Amazon.MobileAnalytics.MobileAnalyticsManager.MonetizationEvent

Namespace: Amazon.MobileAnalytics.MobileAnalyticsManager
Assembly: AWSSDK.MobileAnalytics.dll
Version: 3.x.y.z

Syntax

C#
public class MonetizationEvent : CustomEvent
         IEvent

The MonetizationEvent type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property AllAttributes System.Collections.Generic.IDictionary<System.String, System.String> Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.
Public Property AllMetrics System.Collections.Generic.IDictionary<System.String, System.Double> Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.
Public Property Currency System.String

Sets the currency.

Public Property ItemPrice System.Nullable<System.Double>

Sets the item price.

Public Property ItemPriceFormatted System.String

Sets the item price formatted.

Public Property ProductId System.String

Sets the product identifier.

Public Property Quantity System.Nullable<System.Double>

Sets the quantity.

Public Property Store System.String

Sets the store.

Public Property TransactionId System.String

Sets the transaction identifier.

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.5 or higher. For .NET 3.5 the SDK follows the standard naming convention of BeginMethodName and EndMethodName to indicate asynchronous operations - these method pairs are not shown in the table below.

NameDescription
Public Method AddAttribute(string, string) Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.
Public Method AddGlobalAttribute(string, string) Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.
Public Method AddGlobalAttribute(string, string, string) Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.
Public Method AddGlobalMetric(string, double) Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.
Public Method AddGlobalMetric(string, string, double) Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.
Public Method AddMetric(string, double) Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.
Public Method GetAttribute(string) Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.
Public Method GetGlobalAttribute(string) Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.
Public Method GetGlobalAttribute(string, string) Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.
Public Method GetGlobalMetric(string) Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.
Public Method GetGlobalMetric(string, string) Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.
Public Method GetMetric(string) Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.
Public Method HasAttribute(string) Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.
Public Method HasMetric(string) Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.
Public Method RemoveGlobalAttribute(string) Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.
Public Method RemoveGlobalAttribute(string, string) Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.
Public Method RemoveGlobalMetric(string) Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.
Public Method RemoveGlobalMetric(string, string) Inherited from Amazon.MobileAnalytics.MobileAnalyticsManager.CustomEvent.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

Unity:
Supported Versions: 4.6 and above
Supported Platforms: Android, iOS, Standalone