Admob LibGDX Realization of rewarded
0
Good day, could you please assist. I am using LibGDX and AdMob . I have an interface: public interface AdService { void showRewarded(); boolean rewardedVideoAdIsLoaded(); } AndroidLauncher.java: public class AndroidLauncher extends AndroidApplication implements AdService{ private static final String AD_UNIT_ID_REWARDED = "ca-app-pub-ХХХХХХХХХХХХХ/ХХХХХХХХХ"; protected RewardedVideoAd rewardedVideoAd; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); AndroidApplicationConfiguration config = new AndroidApplicationConfiguration(); initialize(new Game(this), config); MobileAds.initialize(this, "ca-app-pubXXXXXXXXXX~XXXXXXXXXXXXXXXX"); rewardedVideoAd = MobileAds.getRewardedVideoAdInstance(this)...