public class CustomMonetizationEventBuilder extends MonetizationEventBuilder
| Modifier and Type | Method and Description |
|---|---|
static CustomMonetizationEventBuilder |
create(AnalyticsClient analyticsClient)
Create a CustomMonetizationEventBuilder with the specified Event client
|
CustomMonetizationEventBuilder |
withCurrency(java.lang.String currency)
Sets the currency of the item being purchased (Required)
|
CustomMonetizationEventBuilder |
withFormattedItemPrice(java.lang.String formattedItemPrice)
Deprecated.
Will be removed. Please set Currency and Item Price. Replaced by
withCurrency(String) and {@link #withItemPrice(double) |
CustomMonetizationEventBuilder |
withItemPrice(double itemPrice)
Sets the numerical price of the item being purchased (Required)
|
CustomMonetizationEventBuilder |
withProductId(java.lang.String productId)
Sets the product identifier field of the item being purchased (Required)
|
CustomMonetizationEventBuilder |
withQuantity(java.lang.Double quantity)
Sets the quantity of the item being purchased (Required)
|
CustomMonetizationEventBuilder |
withStore(java.lang.String store)
Sets the store in which the transaction is taking place (Required)
|
CustomMonetizationEventBuilder |
withTransactionId(java.lang.String transactionId)
The transaction identifier of the purchase (Optional)
|
buildpublic static CustomMonetizationEventBuilder create(AnalyticsClient analyticsClient)
analyticsClient - The event client to use when creating monetization
eventspublic CustomMonetizationEventBuilder withStore(java.lang.String store)
store - The store in which the transaction is taking placepublic CustomMonetizationEventBuilder withProductId(java.lang.String productId)
productId - The product id representing the item being purchasedpublic CustomMonetizationEventBuilder withQuantity(java.lang.Double quantity)
quantity - The quantity of the item being purchased@Deprecated public CustomMonetizationEventBuilder withFormattedItemPrice(java.lang.String formattedItemPrice)
withCurrency(String) and {@link #withItemPrice(double)formattedItemPrice - The formatted localized price of the itempublic CustomMonetizationEventBuilder withItemPrice(double itemPrice)
itemPrice - The numerical price of the itempublic CustomMonetizationEventBuilder withCurrency(java.lang.String currency)
currency - The currency code of the currency used to purchase this
item (i.e. "USD")public CustomMonetizationEventBuilder withTransactionId(java.lang.String transactionId)
transactionId - The transaction id of the purchaseCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.