GithubHelp home page GithubHelp logo

adchain's Introduction

AdChain

AdChain helps you to show ads.

Features

AdChain's unique set of features:

  • RemoteConfigHelper: Helper class for remote configs.
  • Custom Banner: Helps you to show custom banners via remote config urls.
  • Admob: Interstitial and banner.
  • Facebook: Interstitial, banner and native.
  • Amazon: Interstitial and banner.
  • Flurry: Interstitial and banner.
  • Ogury: Interstitial.
  • Unity: Interstitial.
  • AppLovin: Banner.
  • Toneshub: Make button as Toneshub link and feature BlinkButton view.

Add AdChain to your project:

AdChain is available on Jitpack. Please ensure that you are using the latest versions by checking here

Add the following Gradle configuration to your Android project:

// In your root build.gradle file:
buildscript {
    repositories {
        jcenter()
        maven { url 'https://jitpack.io' } // add repository
    }
}

// In your app projects build.gradle file:

dependencies {
    compile 'gs.oak.adchain:config:0.6.3' // use only for remote config.
    compile 'gs.oak.adchain:adapter-admob:0.6.3' // add adapters you want
}

Init remote config in onCreate of each Activity class

// In onCreate of Activites  class:
HashMap<String, Object> defaults = new HashMap<>();
defaults.put("show_splash1", true);
defaults.put("show_splash2", true);
// add default configs as hashmap ...
RemoteConfigHelper.init(defaults);
// In your Activity class:
new AdChainBuilder(this)
		.showAuto() //Configuration
		.add(AdmobAdAdapter.configureAndCreate("remote_config_key_to_enable_or_disable_admob_ad", "remote_config_key_of_admob_ad_unit_id"))
		.add(FlurryAdAdapter.checkAndCreate("remote_config_key_to_enable_or_disable_flurry_ad", "flurry_ad_space_name"))
		.add(AmazonAdAdapter.create("amazon_app_key")
		.startActivityAfterAdsFinished(SplashScreen2Activity.class)
		.build();

More Configurations

  • showAuto(): It displays ads automatically when they loaded.
  • showOnClick(R.id.button_id): Displays ads when button (with id 'button_id') click. It binds listener automatically
  • withStepByStep(true): Show one ad per calling 'showAds()' function of AdChain object. After all completed, it reload all ads.

adchain's People

Contributors

fgustovo avatar englez avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.