-
Notifications
You must be signed in to change notification settings - Fork 0
/
IAdManager_TEMPLATE.java
32 lines (27 loc) · 1.4 KB
/
IAdManager_TEMPLATE.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package yourowngame.com.yourowngame.classes.manager.interfaces;
import yourowngame.com.yourowngame.BuildConfig;
/** To use this file do the following:
* 1. Copy this file.
* 2. Rename the COPIED file AND the interface name of the copied file from IAdManager_TEMPLATE (1) -> IAdManager
* 2. Place your ADMOB id in the "ADMOB_ID" constant.
*
* COPY (not simply rename) this file AND
AFTER THAT RENAME the copied file from e.g. IAdManager_TEMPLATE (1).java to IAdManager.java
*/
public interface IAdManager_TEMPLATE {
String ADMOB_ID = "YOUR_ADMOB_ID";
boolean USE_TEST_ADS = true; // true, so REAL_ADS doesn't need to be filled.
/* UNCOMMENT and comment line above to use test ads automatically acc. to buildtype
boolean USE_TEST_ADS = BuildConfig.BUILD_TYPE.equals("debug"); //so the build type decides whether test ads are shown or not.*/
interface TEST_ADS {
String BANNER_AD_UNIT = "ca-app-pub-3940256099942544/6300978111";
String INTERSTITIAL_AD_UNIT = "ca-app-pub-3940256099942544/1033173712";
String REWARDED_AD_UNIT = "ca-app-pub-3940256099942544/5224354917";
//Native Advanced and native express could be also used! (see AdMob)
}
interface REAL_ADS { //Important: Real and TestAds interface should have the SAME members!
String BANNER_AD_UNIT = "AD_ID";
String INTERSTITIAL_AD_UNIT = "AD_ID";
String REWARDED_AD_UNIT = "AD_ID";
}
}