public class EventRequest extends Object
| Constructor and Description |
|---|
EventRequest(String pixelId,
String pageId,
APIContext context)
Constructor.
|
EventRequest(String pixelId,
String pageId,
APIContext context,
List<Event> data,
String testEventCode,
String partnerAgent,
String namespaceId,
String uploadId,
String uploadTag,
String uploadSource,
HttpServiceInterface httpServiceClient) |
| Modifier and Type | Method and Description |
|---|---|
EventRequest |
data(List<Event> data)
Set a list of Event objects
|
SignalResponse<EventResponse,EventResponse> |
execute()
Synchronously send Event to Facebook GraphAPI.
|
EventRequest |
getBusinessDataEventRequest()
Return Business Data API event request
|
SignalResponse<List<Event>,List<Event>> |
getData()
A list of Event objects
|
SignalResponse<HttpServiceInterface,HttpServiceInterface> |
getHttpServiceClient()
Get the httpServiceClient.
|
SignalResponse<String,String> |
getNamespaceId()
The namespace id is a scope used to resolve extern_id or Third-party ID.
|
SignalResponse<String,String> |
getPartnerAgent()
A value that represents the platform that is sending the event.
|
EventRequest |
getServerSideEventRequest()
Return Conversion API event request
|
SignalResponse<String,String> |
getTestEventCode()
Code used to verify that your server events are received correctly by
Facebook.
|
SignalResponse<String,String> |
getUploadId()
The upload id is a unique id used to denote the current set being uploaded.
|
SignalResponse<String,String> |
getUploadSource()
The upload source is the origin/source of data for the dataset to be
uploaded.
|
SignalResponse<String,String> |
getUploadTag()
The upload tag is a tag string added to track your Offline event uploads.
|
EventRequest |
namespaceId(String namespaceId)
Set namespace id
|
EventRequest |
partnerAgent(String partnerAgent)
Sets a value that represents the platform that is sending the event.
|
void |
setData(List<Event> data)
Set a list of Event objects
|
void |
setHttpServiceClient(HttpServiceInterface httpServiceClient)
Set a custom http client that will be used to send the event request.
|
void |
setNamespaceId(String namespaceId)
Set namespace id
|
void |
setPartnerAgent(String partnerAgent)
Set a value that represents the platform that is sending the event.
|
void |
setTestEventCode(String testEventCode)
Set code used to verify that your server events are received correctly by
Facebook.
|
void |
setUploadId(String uploadId)
Set upload id
|
void |
setUploadSource(String uploadSource)
Set upload source
|
void |
setUploadTag(String uploadTag)
Set upload tag
|
EventRequest |
testEventCode(String testEventCode)
Set code used to verify that your server events are received correctly by
Facebook.
|
EventRequest |
uploadId(String uploadId)
Set upload id
|
EventRequest |
uploadSource(String uploadSource)
Set upload source
|
EventRequest |
uploadTag(String uploadTag)
Set upload tag
|
public EventRequest(String pixelId, String pageId, APIContext context)
pageId - page idpixelId - Ad pixel idcontext - Api contextpublic EventRequest(String pixelId, String pageId, APIContext context, List<Event> data, String testEventCode, String partnerAgent, String namespaceId, String uploadId, String uploadTag, String uploadSource, HttpServiceInterface httpServiceClient)
context - Api contextpixelId - Pixel Id to which you are sending the eventspageId - Page Id to which you are sending the eventsdata - Data for the request Payload for a Server Side EventpartnerAgent - Platform from which the event is sent e.g. wordpresstestEventCode - Test Event Code used to verify that your server
events are received correctly by Facebook.namespaceId - Scope used to resolve extern_id or Third-party ID.
Can be another data set or data partner ID.uploadId - Unique id used to denote the current set being
uploaded.uploadTag - Tag string added to track your Offline event
uploads.uploadSource - The origin/source of data for the dataset to be
uploaded.httpServiceClient - Override the default http request method by setting
an object that implements HttpServiceInterfacepublic EventRequest data(List<Event> data)
data - list of Eventpublic SignalResponse<List<Event>,List<Event>> getData()
public void setData(List<Event> data)
data - list of Eventpublic EventRequest partnerAgent(String partnerAgent)
partnerAgent - a value that represents the platform that is sending the
eventpublic SignalResponse<String,String> getPartnerAgent()
public void setPartnerAgent(String partnerAgent)
partnerAgent - a value that represents the platform that is sending the
eventpublic SignalResponse<String,String> getNamespaceId()
public void setNamespaceId(String namespaceId)
namespaceId - Scope used to resolve extern_id or Third-party ID. Can be
another data set or data partner ID.public EventRequest namespaceId(String namespaceId)
namespaceId - Scope used to resolve extern_id or Third-party ID. Can be
another data set or data partner ID.public SignalResponse<String,String> getUploadId()
public void setUploadId(String uploadId)
uploadId - Unique id used to denote the current set being uploaded.public EventRequest uploadId(String uploadId)
uploadId - Unique id used to denote the current set being uploaded.public SignalResponse<String,String> getUploadTag()
public void setUploadTag(String uploadTag)
uploadTag - Tag string added to track your Offline event uploads.public EventRequest uploadTag(String uploadTag)
uploadTag - Tag string added to track your Offline event uploads.public SignalResponse<String,String> getUploadSource()
public void setUploadSource(String uploadSource)
uploadSource - The origin/source of data for the dataset to be uploaded.public EventRequest uploadSource(String uploadSource)
uploadSource - The origin/source of data for the dataset to be uploaded.public EventRequest testEventCode(String testEventCode)
testEventCode - ode used to verify that your server eventspublic SignalResponse<String,String> getTestEventCode()
public void setTestEventCode(String testEventCode)
testEventCode - ode used to verify that your server eventspublic SignalResponse<HttpServiceInterface,HttpServiceInterface> getHttpServiceClient()
public void setHttpServiceClient(HttpServiceInterface httpServiceClient)
httpServiceClient - the object implementing HttpServiceInterfacepublic EventRequest getBusinessDataEventRequest()
public EventRequest getServerSideEventRequest()
public SignalResponse<EventResponse,EventResponse> execute() throws APIException
APIException - Api ExceptionCopyright © 2024. All rights reserved.