예제 #1
0
    public void OnFinishLoadInterstitialAd(object sender, NendAdInterstitialLoadEventArgs args)
    {
        Handheld.StopActivityIndicator();

        NendAdInterstitialStatusCode statusCode = args.StatusCode;

        switch (statusCode)
        {
        case NendAdInterstitialStatusCode.SUCCESS:
            // Move to the next scene when Interstitial-AD load completed.
            Debug.Log(">> OnFinishLoadInterstitialAd: SUCCESS");
            SceneManager.LoadScene("First");
            break;

        default:
            // When failed to get of Interstitial-AD, try to reload.
            Debug.Log(">> OnFinishLoadInterstitialAd: FAILURE");
            ReloadAd();
            break;
        }
    }
예제 #2
0
    public void OnFinishLoadInterstitialAd(object sender, NendAdInterstitialLoadEventArgs args)
    {
        switch (args.StatusCode)
        {
        case NendAdInterstitialStatusCode.SUCCESS:
            Debug.Log(">> OnFinishLoadInterstitialAd: SUCCESS");
            break;

        case NendAdInterstitialStatusCode.INVALID_RESPONSE_TYPE:
            Debug.Log(">> OnFinishLoadInterstitialAd: INVALID_RESPONSE_TYPE");
            break;

        case NendAdInterstitialStatusCode.FAILED_AD_REQUEST:
            Debug.Log(">> OnFinishLoadInterstitialAd: FAILED_AD_REQUEST");
            break;

        case NendAdInterstitialStatusCode.FAILED_AD_DOWNLOAD:
            Debug.Log(">> OnFinishLoadInterstitialAd: FAILED_AD_DOWNLOAD");
            break;
        }
    }
예제 #3
0
    public void OnFinishLoadInterstitialAd(object sender, NendAdInterstitialLoadEventArgs args)
    {
        switch (args.StatusCode)
        {
        case NendAdInterstitialStatusCode.SUCCESS:
            Debug.Log("Load ad success");
            break;

        case NendAdInterstitialStatusCode.FAILED_AD_DOWNLOAD:
            Debug.Log("Failed ad download");
            break;

        case NendAdInterstitialStatusCode.FAILED_AD_REQUEST:
            Debug.Log("Failed ad request");
            break;

        case NendAdInterstitialStatusCode.INVALID_RESPONSE_TYPE:
            Debug.Log("Invalid response type");
            break;
        }
        Callback();
    }