Rewarded Admob ads

39 views
Skip to first unread message

Fuad Nassar

unread,
Jul 19, 2019, 10:08:57 PM7/19/19
to CodenameOne Discussions
hi,
Can I use AdmobFullScreen Library to make a rewarded ad or I need to do that using native interface

note: I tried using native interface for android and that was work as fine but the problem when do that for ios device,
then I tried to use AdmobFullScreen Library for ios like this:
 AdMobManager admob = new AdMobManager("ca-app-pub-3940256099942544/1712485313");
 admob.setAdsListener(new AdsListener() {
            @Override
            public void onAdClosed() {
               //  Here i set code to give user some coins
            }

            @Override
            public void onAdFailedToLoad(int i) {
            }

            @Override
            public void onAdLeftApplication() {
            }

            @Override
            public void onAdLoaded() {
            }

            @Override
            public void onAdOpened() {
            }
        });


is that right doing for ios or there a better way?

Shai Almog

unread,
Jul 20, 2019, 11:50:27 PM7/20/19
to CodenameOne Discussions
Hi,
I don't have experience with that. I'm aware that a past customer used a native interface to implement something like that. You can also change the code of the admob implementation to support this instead of starting from scratch then submit a pull request to add that feature.
Reply all
Reply to author
Forward
0 new messages