Visit www.talkable.com

Standalone Campaign

Let’s take a look at how the Standalone campaign integration looks. The main purpose of this type of campaign is to drive your users to invite their friends (to become Advocates) without being gated by a purchase beforehand.

Usually Standalone campaign look like a separate widget that people can access by clicking on the “Invite friends” button inside app navigation.

Once you’ve got a Standalone campaign set up inside Talkable you can integrate the campaign with the following line of code:

import com.talkable.sdk.Talkable;
...

Activity activity = this;
AffiliateMember affiliateMember = new AffiliateMember();
Talkable.showOffer(activity, affiliateMember);
...

Note

Make sure you have at least one live “SA” campaign with a specified android-invite tag inside Talkable Site

Note that customer is empty, in this case user will see the Advocate Signup Page, which is used to collect the user’s email address. Your application may already know/have access to the user’s email, if so, you should pass this parameter which will automatically skip the SignUp Page in the flow and show the Advocate Share Page.

import com.talkable.sdk.Talkable;
...

String email = "advocate@example.com"; // Required
String idInYourApp = "a8db7683-0f7f-407e-8d12-af2d501035c8"; // Use unique identifier from your system, optional
String firstName = "John"; // Optional
String lastName = "Smith"; // Optional
Customer customer = new Customer(idInYourApp, firstName, lastName, email);

AffiliateMember affiliateMember = new AffiliateMember(customer);
String campaignTag = "android-invite";
affiliateMember.setCampaignTag(campaignTag);

Activity activity = this;
Talkable.showOffer(activity, affiliateMember);
...