public class CustomMonetizationEventBuilder extends MonetizationEventBuilder
| Modifier | Constructor and Description |
|---|---|
protected |
CustomMonetizationEventBuilder(AnalyticsClient analyticsClient)
Construct a CustomMonetizationEventBuilder with the specified EventClient
|
| Modifier and Type | Method and Description |
|---|---|
static CustomMonetizationEventBuilder |
create(AnalyticsClient analyticsClient)
Create a CustomMonetizationEventBuilder with the specified Event client
|
protected boolean |
isValid()
Determines if all builder methods on this builder have been called
|
CustomMonetizationEventBuilder |
withCurrency(String currency)
Sets the currency of the item being purchased (Required)
|
CustomMonetizationEventBuilder |
withFormattedItemPrice(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(String productId)
Sets the product identifier field of the item being purchased (Required)
|
CustomMonetizationEventBuilder |
withQuantity(Double quantity)
Sets the quantity of the item being purchased (Required)
|
CustomMonetizationEventBuilder |
withStore(String store)
Sets the store in which the transaction is taking place (Required)
|
CustomMonetizationEventBuilder |
withTransactionId(String transactionId)
The transaction identifier of the purchase (Optional)
|
build, getCurrency, getFormattedItemPrice, getItemPrice, getProductId, getQuantity, getStore, getTransactionId, setCurrency, setFormattedItemPrice, setItemPrice, setProductId, setQuantity, setStore, setTransactionIdprotected CustomMonetizationEventBuilder(AnalyticsClient analyticsClient)
analyticsClient - The EventClient to use when building the eventpublic static CustomMonetizationEventBuilder create(AnalyticsClient analyticsClient)
analyticsClient - The event client to use when creating monetization
eventspublic CustomMonetizationEventBuilder withStore(String store)
store - The store in which the transaction is taking placepublic CustomMonetizationEventBuilder withProductId(String productId)
productId - The product id representing the item being purchasedpublic CustomMonetizationEventBuilder withQuantity(Double quantity)
quantity - The quantity of the item being purchased@Deprecated public CustomMonetizationEventBuilder withFormattedItemPrice(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(String currency)
currency - The currency code of the currency used to purchase this
item (i.e. "USD")public CustomMonetizationEventBuilder withTransactionId(String transactionId)
transactionId - The transaction id of the purchaseprotected boolean isValid()
MonetizationEventBuilderisValid in class MonetizationEventBuilderCopyright © 2017. All rights reserved.