Oracle Help Center | Oracle Responsys Mobile App Platform Cloud Service title

Rapid Retargeter for Android

Overview

To modify your mobile app to support Rapid Retargeter, you must add code to your mobile app. This code must do the following:

The following sections show the modifications to make to your Android apps.

Reporting the Rapid Retargeter Event in your mobile app

Add the Rapid Retargeter event code to the places in your code that handle the user's action.

In the following syntax examples: <rapid_retargeter_event_name> is the name of the Rapid Retargeter event (for example, $AddedItemToCart). You must express the attributes as key value pairs. For example, for the $AddedItemToCart event, your "<name1>":"<value1>" would be "Pid":"123" (the Product ID attribute and its value).

First, pre-load the event properties into a hash map:

// Define Rapid-Retargeter event properties
   Map<String, Object> eventProperties = new HashMap<>();
        eventProperties.put("<name1>", "<value1>");
        eventProperties.put("<name2>", "<value2>");
        ...
        eventProperties.put("<nameN>", "<valueN>");

Next, report the Rapid Retargeter event:

// Report the Rapid-Retargeter Event
   PushIOManager.getInstance(this).trackEvent("<rapid_retargeter_event_name>", eventProperties);

Example:

       // Define Rapid-Retargeter event properties
        Map<String, Object> eventProperties = new HashMap<>();

       // For example

        eventProperties.put("Pid", "123");
        eventProperties.put("Pc", "Shoes");

       // Report the Rapid-Retargeter Event
        PushIOManager.getInstance(this).trackEvent("$AddedItemToCart", eventProperties);

Reporting events

See Mobile Events for more information about each event types and its attributes.