Exemplo n.º 1
0
 private void OnFailedToLoadHandler(object sender, gmd.AdFailedToLoadEventArgs e)
 {
     if (null != OnError)
     {
         OnError(this, new AdErrorEventArgs(AdError.GAM_FailedToLoad, e.Message));
     }
 }
 void onAdFailedToLoad(string errorReason)
 {
     AdFailedToLoadEventArgs args = new AdFailedToLoadEventArgs() {
         Message = errorReason
     };
     OnAdFailedToLoad(this, args);
 }
Exemplo n.º 3
0
 public void HandleOnAdFailedToLoad(object sender, AdFailedToLoadEventArgs args)
 {
     isAdFinished = true;
     interstitial.Destroy();
     ReportAdLoadFailure(args);
     StartCoroutine(ProcessAdWatched());
 }
 void IAdListener.FireAdFailedToLoad(string message)
 {
     AdFailedToLoadEventArgs args = new AdFailedToLoadEventArgs() {
         Message = message
     };
     AdFailedToLoad(this, args);
 }
	public void HandleAdFailedToLoad(object sender, AdFailedToLoadEventArgs args)
	{
		// Called when an ad request failed to load.
		SendMessage ("OnAdFailedToLoad", args.Message, SendMessageOptions.DontRequireReceiver);
	}
Exemplo n.º 6
0
 public void HandleInterstitialFailedToLoad(object sender, AdFailedToLoadEventArgs args)
 {
     interstitial.LoadAd (createAdRequest ());
 }
Exemplo n.º 7
0
 public void HandleAdFailedToLoad(object sender, AdFailedToLoadEventArgs args)
 {
     bannerView.LoadAd (createAdRequest ());
 }
Exemplo n.º 8
0
	private static void HandleRewardBasedVideoFailedToLoad(object sender, AdFailedToLoadEventArgs args)
	{

		Debug.Log("Rewarded Video Failed to load: " + args.Message);
		// Handle the ad failed to load event.

		Instance.StartCoroutine(WaitAndCreateRewardedVideoRequest(Instance.timeout));

	}
 private static void RewardBasedVideoAdDidFailToReceiveAdWithErrorCallback(
     IntPtr rewardBasedVideoAdClient, string error)
 {
     RewardBasedVideoAdClient client = IntPtrToRewardBasedVideoClient(
         rewardBasedVideoAdClient);
     AdFailedToLoadEventArgs args = new AdFailedToLoadEventArgs()
     {
         Message = error
     };
     client.OnAdFailedToLoad(client, args);
 }
Exemplo n.º 10
0
 public void HandleInterstitialFailedToLoad(object sender, AdFailedToLoadEventArgs args)
 {
     Debug.Log("HandleInterstitialFailedToLoad event received with message: " + args.Message);
 }
Exemplo n.º 11
0
 private void HandleOnAdFailedToLoad(object sender, GoogleMobileAds.Api.AdFailedToLoadEventArgs args)
 {
     Debug.Log("Admob ad failed to load " + args.Message);
 }
 private static void InterstitialDidFailToReceiveAdWithErrorCallback(
         IntPtr interstitialClient, string error)
 {
     InterstitialClient client = IntPtrToInterstitialClient(interstitialClient);
     AdFailedToLoadEventArgs args = new AdFailedToLoadEventArgs() {
         Message = error
     };
     client.OnAdFailedToLoad(client, args);
 }
Exemplo n.º 13
0
 public void HandleAdFailedToLoad(object sender, AdFailedToLoadEventArgs args)
 {
     bannerView.Destroy ();
     interstitial.Destroy ();
 }
Exemplo n.º 14
0
 public static void HandleAdFailedToLoad(object sender, AdFailedToLoadEventArgs args)
 {
     Debug.Log("Interstitial Failed to load: " + args.Message);
     // Handle the ad failed to load event.
 }
Exemplo n.º 15
0
 private void Intersititial_AdFailedToLoad(object sender, AdFailedToLoadEventArgs e)
 {
     //throw new System.NotImplementedException();
     Debug.Log("Load google ads failed :" + e.Message);
 }
