Exemplo n.º 1
0
 public DefaultAdNetworks(BannerAdNetwork banner, InterstitialAdNetwork interstitial, RewardedAdNetwork rewarded, RewardedInterstitialAdNetwork rewardedInterstitial)
 {
     bannerAdNetwork             = banner;
     interstitialAdNetwork       = interstitial;
     rewardedAdNetwork           = rewarded;
     rewardedInterstitialNetwork = rewardedInterstitial;
 }
Exemplo n.º 2
0
 private static void OnInternalInterstitialAdCompleted(InterstitialAdNetwork network, AdLocation location)
 {
     if (InterstitialAdCompleted != null)
     {
         InterstitialAdCompleted(network, location);
     }
 }
Exemplo n.º 3
0
        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)));
        }
Exemplo n.º 4
0
 // The event handler
 void InterstitialAdCompletedHandler(InterstitialAdNetwork network, AdLocation location)
 {
     Debug.Log("Interstitial ad has been closed.");
     StartCoroutine(AsyncLoad());
 }
Exemplo n.º 5
0
 void Advertising_InterstitialAdCompleted(InterstitialAdNetwork network, AdPlacement loc)
 {
     adNetwork.Value = network;
     Fsm.Event(eventTarget, adCompletedEvent);
 }
Exemplo n.º 6
0
 private void OnInterstitialAdCompleted(InterstitialAdNetwork network, AdPlacement placement)
 {
 }
Exemplo n.º 7
0
 public static void ShowInterstitialAd(InterstitialAdNetwork adNetwork, AdLocation location)
 {
     ShowInterstitialAd(adNetwork, location.ToAdPlacement());
 }
Exemplo n.º 8
0
 public static bool IsInterstitialAdReady(InterstitialAdNetwork adNetwork, AdLocation location)
 {
     return(IsInterstitialAdReady(adNetwork, location.ToAdPlacement()));
 }
Exemplo n.º 9
0
 /// <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);
 }
Exemplo n.º 10
0
 /// <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;
 }
Exemplo n.º 12
0
 /// <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);
 }
Exemplo n.º 13
0
 /// <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));
 }
Exemplo n.º 14
0
 // The event handler
 void InterstitialAdCompletedHandler(InterstitialAdNetwork network, AdLocation location)
 {
     Debug.Log("Interstitial ad has been closed.");
 }
Exemplo n.º 15
0
 private void InterstitialAdCompletedHandler(InterstitialAdNetwork network, AdPlacement location)
 {
     ResetCount();
     Advertising.LoadInterstitialAd();
 }
Exemplo n.º 16
0
 void OnInterstitialAdCompleted(InterstitialAdNetwork arg1, AdLocation arg2)
 {
     NativeUI.Alert("Interstitial Ad Completed", "Interstitial ad has been closed.");
 }