rewardedvideoad

Show a progress Bar when Rewarded video Ads is loading

倖福魔咒の 提交于 2021-01-05 10:42:09
问题 I want to use Rewarded video ads (Admob) but I want to show a progress bar while the video ads is loading I already try to did it with async task just to see if the video will load but it didn't work @SuppressLint("StaticFieldLeak") public class videoAd extends AsyncTask<Void, Void, Void> { @Override protected void doInBackground(Void... voids) { runOnUiThread(new Runnable() { @Override public void run() { mRewardedVideoAd.loadAd("ca-app-pub-3940256099942544/5224354917", new AdRequest.Builder

Show a progress Bar when Rewarded video Ads is loading

佐手、 提交于 2021-01-05 10:42:05
问题 I want to use Rewarded video ads (Admob) but I want to show a progress bar while the video ads is loading I already try to did it with async task just to see if the video will load but it didn't work @SuppressLint("StaticFieldLeak") public class videoAd extends AsyncTask<Void, Void, Void> { @Override protected void doInBackground(Void... voids) { runOnUiThread(new Runnable() { @Override public void run() { mRewardedVideoAd.loadAd("ca-app-pub-3940256099942544/5224354917", new AdRequest.Builder

RewardedVideoAd - AdMob Mediation with Vungle - ErrorCode: 3

放肆的年华 提交于 2019-12-12 18:37:45
问题 This is my first time working with video ads. I have followed the AdMob guide of implementing RewardedVideoAd from here and the documentation of Vungle from here. I did all the steps written in these guides. However, when I deploy my app on my mobile, the RewardedVideoAd always fails to load. I tested it on my mobile and the emulator, and none of them worked. It always calls onRewardedVideoAdFailedToLoad. I have the latest Google Play Services installed on both devices. My app is still not

flutter - Rewarded Video Ads Error when Reload : “ad_not_loaded, show failed for rewarded video, no ad was loaded, null)”

老子叫甜甜 提交于 2019-12-11 17:16:41
问题 i try to reload Rewarded Video Ads , when i call RewardedVideoAd.instance.load(adUnitId: "xxx", targetingInfo: xyz); i find below error : W/MessageQueue(13672): Handler (android.os.Handler) {1a13e8a} sending message to a Handler on a dead thread W/MessageQueue(13672): java.lang.IllegalStateException: Handler (android.os.Handler) {1a13e8a} sending message to a Handler on a dead thread W/MessageQueue(13672): at android.os.MessageQueue.enqueueMessage(MessageQueue.java:543) W/MessageQueue(13672):

rewarded video ad example in libGDX

帅比萌擦擦* 提交于 2019-12-09 07:13:28
问题 I've been looking for an example, but didn't found it. I found one without libgdx and some why it didn't work, but app also didn't crash. public class AndroidLauncher extends AndroidApplication implements AdHandler, RewardedVideoAdListener{ ... RewardedVideoAd rewardedVideoAd = MobileAds.getRewardedVideoAdInstance(this); rewardedVideoAd.setRewardedVideoAdListener(this); rewardedSetup(); private void rewardedSetup(){ if (!rewardedVideoAd.isLoaded()){ rewardedVideoAd.loadAd("ca-app-pub

rewarded video ad example in libGDX

你说的曾经没有我的故事 提交于 2019-12-03 21:56:00
I've been looking for an example, but didn't found it. I found one without libgdx and some why it didn't work, but app also didn't crash. public class AndroidLauncher extends AndroidApplication implements AdHandler, RewardedVideoAdListener{ ... RewardedVideoAd rewardedVideoAd = MobileAds.getRewardedVideoAdInstance(this); rewardedVideoAd.setRewardedVideoAdListener(this); rewardedSetup(); private void rewardedSetup(){ if (!rewardedVideoAd.isLoaded()){ rewardedVideoAd.loadAd("ca-app-pub-683510441556959xxxxxxxxx", new AdRequest.Builder().build()); } @Override public void onRewardedVideoAdLoaded()