How to automatically close rewarded video ad in onRewarded method

How to automatically close rewarded video ad in onRewarded method

By : user2172623
Date : October 23 2020, 08:10 AM
fixed the issue. Will look into that further After the rewarded video ad is displayed the onRewarded(RewardItem rewardItem) method is called and I want at this moment to close the full screen add automatically in order to display the reward to the user. How I do that? , You can call destroy(context) on the instance of Rewarded Video Ads
code :

Share : facebook icon twitter icon
AdMob Rewarded Video message on close video

AdMob Rewarded Video message on close video

By : Kostis TTT
Date : March 29 2020, 07:55 AM
This might help you Neither the SDK's APIs not the AdMob front-end allow you to customize this message.
Save rewarded ad value after close

Save rewarded ad value after close

By : TiredTortoise
Date : March 29 2020, 07:55 AM
I hope this helps . You should use the onSaveInstanceState(Bundle savedInstanceState) method in order to save the number of points.
You can do so by doing the following:
code :
//This is what will be used to recognize your number of points in the saved bundle.
static final String POINTS = "pointCount";

public void onSaveInstanceState(Bundle savedInstanceState) {
    // Save your number of points
    savedInstanceState.putInt(POINTS, pointCount);

public void onRestoreInstanceState(Bundle savedInstanceState) {

    // Restore your number of points and store them in your variable
    pointCount = savedInstanceState.getInt(POINTS);
How to close Youtube ads on video automatically?

How to close Youtube ads on video automatically?

By : lenin alberto delavi
Date : March 29 2020, 07:55 AM
this will help Having used YouTube API quite a bit over the years, I've tried to achieve what you are asking without any success.
Unfortunately, there is no way to close overlay ads automatically. This Google forum post confirms it: https://groups.google.com/forum/?fromgroups#!topic/youtube-api-gdata/qG733WIH6yE
Rewarded video ad resume method

Rewarded video ad resume method

By : earl pallaya
Date : March 29 2020, 07:55 AM
it should still fix some issue I found out what the problem was. My app on android was creating another instance when opened from another source, and that was causing the error message on the rewarded video.
I added android:launchMode="singleTask" on the manifest and it worked.
flutter - Rewarded Video Ads Error when Reload : "ad_not_loaded, show failed for rewarded video, no ad was loaded,

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

By : NO BZ
Date : October 07 2020, 07:00 AM
around this issue Seems like the issue was with the event completed. Check out this code.
code :
MobileAdTargetingInfo targetingInfo = MobileAdTargetingInfo(
  keywords: <String>['flutterio', 'beautiful apps'],
  contentUrl: 'https://flutter.io',
  childDirected: false,
  testDevices: <String>[], // Android emulators are considered test devices
bool _loaded = false;

void initState() {

  // load ad in the beginning
      .load(adUnitId: RewardedVideoAd.testAdUnitId, targetingInfo: targetingInfo)
      .catchError((e) => print("error in loading 1st time"))
      .then((v) => setState(() => _loaded = v));

  // ad listener
  RewardedVideoAd.instance.listener = (RewardedVideoAdEvent event, {String rewardType, int rewardAmount}) {
    if (event == RewardedVideoAdEvent.closed) {
          .load(adUnitId: RewardedVideoAd.testAdUnitId, targetingInfo: targetingInfo)
          .catchError((e) => print("error in loading again"))
          .then((v) => setState(() => _loaded = v));

Widget build(BuildContext context) {
  return Scaffold(
    body: Center(
      child: Text(
        "Loaded = ${_loaded}",
        style: TextStyle(fontSize: 32, fontWeight: FontWeight.bold),
    floatingActionButton: FloatingActionButton(
      // show ad on FAB click
      onPressed: () async {
        await RewardedVideoAd.instance.show().catchError((e) => print("error in showing ad: ${e.toString()}"));
        setState(() => _loaded = false);
Related Posts Related Posts :
  • How to employ keyed-hash message authentication code (HMAC) with Android Keystore
  • Prevent inviting existing users or previously invited
  • How to overwrite windowSoftInputMode using edit-config tag in cordova
  • Difference between Loader and AsyncTask
  • In Firebase Android, retrieve the value of a child node and save it in a boolean variable
  • when i scroll the custom list in my android app then the favorite icon which is part of the custom adapter changes on it
  • adding room dependency gives manifest merge error
  • Visibility of RelativeLayout change on scrolling Gridview
  • Strange LiveData behavior vs ObservableField
  • Which layout is used for clash of clans home screen? We can scroll it horizontal as well as vertical. Please illuminate
  • RxJava: Know when observable is finished and return Boolean Observable to the caller
  • how to use savedInstanceState to save camera information when the orientation change occure
  • Style React-Native via Styles.xml
  • Keyboard won't show after calling InputMethodManager.showSoftInput
  • Compiling ffmpeg for Android on OSX
  • Button does not get clicked on the first attempt
  • AR Core performance, learning curve and comparison with other frameworks
  • Codename one : Attaching images to email message fails
  • Error: Unsupported type 'viewItem' in Android build
  • setLayoutParams on ConstraintLayout does not change size
  • How to profile the fetch time of the android gradle libraries
  • Kotlin setOnclickListener
  • Naming convention for methods returning RxJava's Completable
  • Conv3D not working
  • FFmpeg audio video merge command
  • Do you have to use gradle-experimental for JNI?
  • How to get key hashes for facebook for facebook app?
  • ZXing not calling onActivityResult, When scanning QR Code
  • Integration of Android Native module with existing Xamarin Native Project
  • Restore RecyclerView state after rotating
  • ViewModelProviders java.lang.RuntimeException trying to instantiate class which inherit AndroidViewModel
  • SKD19 vs SDK24 - Usage of API documented as @since 1.8+
  • filter option in list view fragment activity
  • Picture from camera not showing up in second activity
  • How to change imageview according to screen size
  • How to copy Android Studio project to remote Git (NOT GitHub) server
  • How to get React-Native to announce specific accessibility message via AccessibiliyManager?
  • Change colors of com.tech.freak.wizardpager.ui.StepPagerStrip
  • Android fullscreen activity shows ActionBar
  • Turn on the screen when timer calls onFinish()
  • Would like a bit of clarification with SQLite database's onUpgrade method
  • Use ObjectBox with Libgdx
  • How to make combine Gregorian and Hijri calendar in Android?
  • Try to read text file from sdcard in other language
  • "App not installed" message when installed apk
  • How to execute a designated test suite class in Firebase Test Lab
  • play music with background service
  • background not visible on LG G3
  • should every View have an id?
  • Realm object server sync on low connection.
  • Correct way to add more views to adapter
  • Getting error in android support library
  • Instant app zip uploading error
  • "No emulator installed" error in Android Studio even though Intel HAXM is up and running
  • AsyncTask without leaks
  • SQLiteException : No such table found whereas a table was created
  • Using @Component.Builder with constructor params
  • No injector was found for fragment dagger 2.11
  • Android Volley Https SSL self signed and Google Maps API
  • Why does the onClickListener not work anymore in this example?
  • shadow
    Privacy Policy - Terms - Contact Us © voile276.org