Answers for "admost rewarded"

2

admost rewarded

javaCopyAdMostInterstitial VIDEO = new AdMostInterstitial(ACTIVITY, < ZONE_ID >, new AdMostAdListener() {
        @Override
         public void onReady(String network, int ecpm) {
            // It indicates that the rewarded video ad is loaded and ready to show.
        }
        @Override
        public void onFail(int errorCode) {
          // It indicates that the rewarded video ad received no-fill response from all of its placements.
          // Therefore, the ad can not be shown.
          // Warning: Attempting to load a new ad from the onFail() methods is strongly discouraged.
          // If you must load an ad from onFail() ensure to limit ad load retries to avoid continuous
          // failed ad requests in situations such as limited network connectivity.

        }
        @Override
        public void onDismiss(String message) {
          // It indicates that the rewarded video ad is closed by clicking cross button/back button.
          // It does not mean that the user deserves to receive a reward. You need to check whether onComplete(String network) callback is called or not
        }
        @Override
        public void onComplete(String network) {
          // It indicates that the user deserves to receive a reward. You may need to store this information in a variable and give a reward
          // to the user after onDismiss(String message) callback is called by showing some animations for instance.
          // Note: If onComplete(String network) callback is called for the ad, it is always called before onDismiss(String message) callback.
        }
        @Override
        public void onShown(String network) {
          // It indicates that the loaded rewarded video ad is shown to the user.(Note: It does not mean that the user deserves a reward)
          // It is immediately called after the loaded ad is shown to the user using VIDEO.show()
        }
        @Override
        public void onClicked(String s) {
            // It indicates that the video ad is clicked.
        }
        @Override
        public void onStatusChanged(int statusCode) {
            // This callback will be triggered only when frequency cap ended.
            // status code
            // 1 - AdMost.AD_STATUS_CHANGE_FREQ_CAP_ENDED
        }
		
    });



//Load for video
VIDEO.refreshAd(AUTO_SHOW);
Posted by: Guest on August-27-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language