Last active
May 29, 2018 04:36
-
-
Save ShaishavGandhi/888038ffef250deb8ee6c0b9b00fdff1 to your computer and use it in GitHub Desktop.
RxAds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Disposable disposable = new RxAdLoader(context, "ad_unit_id") | |
.withNativeAdOptions(new NativeAdOptions.Builder().build()) | |
.loadNativeContentAd(new AdRequest.Builder().build()) | |
.subscribe(new Consumer<NativeContentAd>() { | |
@Override | |
public void accept(NativeContentAd nativeContentAd) throws Exception { | |
} | |
}, new Consumer<Throwable>() { | |
@Override | |
public void accept(Throwable throwable) throws Exception { | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment