You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The samples are minimal examples demonstrating proper integrations of the Batch SDK, including implementation of Batch Unlock, Batch Ads, and Batch Push functionality.
4
+
The samples are minimal examples demonstrating proper integrations of the Batch SDK, including implementation of Batch Unlock and Batch Push functionality.
5
5
6
6
You will need an up-to-date SDK and Android Studio installation in order to properly utilize this sample.
7
7
@@ -31,10 +31,7 @@ At this point, feel free to launch your app. If you select `Unlock`, you should
31
31
32
32
If you are using the wizard, you can now click `Test` and should receive a confirmation of your integration if you launched the app with your API key.
33
33
34
-
### 4. Enable ads
35
-
In the settings menu, activate *interstitial ads* under *Ads*.
36
-
37
-
### 5. Add items for Batch Unlock
34
+
### 4. Add items for Batch Unlock
38
35
The samples are configured with three static items: `No Ads`, `Pro Trial`, and `Lives`.
@@ -47,7 +44,7 @@ While the names can vary in the *NAME* field, the *REFERENCE* is the case-sensit
47
44
48
45
*Lives* is an example of a resource, or consumable item. You can define the given quantity in the campaign.
49
46
50
-
### 6. Create campaign
47
+
### 5. Create campaign
51
48
In the campaign screen of your dashboard, create a new *Unlock* campaign. You can use any of the wizard options, or choose a *Custom Offer* for manual setup.
52
49
53
50
As long as the conditions (time, user targeting, URL scheme, capping) match when you launch the app, you will recieve whatever configuration of features and resources you specify. You will also recieve the `reward_message` custom parameter, sent as alert, to give feedback to the user about the offer redeemed.
@@ -58,17 +55,11 @@ In this example, `No Ads` is given in the offer with *restore* enabled, `Pro Tri
58
55
59
56
> Note: If you set a campaign targeting only new users, ensure that you're running the app for the first time on the device, otherwise it will be considered an existing user. Delete and reinstall to be considered new.
60
57
61
-
### 7. Testing Restore
58
+
### 6. Testing Restore
62
59
63
60
To test the restore functionality, delete the app from your testing device and then reinstall from Android Studio. Upon relaunch you will see that your inventories have been reset to defaults. Within *Unlock*, select *Restore* and you will see a confirmation of the restore. Your inventory will now reflect any content you have enabled for restoration.
64
61
65
-
### 8. Testing Ads
66
-
67
-
To test the ads functionality, select *Manually load an interstitial* under *Ads*. If an ad is available, it will be reflected in the status message and *Display interstitial* will become available. Select it to display a preview of a Batch interstitial ad.
68
-
69
-
You can also test in-feed Native Ads from here.
70
-
71
-
### 9. Testing Push
62
+
### 7. Testing Push
72
63
73
64
To test the push functionality, add your GCM Sender ID in `BatchSampleApplication.java`. Your token will be logged in your device's logcat, which you can use in the dashboard's test push function. This can be found on the Message screen of the push campaign creation wizard.
74
65
You will also be able to change the notification settings from the main menu.
0 commit comments