| Package | Description |
|---|---|
| com.facebook.ads.sdk.serverside | |
| com.facebook.ads.utils |
| Modifier and Type | Method and Description |
|---|---|
CustomData |
CustomData.addContent(Content content)
Add a Content objects that contain the product IDs associated with the event plus information
about the products.
|
CustomData |
CustomData.contentCategory(String contentCategory)
Set category of the content associated with the event.
|
CustomData |
CustomData.contentIds(List<String> contentIds)
Set content IDs associated with the event, such as product SKUs for items in an AddToCart
event: [ABC123, XYZ789].
|
CustomData |
CustomData.contentName(String contentName)
Set name of the page or product associated with the event.
|
CustomData |
CustomData.contents(List<Content> contents)
Set a list of Content objects that contain the product IDs associated with the event plus
information about the products.
|
CustomData |
CustomData.contentType(String contentType)
Set a String equal to either product or product_group.
|
CustomData |
CustomData.currency(String currency)
Set currency code for the value specified, if applicable.
|
CustomData |
CustomData.customProperties(HashMap<String,String> customProperties)
Sets the custom properties to be included in the Custom Data.
|
CustomData |
CustomData.deliveryCategory(DeliveryCategory deliveryCategory)
Set a Type of delivery for a purchase event.
|
CustomData |
Event.getCustomData()
Get customData object that includes additional business data about the event.
|
CustomData |
CustomData.itemNumber(String itemNumber)
Set the item number
|
CustomData |
CustomData.numItems(String numItems)
Set number of items that a user tries to buy during checkout.
|
CustomData |
CustomData.orderId(String orderId)
Set order ID for this transaction as a String.
|
CustomData |
CustomData.predictedLtv(Float predictedLtv)
Set predicted lifetime value of a conversion event, as a String.
|
CustomData |
CustomData.searchString(String searchString)
Set a search query made by a use.
|
CustomData |
CustomData.status(String status)
Set status of the registration event, as a String.
|
CustomData |
CustomData.value(Float value)
Set a numeric value associated with this event.
|
| Modifier and Type | Method and Description |
|---|---|
Event |
Event.customData(CustomData customData)
Set customData object that includes additional business data about the event.
|
void |
Event.setCustomData(CustomData customData)
Set customData object that includes additional business data about the event.
|
| Constructor and Description |
|---|
Event(String eventName,
Long eventTime,
String eventSourceUrl,
Boolean optOut,
String eventId,
UserData userData,
CustomData customData,
String[] dataProcessingOptions,
Integer dataProcessingOptionsCountry,
Integer dataProcessingOptionsState)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.JsonElement |
CustomDataAdapter.serialize(CustomData src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
Copyright © 2020. All rights reserved.