Use Places Service with Adobe Target places-target
This document assumes that you have the Places extension implemented in your application. If you need help implementing Places extension, see Places extensions.
After the Places extension is sending in events for entries and exits, you can leverage Rules in Launch to attach your Places Service data to your Adobe Target SDK events. With your desired property selected in Launch, you can create this type of rule by completing the following tasks:
1. Create a Rule
-
On the Rules tab, click Create New Rule.
Remember the following information:
- If you do not have existing rules for this property, the button will be in the middle of the screen.
- If your property has rules, the button will be in the top right of the screen.
2. Select an Event
-
Give your rule a meaningful name so it will be easily recognizable in your list of Rules.
In this example, the Rule is named Attach Places Service Data to Target Content Requested.
-
Under the Events section, click Add.
-
From the Extension drop-down list, select Adobe Target.
-
From the Event Type drop-down list, select Content Requested.
-
Click Keep Changes.
3. Add Conditions
In the following example, a Condition is created that causes the Rule to trigger only for users who have launched the app five or more times.
- Under the Conditions section, click Add.
- From the Extension drop-down list, select Mobile Core.
- From the Condition Type drop-down list, select Launches.
- On the right pane, modify the drop-down list and number controls so that the condition reads User has launched the app greater than or equal to 5 times.
- Click Keep Changes.
4. Define the Action
- Under the Actions section, click Add.
- From the Extension drop-down list, select Mobile Core.
- From the Action Type drop-down list, select Attach Data.
- On the right pane, in the JSON Payload field, type the data that will be added to this Event.
- Click Keep Changes.
On the right pane, you can add a freeform JSON payload that adds data to an SDK event before the extensions listening for this event hear it.
In the following example, poiCity
and poiName
values are added to the mboxparameters for each request that is processed in the Target event. The values for the new keys are determined dynamically by the SDK at the time this event processes.
request
object. In the original event, request
is an array of anonymous objects. When attaching data to all of objects in an array using Attach Data, the [*]
notation on a key that is known to contain an array causes the payload to be applied to all objects in that array.request[*]
can be read out loud as for each object in the request
array.
5. Save the Rule and rebuild your Property
After you complete your configuration, verify that your Rule looks like the following image:
- Click Save
- Rebuild your Launch property and deploy it to the correct Environment.