Exemplo n.º 16
0
 private void Banner_AdFailedToLoad(object sender, AdFailedToLoadEventArgs e)
 {
     // throw new System.NotImplementedException();
     Debug.Log("Fail to load banner :" + e.Message);
 }
Exemplo n.º 17
0
 private void ReportAdLoadFailure(AdFailedToLoadEventArgs args)
 {
     UnityEngine.Analytics.Analytics.CustomEvent("FailedToLoadAd", new Dictionary<string, object> { { "ErrorMessage", args.Message } });
 }
 private static void NativeExpressAdViewDidFailToReceiveAdWithErrorCallback(
     IntPtr nativeExpressClient, string error)
 {
     NativeExpressAdClient client = IntPtrToNativeExpressAdClient(nativeExpressClient);
     AdFailedToLoadEventArgs args = new AdFailedToLoadEventArgs()
     {
         Message = error
     };
     client.OnAdFailedToLoad(client, args);
 }
    //Rewarded video ad events
    //RewardBasedVideoAd provides ad events to notify you about the ad's lifecycle. These events are of type EventHandler. This example demonstrates how to register for ad events on a rewarded video ad:

    // Reward based video instance is a singleton. Register handlers once to
    // avoid duplicate events.

    //Since a rewarded video instance is a singleton object, we recommend registering for ad events only once to avoid duplicate events.
    //The OnAdRewarded event is the only event that contains special event arguments.It passes an instance of Reward with a Type and Amount describing the reward given to the user.
    public void HandleRewardBasedVideoFailedToLoad(object sender, AdFailedToLoadEventArgs args)
    {
        GamePlay.instance.ButtonAddcoin.SetActive(false);
        print("HandleRewardBasedVideoFailedToLoad event received with message: " + args.Message);
    }
 public void HandleAdFailedToLoad(object sender, AdFailedToLoadEventArgs args)
 {
     print("HandleFailedToReceiveAd event received with message: " + args.Message);
 }
Exemplo n.º 21
0
 public void HandleAdFailedToLoad(object sender, AdFailedToLoadEventArgs args)
 {
 }
Exemplo n.º 22
0
 private static void AdViewDidFailToReceiveAdWithErrorCallback(
         IntPtr bannerClient, string error)
 {
     BannerClient client = IntPtrToBannerClient(bannerClient);
     AdFailedToLoadEventArgs args = new AdFailedToLoadEventArgs()
     {
         Message = error
     };
     client.OnAdFailedToLoad(client, args);
 }
 public void HandleRewardBasedVideoFailedToLoad(object sender, AdFailedToLoadEventArgs args)
 {
     print("HandleRewardBasedVideoFailedToLoad event received with message: " + args.Message);
 }
Exemplo n.º 24
0
	private static void HandleOnInterstitialFailedToLoad(object sender, AdFailedToLoadEventArgs args)
	{

		Debug.Log("Instertitial Failed to load: " + args.Message);
		// Handle the ad failed to load event.

		Instance.StartCoroutine(WaitAndCreateInterstitialRequest(Instance.timeout));

	}
 public void HandleInterstitialFailedToLoad(object sender, AdFailedToLoadEventArgs args)
 {
     loaded = false;
     print("HandleInterstitialFailedToLoad event received with message: " + args.Message);
 }
 private static void AdLoaderDidFailToReceiveAdWithErrorCallback(
     IntPtr adLoader, string error)
 {
     AdLoaderClient client = IntPtrToAdLoaderClient(adLoader);
     AdFailedToLoadEventArgs args = new AdFailedToLoadEventArgs()
     {
         Message = error
     };
     client.OnAdFailedToLoad(client, args);
 }
Exemplo n.º 27
0
	private void HandleInterstitialFailedToLoad(object sender, AdFailedToLoadEventArgs args)
	{
		if (OnAdFailedToLoad != null) OnAdFailedToLoad (args.Message);
		failedLoading = true;
	}