private static void eventCallback(InterstitialAdEvents adEvent, string eventMessage)
    {
        Debug.Log(adEvent);
        switch (adEvent)
        {
        case InterstitialAdEvents.Error:
            Debug.LogError(eventMessage);
            singleton.MessageText.text = eventMessage;
            break;

        case InterstitialAdEvents.Canceled:
            singleton.MessageText.text = "Ad Canceled!";
            break;

        case InterstitialAdEvents.Clicked:
            singleton.MessageText.text = "Ad Clicked!";
            break;

        case InterstitialAdEvents.Cached:
            adIsCahced = true;
            singleton.MessageText.text = "Ad Cached!";
            break;

        case InterstitialAdEvents.Shown:
            singleton.MessageText.text = "Ad Shown!";
            break;
        }
    }
Exemplo n.º 2
0
 private static void eventCallback(InterstitialAdEvents adEvent, string eventMessage)
 {
     Debug.Log(adEvent);
     if (adEvent == InterstitialAdEvents.Error)
     {
         Debug.LogError(eventMessage);
     }
     if (adEvent == InterstitialAdEvents.Cached)
     {
         ad.Show();
     }
 }
	private static void eventCallback(InterstitialAdEvents adEvent, string eventMessage)
	{
		Debug.Log(adEvent);
		switch (adEvent)
		{
			 case InterstitialAdEvents.Error:
				Debug.LogError(eventMessage);
				singleton.MessageText.text = eventMessage;
				break;

			case InterstitialAdEvents.Canceled:
				singleton.MessageText.text = "Ad Canceled!";
				break;

			case InterstitialAdEvents.Clicked:
				singleton.MessageText.text = "Ad Clicked!";
				break;

			case InterstitialAdEvents.Cached:
				adIsCahced = true;
				singleton.MessageText.text = "Ad Cached!";
				break;

			case InterstitialAdEvents.Shown:
				singleton.MessageText.text = "Ad Shown!";
				break;
		}
	}