Global Settings for Source code Aliendroid

Global Settings for Source code Aliendroid

A. Json Ads Formating

To use ads.json (remot ads), open SettingAlien.java

  1. Json in Source Code Aliendroid is used as online/remote ads.
  2. Remote ads used to replace ads without app updates.
  3. Fill 1 for active or 0 for dactive remot ads on ON_OFF_ADS
  4. Fill url json ads on JSON_URL, example https://aliendro.id/projek/ads.json
  5. Use notepad, notepad++, Sublime, or other text editor to edit Json entry file.
  6. All selected ads include Meta Audience Network, except startapp ads.
  7. Only two ads can be used as main and backup ads.
  8. Admob App ID and Applovin ID are stored in res-values-string.xml
  9. Json can upload to firebase, google drive, hosted, raw github, raw archive, etc

Ads entry is place to store advertisement ID being used, includes “redirect”, "backup ads" and “switch ads”. Json for Ads is used for online mode only. Advertisement can be set using backup or switch system, please look its guide in Settings.java.

  1. select_main_ads : for Main ads following this writing format "ADMOB", "GOOGLE-ADS", "UNITY", "APPLOVIN-M", "APPLOVIN-D", "IRON" and "STARTAPP". Please choose one ads network to be used.
    a. APPLOVIN-M uses for Ads MAX or Open Bidding Meta with SDK Key and placement id ads.
    b. APPLOVIN-D uses for Ads Discovery with SDK Key and Zone ID.
  2. select_backup_ads : for Backup/second ads following this writing format "ADMOB", "GOOGLE-ADS", "UNITY", "APPLOVIN-M", "APPLOVIN-D", "IRON" and "STARTAPP". Please choose one ads network to be used.
    a. APPLOVIN-M uses for Ads MAX or Open Bidding Meta with SDK Key and placement id ads.
    b. APPLOVIN-D uses for Ads Discovery with SDK Key and Zone ID.
  3. status_app : Status App must be filled by 0. This part is for redirecting suspended/ banned application by Google. If it happens (suspended/ banned), fill it with 1. By filling with 1 then the application will be locked and the user who uses application will be directed to the new application link.
  4. link_redirect :New application link (stay ‘live’) which is directed from status_app with entry 1. example : https://play.google.com/store/apps/details?id=  
  5. main_ads_intertitial : Main ID Intertitial Ads.
    a. For STARTAPP please fill 123456,
    b. if you selected APPLOVIN-D fill with 123456 or  Zone ID.
  6. backup_ads_intertitial : Backup ID Intertitial Ads.
    a. For STARTAPP please fill 123456,
    b. if you selected APPLOVIN-D fill with 123456 or  Zone ID.
  7. main_ads_banner : Main ID Banner Ads.
    a. For STARTAPP please fill 123456,
    b. if you selected APPLOVIN-D fill with 123456 or  Zone ID.
  8. backup_ads_banner : Backup ID Banner Ads.
    a. For STARTAPP please fill 123456,
    b. if you selected APPLOVIN-D fill with 123456 or  Zone ID.
  9. main_ads_reward : Main ID Reward Ads.
    a. For STARTAPP please fill 123456,
    b. if you selected APPLOVIN-D fill with 123456 or  Zone ID.
  10. backup_ads_reward : Backup ID Reward Ads.
    a. For STARTAPP please fill 123456,
    b. if you selected APPLOVIN-D fill with 123456 or  Zone ID.
  11. native_for_admob : ID Native only for ADMOB
  12. initialize_sdk : Initialize for Startapp, unity and IronSource
    a. Startapp uses App ID, initialize_sdk ="123456789"
    b. Unity uses GameID, initialize_sdk ="12345678"
    c. IronSource uses App Key, initialize_sdk ="107355779"
    d. If not uses, please fill with initialize_sdk="null" 
  13. initialize_sdk_backup_ads : Initialize for Startapp, unity and IronSource for backup ads
    a. Startapp uses App ID, initialize_sdk_backup_ads ="123456789"
    b. Unity uses GameID, initialize_sdk_backup_ads ="12345678"
    c. IronSource uses App Key, initialize_sdk_backup_ads ="107355779"
    d. If not uses, please fill with initialize_sdk="null" 
  14. high_paying_keyword_1 : HPK only for Admob and Applovin-D, fill with high paying keyword (HPK) Adsense/Admob like "Finance" or fill "" if not uses HPK.
  15. high_paying_keyword_2 : HPK only for Admob and Applovin-D, fill with high paying keyword (HPK) Adsense/Admob like "Finance" or fill "" if not uses HPK.
  16. high_paying_keyword_3 : HPK only for Admob and Applovin-D, fill with high paying keyword (HPK) Adsense/Admob like "Finance" or fill "" if not uses HPK.
  17. high_paying_keyword_4 : HPK only for Admob and Applovin-D, fill with high paying keyword (HPK) Adsense/Admob like "Finance" or fill "" if not uses HPK.
  18. high_paying_keyword_5 : HPK only for Admob and Applovin-D, fill with high paying keyword (HPK) Adsense/Admob like "Finance" or fill "" if not uses HPK.
  19. interval_intertitial : Fill in with number minimum 1. Interval is used as interstitial advertisement popping range based on click on listview.

B. Firebase Google Analytics

  • Use/Add Firebase

Firebase is not compulsory to install, please ignore it and follow the instructions how to ignore it. 

Google Analytics is a free service to analyze application traffic and performance. By installing Analytics, developer can monitor user amount, user origin, and page which is always used. Furthermore firebase can be connected to Admob account, so developer can see income metric based on daily usage (Daily Active User).

For the first step, please create project in firebase page https://console.firebase.google.com/u/0/

After creating new project, in dashboard page register applicationId name by pression Android icon. Package name must be same as ApplicationId which is used in application. 

Please Download Google-services.json and put it into source code. Take a look the image.

  • Not using firebase

If you don’t need firebase as analysis, developer can ignore it to create project by changing package_name which is located in google-services.json, retrieved from original source code, with applicationId name used.

C. Protect Installer

This section is used to protect apps from Apkpure, ApkMirror, AptoIde, getjar etc. Use this protection if you use Admob ads or restrict installation outside the Playstore.

Open SettingAlien.java and change PROTECT_APP = true, If you use this protection, the application can only be installed on Playstore, Amazone Store and Galaxy store

to get key BASE_64_LICENSE_Key, please Create app on Google Playstore

Open Monetization Setup and copy Licensing, paste to BASE_64_LICENSE_Key on SettingAlien.java

D. Publish Application

Every application which will be published or updating version must create application bundle using keystore. Open menu Build-Generate Signed Bundle/Apk.

Save the keystore file for application updating process. 

Choose Android App Bundle

Press Create New icon if you don’t have keystore yet.

Fill in all boxes which requires data entry.

After creating keystore, carry on making release.

Wait until App bundle(s) generated successfully notification pops up, click text locate, then you will be directed to application path folder created before.

E. Change Alien SDK multy ads

Source code Aliendroid uses Alien sdk multi ads for switch and backup ads. By using this sdk, the application can display 8 ads as selected, but the app size gets big. If you only use Admob, please use Alien Admob SDK.

To change sdk, please open Gradle Module and replace

implementation 'com.github.aliendroid-kim:AlienMultyAds:Saturn-03' or implementation 'com.github.aliendroid-kim:AlienMultyAds:+'

with

implementation 'com.github.aliendroid-kim:admobSdk:Sun-02' or implementation 'com.github.aliendroid-kim:admobSdk:+'

By using the Alien Admob SDK, the application only displays admob ads and the application size becomes small.