Skip to content

Commit 064c184

Browse files
committed
Remove Batch Ads
1 parent 45519cf commit 064c184

File tree

14 files changed

+5
-1063
lines changed

14 files changed

+5
-1063
lines changed

README.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![Dashboard Items](https://raw.github.com/BatchLabs/android-sdk/master/readme_logo.png)
22

33
# Batch Sample Apps
4-
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.
55

66
You will need an up-to-date SDK and Android Studio installation in order to properly utilize this sample.
77

@@ -31,10 +31,7 @@ At this point, feel free to launch your app. If you select `Unlock`, you should
3131

3232
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.
3333

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
3835
The samples are configured with three static items: `No Ads`, `Pro Trial`, and `Lives`.
3936

4037
![Dashboard Items](https://raw.github.com/BatchLabs/android-sdk/master/readme_items.png)
@@ -47,7 +44,7 @@ While the names can vary in the *NAME* field, the *REFERENCE* is the case-sensit
4744

4845
*Lives* is an example of a resource, or consumable item. You can define the given quantity in the campaign.
4946

50-
### 6. Create campaign
47+
### 5. Create campaign
5148
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.
5249

5350
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
5855

5956
> 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.
6057
61-
### 7. Testing Restore
58+
### 6. Testing Restore
6259

6360
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.
6461

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
7263

7364
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.
7465
You will also be able to change the notification settings from the main menu.

Sample_Project/sample/app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,6 @@
3030
<category android:name="android.intent.category.LAUNCHER" />
3131
</intent-filter>
3232
</activity>
33-
<activity
34-
android:name=".activity.AdsActivity"
35-
android:label="@string/title_activity_ads"
36-
android:parentActivityName=".activity.MainActivity" >
37-
<meta-data
38-
android:name="android.support.PARENT_ACTIVITY"
39-
android:value=".activity.MainActivity" />
40-
</activity>
4133

4234
<activity
4335
android:name=".activity.NotificationSettingsActivity"
@@ -55,14 +47,6 @@
5547
android:name="android.support.PARENT_ACTIVITY"
5648
android:value="com.batch.android.sample.activity.MainActivity" />
5749
</activity>
58-
<activity
59-
android:name=".activity.NativeAdsActivity"
60-
android:label="@string/title_activity_native_ads"
61-
android:parentActivityName=".activity.AdsActivity" >
62-
<meta-data
63-
android:name="android.support.PARENT_ACTIVITY"
64-
android:value="com.batch.android.sample.activity.AdsActivity" />
65-
</activity>
6650

6751
<!-- Batch's Required manifest items -->
6852

@@ -78,10 +62,6 @@
7862
</intent-filter>
7963
</receiver>
8064

81-
<activity
82-
android:name="com.batch.android.AdActivity"
83-
android:theme="@style/com.batch.android.AdActivityTheme" />
84-
8565
</application>
8666

8767
</manifest>

Sample_Project/sample/app/src/main/java/com/batch/android/sample/BatchSampleApplication.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ public void onCreate()
4545

4646
Batch.setConfig(new Config("YOUR_API_KEY"));
4747

48-
// This app takes advantage of Ads' manual load system
49-
Batch.Ads.setAutoLoad(false);
50-
5148
updateNotificationSettings();
5249
}
5350

Sample_Project/sample/app/src/main/java/com/batch/android/sample/activity/AdsActivity.java

Lines changed: 0 additions & 137 deletions
This file was deleted.

Sample_Project/sample/app/src/main/java/com/batch/android/sample/activity/MainActivity.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@ public void onClick(View v)
2929
}
3030
});
3131

32-
findViewById(R.id.main_ads_button).setOnClickListener(new View.OnClickListener()
33-
{
34-
@Override
35-
public void onClick(View v)
36-
{
37-
startActivity(new Intent(MainActivity.this, AdsActivity.class));
38-
}
39-
});
40-
4132
findViewById(R.id.main_notification_settings_button).setOnClickListener(new View.OnClickListener()
4233
{
4334
@Override

Sample_Project/sample/app/src/main/java/com/batch/android/sample/activity/NativeAdsActivity.java

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)