App Config

We collect all app configuration into one file, named AppConfig.java from this app config file you can change many things like : Channel ID, Playlist ID, Youtube API key, enable disable ad, select ad networks, put unit id for ad, and etc.

Here you can see AppConfig code

AppConfig.java
// How to get channel_id & playlist_id --> http://blog.dream-space.web.id/?p=185
public static String channel_id = "UCCw71tkKLvdxUosX8_1btgw";
public static String playlist_id = "UUCw71tkKLvdxUosX8_1btgw";

// How to to get youtube_api_key --> http://blog.dream-space.web.id/?p=178
public static String youtube_api_key = "AIzaSyAGmXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
public static boolean load_live_video = true;
public static int live_video_expired = 24;

/* ------------------------------------------------------------------------------------------ */

public static long app_version = 0;
public static boolean force_update = false;

public static String youtube_url = "https://www.youtube.com/watch?v=";
public static int max_load_video = 40;
public static int max_retry_info = 3;

/* ------------------------------------------------------------------------------------------ */

/* FCM notification Topic, please don't change if you don't know about this */
public static String notif_topic = "ALL-DEVICE";

/* ------------------------------------------------------------------------------------------ */

public static boolean ad_enable = true;
public static AdNetworkType ad_network = AdNetworkType.ADMOB;

public static boolean ads_main_banner = true;
public static boolean ads_main_interstitial = true;
public static boolean ads_playlist_details_interstitial = true;
public static boolean ads_search_page_banner = true;
public static boolean ads_search_page_interstitial = true;

public static boolean enable_gdpr = true;
public static int ad_inters_interval = 1;

public static String ad_admob_publisher_id = "pub-3239677920600357";
public static String ad_admob_banner_unit_id = "ca-app-pub-3940256099942544/6300978111";
public static String ad_admob_interstitial_unit_id = "ca-app-pub-3940256099942544/1033173712";

public static String ad_fan_banner_unit_id = "IMG_16_9_APP_INSTALL#YOUR_PLACEMENT_ID";
public static String ad_fan_interstitial_unit_id = "IMG_16_9_APP_INSTALL#YOUR_PLACEMENT_ID";

public static String ad_applovin_banner_unit_id = "b6e843745003e8b4";
public static String ad_applovin_interstitial_unit_id = "14f6667779c07095";

public static String ad_unity_game_id = "4160625";
public static String ad_unity_banner_unit_id = "Banner_Android";
public static String ad_unity_interstitial_unit_id = "Interstitial_Android";

Last updated