public DefaultAdNetworks(BannerAdNetwork banner, InterstitialAdNetwork interstitial, RewardedAdNetwork rewarded, RewardedInterstitialAdNetwork rewardedInterstitial) { bannerAdNetwork = banner; interstitialAdNetwork = interstitial; rewardedAdNetwork = rewarded; rewardedInterstitialNetwork = rewardedInterstitial; }
private static void OnInternalInterstitialAdCompleted(InterstitialAdNetwork network, AdLocation location) { if (InterstitialAdCompleted != null) { InterstitialAdCompleted(network, location); } }
private void OnInterstitialAdCompleted(InterstitialAdNetwork network, AdPlacement placement) { StartCoroutine(DelayCoroutine(GetPopupDelayTime((AdNetwork)network), () => NativeUI.Alert("Interstitial Ad Completed", string.Format( "Interstitial ad has been closed. Network: {0}, Placement: {1}", network, AdPlacement.GetPrintableName(placement))))); Debug.Log(string.Format( "Interstitial ad has been closed. Network: {0}, Placement: {1}", network, AdPlacement.GetPrintableName(placement))); }
// The event handler void InterstitialAdCompletedHandler(InterstitialAdNetwork network, AdLocation location) { Debug.Log("Interstitial ad has been closed."); StartCoroutine(AsyncLoad()); }
void Advertising_InterstitialAdCompleted(InterstitialAdNetwork network, AdPlacement loc) { adNetwork.Value = network; Fsm.Event(eventTarget, adCompletedEvent); }
private void OnInterstitialAdCompleted(InterstitialAdNetwork network, AdPlacement placement) { }
public static void ShowInterstitialAd(InterstitialAdNetwork adNetwork, AdLocation location) { ShowInterstitialAd(adNetwork, location.ToAdPlacement()); }
public static bool IsInterstitialAdReady(InterstitialAdNetwork adNetwork, AdLocation location) { return(IsInterstitialAdReady(adNetwork, location.ToAdPlacement())); }
/// <summary> /// Shows the interstitial ad of the specified ad network at the specified placement. /// </summary> /// <param name="adNetwork">Ad network.</param> /// <param name="placement">Placement. Pass <c>AdPlacement.Default</c> to specify the default placement.</param> public static void ShowInterstitialAd(InterstitialAdNetwork adNetwork, AdPlacement placement) { ShowInterstitialAd(GetWorkableAdClient((AdNetwork)adNetwork), placement); }
/// <summary> /// Determines whether the interstitial ad of the specified ad network /// at the specified placement is ready to show. /// </summary> /// <returns><c>true</c> if the ad is ready; otherwise, <c>false</c>.</returns> /// <param name="adNetwork">Ad network.</param> /// <param name="placement">Placement. Pass <c>AdPlacement.Default</c> to specify the default placement.</param> public static bool IsInterstitialAdReady(InterstitialAdNetwork adNetwork, AdPlacement placement) { return(IsInterstitialAdReady(GetWorkableAdClient((AdNetwork)adNetwork), placement)); }
public override void OnEnter() { mPlacement = AdPlacement.PlacementWithName(adPlacement.Value); mAdNetwork = (InterstitialAdNetwork)adNetwork.Value; }
/// <summary> /// Shows an interstitial ad of the specified ad network, at the specified location. /// - For AdColony, AdMob and Heyzap, the location will be ignored. You can pass <see cref="AdLocation.Default"/>. /// - For Chartboost, select one of available locations or create a new location using <see cref="AdLocation.LocationFromName(name)"/>. /// - For Unity Ads, use <see cref="AdLocation.Default"/> or create a new location for the desired zoneId using <see cref="AdLocation.LocationFromName(zoneId)"/>. /// If the specified network doesn't support interstitial ads, this method is a no-op. /// </summary> /// <param name="adNetwork">Ad network.</param> /// <param name="location">Location.</param> public static void ShowInterstitialAd(InterstitialAdNetwork adNetwork, AdLocation location) { ShowInterstitialAd(SelectAdClient((AdNetwork)adNetwork), location); }
/// <summary> /// Determines whether an interstitial ad of the specified ad network, at the specified location, is ready to show. /// - For AdColony, AdMob and Heyzap, the location will be ignored. You can pass <see cref="AdLocation.Default"/>. /// - For Chartboost, select one of available locations or create a new location using <see cref="AdLocation.LocationFromName(name)"/>. /// - For Unity Ads, use <see cref="AdLocation.Default"/> or create a new location for the desired zoneId using <see cref="AdLocation.LocationFromName(zoneId)"/>. /// If the specified network doesn't support interstitial ads, this method always returns false. /// </summary> /// <returns><c>true</c> if interstitial ad is ready for the specified location; otherwise, <c>false</c>.</returns> /// <param name="adNetwork">Ad network.</param> /// <param name="location">Location.</param> public static bool IsInterstitialAdReady(InterstitialAdNetwork adNetwork, AdLocation location) { return(IsInterstitialAdReady(SelectAdClient((AdNetwork)adNetwork), location)); }
// The event handler void InterstitialAdCompletedHandler(InterstitialAdNetwork network, AdLocation location) { Debug.Log("Interstitial ad has been closed."); }
private void InterstitialAdCompletedHandler(InterstitialAdNetwork network, AdPlacement location) { ResetCount(); Advertising.LoadInterstitialAd(); }
void OnInterstitialAdCompleted(InterstitialAdNetwork arg1, AdLocation arg2) { NativeUI.Alert("Interstitial Ad Completed", "Interstitial ad has been closed."); }