An open API service indexing awesome lists of open source software.

https://github.com/florent37/adsmanager


https://github.com/florent37/adsmanager

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# AdsManager


Android app on Google Play

# Download

Buy Me a Coffee at ko-fi.com

[ ![Download](https://api.bintray.com/packages/florent37/maven/adsmanager/images/download.svg) ](https://bintray.com/florent37/maven/adsmanager/_latestVersion)
```java
dependencies {
compile 'com.github.florent37:adsmanager:1.0.3'
}
```

# Application

```java
final AdsManager adsManager = new AdsManager(this, R.string.admob_app, BuildConfig.DEBUG);
adsManager.showAdsOnDebug(true);
adsManager.setAdInvisibilityOnDebug(View.INVISIBLE);
```

# Banner

On activity
```java
adsManager.insertAdView(this, adContainer, R.string.admob_footer, AdSize.BANNER);
```

# Interstitial

```java
adsManager.loadAndShowInterstitial(R.string.admob_interstitial_install)
.subscribe(new Consumer() {
@Override
public void accept(Boolean aBoolean) throws Exception {
//closed
}
}, new Consumer() {
@Override
public void accept(Throwable throwable) throws Exception {
//error
}
});
```