Traver
2.1
2.1
  • Welcome
  • ADMIN PANEL
    • Import Project
    • Structure
    • Database
    • Configuration
    • Notification
    • Ad Networks
  • ANDROID
    • Installation
    • Import Project
    • Firebase [must]
    • Google Maps
    • Google Sign In
    • Structure
    • API URL
    • Ad Networks
    • Room DB
  • Migration
Powered by GitBook
On this page
  1. ANDROID

Ad Networks

PreviousAPI URLNextRoom DB

For monetization we provide 4 Ad Network display on android app, you can choose which ad networks from admin panel, please see page Ad Networks at admin panel Docs:

Configuration ad networks Admob and AppLovin on android side you only need to change this, at file res/values/advertise.xml

Disable Ads

Easy way to disable or enable particular ad in the app, you only need to set boolean value with TRUE or FALSE

AppConfig.java
public class AppConfig {

    // flag for enable/disable all ads
    private static final boolean ADS_ENABLE = true;

    // flag for display ads (change true & false ant the end only )

    public static final boolean ADS_MAIN_BANNER = ADS_ENABLE && true;
    public static final boolean ADS_MAIN_INTERS = ADS_ENABLE && true;

    public static final boolean ADS_DETAILS_LISTING_BANNER = ADS_ENABLE && true;
    public static final boolean ADS_DETAILS_LISTING_NATIVE = ADS_ENABLE && true;
    public static final boolean ADS_DETAILS_NEWS_NATIVE = ADS_ENABLE && true;

    public static final boolean ADS_SEARCH_BANNER = ADS_ENABLE && true;
    public static final boolean ADS_SEARCH_INTERS = ADS_ENABLE && true;
    public static final boolean ADS_SEARCH_NATIVE = ADS_ENABLE && true;

    public static final boolean ADS_COMMENT_BANNER = ADS_ENABLE && true;

    public static final boolean ADS_SETTINGS_BANNER = ADS_ENABLE && true;
	
	. . .
}
Ad Networks