TRReward
The reward object the SDK returns when a user earns a reward. Your reward callback receives a list of them. The iOS and Android SDKs use slightly different names and types for some properties, shown below.
Properties
| Property | iOS | Android | Description |
|---|---|---|---|
| Transaction identifier | transactionIdentifier (String?) | transactionIdentifier (String?) | Unique identifier for the transaction. Use it to deduplicate rewards in your app or in your server-to-server postback handling. |
| Placement tag | placementTag (String?) | placementTag (String?) | The placement tag where the reward was earned. |
| Placement identifier | placementIdentifier (String?) | placementIdentifier (String?) | The placement identifier where the reward was earned. |
| Currency name | currencyName (String?) | currencyName (String?) | Name of the rewarded currency. Note: This is the Currency name set in the Publisher Dashboard, not the Display name. |
| Reward amount | rewardAmount (Int) | rewardAmount (Float?) | Amount of currency rewarded (in your app's currency). |
| Payout event | payoutEvent (String?) | payoutEventType (String?) | Type of payout event — see Payout event values. |
In Java, use the getters (getRewardAmount(), getPayoutEventType(), and so on).
Payout event values
| Event | iOS payoutEvent | Android payoutEventType |
|---|---|---|
| User completed the profiling flow | profile_reward | PROFILE_REWARD |
| User started a survey but was disqualified | partial_payout | PARTIAL_PAYOUT |
| User successfully completed a survey | full_payout | FULL_PAYOUT |
| Quick Questions payout | quick_questions_payout | QUICK_QUESTIONS_PAYOUT |