Wish AdMob NEW - native ads

Douglas Farias

Expert
Licensed User
Longtime User
Hi all.
i see today google made a native ads for AdMob, this is already on GooglePlay Services and its easy(by admob) to use.

4IcwM98IBUnubRRlPoaufGm9ohe5Y5qT3IJmTb-slZj9Tr1AgSXCFyGrGC98Crw=h550
df9kqQLVb8pjFH_e2L8F4JMuvCYX6WHajqtBQ-_liXyzrlEFPhkMZZp6S20XfQ=h550


ezgif.com-gif-maker.gif


you can use ads on listview with this now.
with high eCPM

https://support.google.com/admob/answer/6240809
https://support.google.com/admob/answer/6239795
https://github.com/clockbyte/admobadapter

The code to call this is like
https://developers.google.com/admob/android/native
B4X:
AdLoader adLoader = new AdLoader.Builder(context, "ca-app-pub-3940256099942544/2247696110")
    .forAppInstallAd(new OnAppInstallAdLoadedListener() {
        @Override
        public void onAppInstallAdLoaded(NativeAppInstallAd appInstallAd) {
            // Show the app install ad.
        }
    })
    .forContentAd(new OnContentAdLoadedListener() {
        @Override
        public void onContentAdLoaded(NativeContentAd contentAd) {
            // Show the content ad.
        }
    })
    .withAdListener(new AdListener() {
        @Override
        public void onAdFailedToLoad(int errorCode) {
            // Handle the failure by logging, altering the UI, etc.
        }
    })
    .withNativeAdOptions(new NativeAdOptions.Builder()
            // Methods in the NativeAdOptions.Builder class can be
            // used here to specify individual options settings.
            .build())
    .build();

Someone here know add this to b4a and can make a tutorial or lib pls?
thx all
 
Top