https://github.com/florent37/adsmanager
https://github.com/florent37/adsmanager
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/florent37/adsmanager
- Owner: florent37
- License: apache-2.0
- Created: 2017-10-09T08:14:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-08T12:49:22.000Z (about 8 years ago)
- Last Synced: 2025-05-12T22:54:47.236Z (8 months ago)
- Language: Java
- Size: 139 KB
- Stars: 9
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AdsManager
# Download
[  ](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
}
});
```