public class Event extends Object
| Constructor and Description |
|---|
Event()
Default Constructor.
|
Event(String eventName,
Long eventTime,
String eventId,
UserData userData,
CustomData customData,
String[] dataProcessingOptions,
Integer dataProcessingOptionsCountry,
Integer dataProcessingOptionsState) |
| Modifier and Type | Method and Description |
|---|---|
Event |
customData(CustomData customData)
Sets the custom data object for the current Event.
|
Event |
dataProcessingOptions(String[] dataProcessingOptions)
Sets the dataProcessingOptions for the current event.
|
Event |
dataProcessingOptionsCountry(Integer dataProcessingOptionsCountry)
Sets the dataProcessingOptionsCountry for the current event.
|
Event |
dataProcessingOptionsState(Integer dataProcessingOptionsState)
Sets the dataProcessingOptionsState for the current event.
|
Event |
eventId(String eventId)
Sets the event Id for the current Event.
|
Event |
eventName(String eventName)
Sets the Event Name for the current Event.
|
Event |
eventTime(Long eventTime)
Sets the Event Time when the current Event happened.
|
CustomData |
getCustomData()
Gets the custom data object for the current Event.
|
String[] |
getDataProcessingOptions()
Gets the dataProcessingOptions for the current event.
|
Integer |
getDataProcessingOptionsCountry()
Gets the dataProcessingOptionsCountry for the current event.
|
Integer |
getDataProcessingOptionsState()
Gets the dataProcessingOptionsState for the current event.
|
String |
getEventId()
Gets the eventId for the current Event.
|
String |
getEventName()
Gets the Event Name for the current Event.
|
Long |
getEventTime()
Gets the Event Time when the current Event happened.
|
UserData |
getUserData()
Gets the user data object for the current Event.
|
void |
setCustomData(CustomData customData)
Sets the custom data object for the current Event.
|
void |
setDataProcessingOptions(String[] dataProcessingOptions)
Sets the dataProcessingOptions for the current event.
|
void |
setDataProcessingOptionsCountry(Integer dataProcessingOptionsCountry)
Sets the dataProcessingOptionsCountry for the current event.
|
void |
setDataProcessingOptionsState(Integer dataProcessingOptionsState)
Sets the dataProcessingOptionsState for the current event.
|
void |
setEventId(String eventId)
Sets the event Id for the current Event.
|
void |
setEventName(String eventName)
Sets the Event Name for the current Event.
|
void |
setEventTime(Long eventTime)
Sets the Event Time when the current Event happened.
|
void |
setUserData(UserData userData)
Sets the user data object for the current Event.
|
Event |
userData(UserData userData)
Sets the user data object for the current Event.
|
public Event()
public Event(String eventName, Long eventTime, String eventId, UserData userData, CustomData customData, String[] dataProcessingOptions, Integer dataProcessingOptionsCountry, Integer dataProcessingOptionsState)
eventName - A Facebook pixel Standard Event or Custom
Event name.eventTime - A Unix timestamp in seconds indicating
when the actual event occurred.eventId - This ID can be any string chosen by the
advertiser.userData - A map that contains user data. See
UserData Class for options.customData - A map that contains user data. See
CustomData Class for options.dataProcessingOptions - Processing options you would like to
enable for a specific event.dataProcessingOptionsCountry - A country that you want to associate to
this data processing option.dataProcessingOptionsState - A state that you want to associate with
this data processing option.public String getEventName()
public void setEventName(String eventName)
eventName - a Facebook pixel Standard Event or Custom Event name.public Event eventName(String eventName)
eventName - a Facebook pixel Standard Event or Custom Event name.public Long getEventTime()
public void setEventTime(Long eventTime)
eventTime - is a Unix timestamp in seconds indicating when the actual
event occurred.public Event eventTime(Long eventTime)
eventTime - is a Unix timestamp in seconds indicating when the actual
event occurred.public String getEventId()
public void setEventId(String eventId)
eventId - Unique id for the event.public Event eventId(String eventId)
eventId - Unique id for the event.public UserData getUserData()
public void setUserData(UserData userData)
userData - userData is an object that contains user data.public Event userData(UserData userData)
userData - userData is an object that contains user data.public CustomData getCustomData()
public void setCustomData(CustomData customData)
customData - is an object that includes additional business data about
the event.public Event customData(CustomData customData)
customData - is an object that includes additional business data about
the event.public String[] getDataProcessingOptions()
public void setDataProcessingOptions(String[] dataProcessingOptions)
dataProcessingOptions - represents Data processing options you would
like to enable for a specific event, e.g. [] or
['LDU']public Event dataProcessingOptions(String[] dataProcessingOptions)
dataProcessingOptions - represents Data processing options you would
like to enable for a specific event, e.g. [] or
['LDU']public Integer getDataProcessingOptionsCountry()
public void setDataProcessingOptionsCountry(Integer dataProcessingOptionsCountry)
dataProcessingOptionsCountry - represents country that you want to
associate to this data processing option.public Event dataProcessingOptionsCountry(Integer dataProcessingOptionsCountry)
dataProcessingOptionsCountry - represents country that you want to
associate to this data processing option.public Integer getDataProcessingOptionsState()
public void setDataProcessingOptionsState(Integer dataProcessingOptionsState)
dataProcessingOptionsState - represents state that you want to associate
with this data processing option.Copyright © 2021. All rights reserved.