コード例 #1
0
 private void OnFailedToLoadHandler(object sender, gmd.AdFailedToLoadEventArgs e)
 {
     if (null != OnError)
     {
         OnError(this, new AdErrorEventArgs(AdError.GAM_FailedToLoad, e.Message));
     }
 }
コード例 #2
0
 void onAdFailedToLoad(string errorReason)
 {
     AdFailedToLoadEventArgs args = new AdFailedToLoadEventArgs() {
         Message = errorReason
     };
     OnAdFailedToLoad(this, args);
 }
コード例 #3
0
ファイル: AdHandler.cs プロジェクト: Greg-Rus/SmallCritters
 public void HandleOnAdFailedToLoad(object sender, AdFailedToLoadEventArgs args)
 {
     isAdFinished = true;
     interstitial.Destroy();
     ReportAdLoadFailure(args);
     StartCoroutine(ProcessAdWatched());
 }
コード例 #4
0
 void IAdListener.FireAdFailedToLoad(string message)
 {
     AdFailedToLoadEventArgs args = new AdFailedToLoadEventArgs() {
         Message = message
     };
     AdFailedToLoad(this, args);
 }
コード例 #5
0
	public void HandleAdFailedToLoad(object sender, AdFailedToLoadEventArgs args)
	{
		// Called when an ad request failed to load.
		SendMessage ("OnAdFailedToLoad", args.Message, SendMessageOptions.DontRequireReceiver);
	}
コード例 #6
0
ファイル: AdmobScript.cs プロジェクト: k4us/KlaKlok
 public void HandleInterstitialFailedToLoad(object sender, AdFailedToLoadEventArgs args)
 {
     interstitial.LoadAd (createAdRequest ());
 }
コード例 #7
0
ファイル: AdmobScript.cs プロジェクト: k4us/KlaKlok
 public void HandleAdFailedToLoad(object sender, AdFailedToLoadEventArgs args)
 {
     bannerView.LoadAd (createAdRequest ());
 }
コード例 #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));

	}
コード例 #9
0
 private static void RewardBasedVideoAdDidFailToReceiveAdWithErrorCallback(
     IntPtr rewardBasedVideoAdClient, string error)
 {
     RewardBasedVideoAdClient client = IntPtrToRewardBasedVideoClient(
         rewardBasedVideoAdClient);
     AdFailedToLoadEventArgs args = new AdFailedToLoadEventArgs()
     {
         Message = error
     };
     client.OnAdFailedToLoad(client, args);
 }
コード例 #10
0
 public void HandleInterstitialFailedToLoad(object sender, AdFailedToLoadEventArgs args)
 {
     Debug.Log("HandleInterstitialFailedToLoad event received with message: " + args.Message);
 }
コード例 #11
0
ファイル: AdsController.cs プロジェクト: hostrings/LudoOnline
 private void HandleOnAdFailedToLoad(object sender, GoogleMobileAds.Api.AdFailedToLoadEventArgs args)
 {
     Debug.Log("Admob ad failed to load " + args.Message);
 }
コード例 #12
0
 private static void InterstitialDidFailToReceiveAdWithErrorCallback(
         IntPtr interstitialClient, string error)
 {
     InterstitialClient client = IntPtrToInterstitialClient(interstitialClient);
     AdFailedToLoadEventArgs args = new AdFailedToLoadEventArgs() {
         Message = error
     };
     client.OnAdFailedToLoad(client, args);
 }
コード例 #13
0
 public void HandleAdFailedToLoad(object sender, AdFailedToLoadEventArgs args)
 {
     bannerView.Destroy ();
     interstitial.Destroy ();
 }
コード例 #14
0
ファイル: AdControl.cs プロジェクト: yizhengtutu/snakeX
 public static void HandleAdFailedToLoad(object sender, AdFailedToLoadEventArgs args)
 {
     Debug.Log("Interstitial Failed to load: " + args.Message);
     // Handle the ad failed to load event.
 }
コード例 #15
0
 private void Intersititial_AdFailedToLoad(object sender, AdFailedToLoadEventArgs e)
 {
     //throw new System.NotImplementedException();
     Debug.Log("Load google ads failed :" + e.Message);
 }
コード例 #16
0
 private void Banner_AdFailedToLoad(object sender, AdFailedToLoadEventArgs e)
 {
     // throw new System.NotImplementedException();
     Debug.Log("Fail to load banner :" + e.Message);
 }
コード例 #17
0
ファイル: AdHandler.cs プロジェクト: Greg-Rus/SmallCritters
 private void ReportAdLoadFailure(AdFailedToLoadEventArgs args)
 {
     UnityEngine.Analytics.Analytics.CustomEvent("FailedToLoadAd", new Dictionary<string, object> { { "ErrorMessage", args.Message } });
 }
コード例 #18
0
 private static void NativeExpressAdViewDidFailToReceiveAdWithErrorCallback(
     IntPtr nativeExpressClient, string error)
 {
     NativeExpressAdClient client = IntPtrToNativeExpressAdClient(nativeExpressClient);
     AdFailedToLoadEventArgs args = new AdFailedToLoadEventArgs()
     {
         Message = error
     };
     client.OnAdFailedToLoad(client, args);
 }
コード例 #19
0
    //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);
    }
コード例 #20
0
 public void HandleAdFailedToLoad(object sender, AdFailedToLoadEventArgs args)
 {
     print("HandleFailedToReceiveAd event received with message: " + args.Message);
 }
コード例 #21
0
 public void HandleAdFailedToLoad(object sender, AdFailedToLoadEventArgs args)
 {
 }
コード例 #22
0
 private static void AdViewDidFailToReceiveAdWithErrorCallback(
         IntPtr bannerClient, string error)
 {
     BannerClient client = IntPtrToBannerClient(bannerClient);
     AdFailedToLoadEventArgs args = new AdFailedToLoadEventArgs()
     {
         Message = error
     };
     client.OnAdFailedToLoad(client, args);
 }
コード例 #23
0
 public void HandleRewardBasedVideoFailedToLoad(object sender, AdFailedToLoadEventArgs args)
 {
     print("HandleRewardBasedVideoFailedToLoad event received with message: " + args.Message);
 }
コード例 #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));

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