예제 #1
0
        public void UserDeclinedToViewAd(IAppLovinAd p0)
        {
            // This method will be invoked if the user selected "no" when asked if they want to view an ad.
            // If you've disabled the pre-video prompt in the "Manage Apps" UI on our website, then this method won't be called.

            Log("User declined to view ad");
        }
예제 #2
0
        public void UserOverQuota(IAppLovinAd p0, IDictionary <string, string> p1)
        {
            // Your user has already earned the max amount you allowed for the day at this point, so
            // don't give them any more money. By default we'll show them a alert explaining this,
            // though you can change that from the AppLovin dashboard.

            Log("Reward validation request exceeded quota with response: " + p1);
        }
예제 #3
0
        public void UserRewardRejected(IAppLovinAd p0, IDictionary <string, string> p1)
        {
            // Your user couldn't be granted a reward for this view. This could happen if you've blacklisted
            // them, for example. Don't grant them any currency. By default we'll show them an alert explaining this,
            // though you can change that from the AppLovin dashboard.

            Log("Reward validation request was rejected with response: " + p1);
        }
        public void AdReceived(IAppLovinAd ad)
        {
            Log("Interstitial Loaded");

            currentAd = ad;

            RunOnUiThread(() => showButton.Enabled = true);
        }
예제 #5
0
        public void UserRewardVerified(IAppLovinAd p0, IDictionary <string, string> p1)
        {
            // AppLovin servers validated the reward. Refresh user balance from your server.  We will also pass the number of coins
            // awarded and the name of the currency.  However, ideally, you should verify this with your server before granting it.

            // i.e. - "Coins", "Gold", whatever you set in the dashboard.
            var currencyName = p1["currency"];

            // For example, "5" or "5.00" if you've specified an amount in the UI.
            var amountGivenString = p1["amount"];

            Log("Rewarded " + amountGivenString + " " + currencyName);

            // By default we'll show a alert informing your user of the currency & amount earned.
            // If you don't want this, you can turn it off in the Manage Apps UI.
        }
예제 #6
0
        public void ValidationRequestFailed(IAppLovinAd p0, int responseCode)
        {
            if (responseCode == AppLovinErrorCodes.IncentivizedUserClosedVideo)
            {
                // Your user exited the video prematurely. It's up to you if you'd still like to grant
                // a reward in this case. Most developers choose not to. Note that this case can occur
                // after a reward was initially granted (since reward validation happens as soon as a
                // video is launched).
            }
            else if (responseCode == AppLovinErrorCodes.IncentivizedServerTimeout || responseCode == AppLovinErrorCodes.IncentivizedUnknownServerError)
            {
                // Some server issue happened here. Don't grant a reward. By default we'll show the user
                // a alert telling them to try again later, but you can change this in the
                // AppLovin dashboard.
            }
            else if (responseCode == AppLovinErrorCodes.IncentivizedNoAdPreloaded)
            {
                // Indicates that the developer called for a rewarded video before one was available.
                // Note: This code is only possible when working with rewarded videos.
            }

            Log("Reward validation request failed with error code: " + responseCode);
        }
예제 #7
0
 public void AdOpenedFullscreen(IAppLovinAd p0, AppLovinAdView p1)
 {
     Log("MRec opened fullscreen");
 }
예제 #8
0
 public void AdReceived(IAppLovinAd appLovinAd)
 {
     Log("Interstitial loaded");
     showButton.Enabled = true;
 }
예제 #9
0
 public void AdHidden(IAppLovinAd appLovinAd)
 {
     Log("Leader hidden");
 }
예제 #10
0
 public void VideoPlaybackEnded(IAppLovinAd p0, double p1, bool p2)
 {
     Log("Video Ended");
 }
예제 #11
0
 public void AdClicked(IAppLovinAd appLovinAd)
 {
     Log("Leader clicked");
 }
예제 #12
0
 public void AdDisplayed(IAppLovinAd appLovinAd)
 {
     Log("MRec displayed");
 }
예제 #13
0
 public void AdClicked(IAppLovinAd p0)
 {
     Log("Ad Click");
 }
예제 #14
0
 public void AdClicked(IAppLovinAd ad)
 {
     Log("Banner Clicked");
 }
예제 #15
0
 public void AdClicked(IAppLovinAd appLovinAd)
 {
     Log("MRec clicked");
 }
예제 #16
0
 public void AdHidden(IAppLovinAd ad)
 {
     Log("Banner Hidden");
 }
예제 #17
0
 public void AdDisplayed(IAppLovinAd ad)
 {
     Log("Banner Displayed");
 }
예제 #18
0
 public void AdReceived(IAppLovinAd ad)
 {
     Log("Banner loaded");
 }
예제 #19
0
 public void AdDisplayed(IAppLovinAd p0)
 {
     Log("Ad Displayed");
 }
예제 #20
0
 public void AdHidden(IAppLovinAd appLovinAd)
 {
     Log("MRec hidden");
 }
예제 #21
0
 public void AdHidden(IAppLovinAd p0)
 {
     Log("Ad Dismissed");
 }
예제 #22
0
 public void AdReceived(IAppLovinAd appLovinAd)
 {
     Log("MRec loaded");
 }
예제 #23
0
 public void VideoPlaybackBegan(IAppLovinAd p0)
 {
     Log("Video Started");
 }
예제 #24
0
 public void AdHidden(IAppLovinAd appLovinAd)
 {
     Log("Interstitial Hidden");
 }
예제 #25
0
 public void AdReceived(IAppLovinAd p0)
 {
     Log("Rewarded video loaded.");
     showButton.Enabled = true;
 }
예제 #26
0
 public void AdFailedToDisplay(IAppLovinAd p0, AppLovinAdView p1, AppLovinAdViewDisplayErrorCode p2)
 {
     Log("MRec failed to display with error code " + p2.ToString());
 }
예제 #27
0
 public void VideoPlaybackEnded(IAppLovinAd appLovinAd, double percentViewed, bool wasFullyViewed)
 {
     Log("Video Ended");
 }
예제 #28
0
 public void AdLeftApplication(IAppLovinAd p0, AppLovinAdView p1)
 {
     Log("MRec left application");
 }
예제 #29
0
 public void AdClosedFullscreen(IAppLovinAd p0, AppLovinAdView p1)
 {
     Log("MRec closed fullscreen");
 }
예제 #30
0
 public void AdDisplayed(IAppLovinAd appLovinAd)
 {
     Log("Leader displayed");
 }