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); }
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); }
public void HandleInterstitialFailedToLoad(object sender, AdFailedToLoadEventArgs args) { interstitial.LoadAd (createAdRequest ()); }
public void HandleAdFailedToLoad(object sender, AdFailedToLoadEventArgs args) { bannerView.LoadAd (createAdRequest ()); }
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); }
public void HandleInterstitialFailedToLoad(object sender, AdFailedToLoadEventArgs args) { Debug.Log("HandleInterstitialFailedToLoad event received with message: " + args.Message); }
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); }
public void HandleAdFailedToLoad(object sender, AdFailedToLoadEventArgs args) { bannerView.Destroy (); interstitial.Destroy (); }
public static void HandleAdFailedToLoad(object sender, AdFailedToLoadEventArgs args) { Debug.Log("Interstitial Failed to load: " + args.Message); // Handle the ad failed to load event. }
private void Intersititial_AdFailedToLoad(object sender, AdFailedToLoadEventArgs e) { //throw new System.NotImplementedException(); Debug.Log("Load google ads failed :" + e.Message); }
private void Banner_AdFailedToLoad(object sender, AdFailedToLoadEventArgs e) { // throw new System.NotImplementedException(); Debug.Log("Fail to load banner :" + e.Message); }
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); }
public void HandleAdFailedToLoad(object sender, AdFailedToLoadEventArgs args) { }
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); }
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); }
private void HandleInterstitialFailedToLoad(object sender, AdFailedToLoadEventArgs args) { if (OnAdFailedToLoad != null) OnAdFailedToLoad (args.Message); failedLoading = true; }