Ad Networks

We provider 4 ad networks

For monetization purposes, we provide 5 Ad Networks options with the switch ads method, you can choose the ad network you want to display in the application AppConfig/Ads, you can change the ad network anytime you want. The following is a list of ad networks that are supported in this application :

  1. Admob

  2. FAN

  3. Unity Ads

  4. Iron Source

  5. AppLovin

You can switch ad network on the go from Firebase Remote Config ( Optional )

AppConfig.java -> Ads

From this file you can change default ad network, unit id, interval interstitial, and disable or enable ad.

IMPORTANT : All ad network id units are placed in AppConfig.java except admob_app_id and applovin_sdk_key, both ids must be integrated programmatically in android code inside res/value/advertise.xml

/* config for Ad Network */
public static class Ads {

	/* enable disable ads */
	public boolean ad_enable = true;
	
	/* MULTI Ad network selection,
	 * Fill this array to enable ad backup flow, left this empty to use single ad_network above
	 * app will try show sequentially from this array
	 * example flow ADMOB > FAN > IRONSOURCE > UNITY */
	public AdNetworkType[] ad_networks = {
		AdNetworkType.ADMOB,
		AdNetworkType.FAN,
		AdNetworkType.IRONSOURCE,
		AdNetworkType.UNITY,
	};
	
	/* ad backup flow retry attempt each network */
	public Integer retry_every_ad_networks = 2;
	
	/* ad backup flow stat from beginning when all failed */
	public boolean retry_from_start = false;
	
	/* ad backup flow retry attempt cycle */
	public Integer retry_from_start_max = 2;
	
	public boolean ad_enable_gdpr = true;
	
	/* disable enable ads each page */
	public boolean ad_main_banner = true;
	public boolean ad_main_interstitial = true;
	public boolean ad_listing_details_banner = true;
	public boolean ad_news_details_banner = true;
	public boolean ad_category_details_banner = true;
	public boolean ad_search_banner = true;
	public boolean ad_splash_open_app = true;
	public boolean ad_global_open_app = true;
	
	/* show interstitial after several action, this value for action counter */
	public int ad_inters_interval = 5;
	
	/* maximum load time in second for open app ads */
	public Integer limit_time_open_app_loading = 8;
	
	/* ad unit for ADMOB */
	public String ad_admob_publisher_id = "pub-3940256099942544";
	public String ad_admob_banner_unit_id = "ca-app-pub-3940256099942544/6300978111";
	public String ad_admob_interstitial_unit_id = "ca-app-pub-3940256099942544/1033173712";
	public String ad_admob_open_app_unit_id = "ca-app-pub-3940256099942544/3419835294";
	
	/* ad unit for FAN */
	public String ad_fan_banner_unit_id = "IMG_16_9_APP_INSTALL#YOUR_PLACEMENT_ID";
	public String ad_fan_interstitial_unit_id = "IMG_16_9_APP_INSTALL#YOUR_PLACEMENT_ID";
	
	/* ad unit for IRON SOURCE */
	public String ad_ironsource_app_key = "172a53645";
	public String ad_ironsource_banner_unit_id = "DefaultBanner";
	public String ad_ironsource_interstitial_unit_id = "DefaultInterstitial";
	
	/* ad unit for UNITY */
	public String ad_unity_game_id = "4297717";
	public String ad_unity_banner_unit_id = "Banner_Android";
	public String ad_unity_interstitial_unit_id = "Interstitial_Android";
	
	/* ad unit for APPLOVIN */
	public String ad_applovin_banner_unit_id = "d62dc7470d3f119b";
	public String ad_applovin_interstitial_unit_id = "4e1b0167531b4dd8";
}

Last updated