Skip to content

Instantly share code, notes, and snippets.

@ShaishavGandhi
Last active May 29, 2018 04:36
Show Gist options
  • Save ShaishavGandhi/888038ffef250deb8ee6c0b9b00fdff1 to your computer and use it in GitHub Desktop.
Save ShaishavGandhi/888038ffef250deb8ee6c0b9b00fdff1 to your computer and use it in GitHub Desktop.
RxAds
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