/**
     * Load Banner of given AdSize and at given AdPosition
     *
     * placementId String
     * adSize AdSize Size of the banner
     * adPosition AdPosition Position of the Banner on screen
     */

    public void LoadBanner(string placementId, Vungle.VungleBannerSize adSize, Vungle.VungleBannerPosition adPosition)
    {
#if !UNITY_2019_1 && !UNITY_2019_2
        InvokeSafelyOnUIThreadAsync(delegate
        {
            SetBannerGrid(delegate
            {
                sdk.LoadBanner(placementId, (int)adSize + 1, (int)adPosition);
            });
        });
#else
        VungleLog.Log(VungleLog.Level.Error, VungleLog.Context.LogEvent, "VungleWindows.LoadBanner",
                      "2019.1 and 2019.2 crashes when instantiating a core class for banners, but it is fixed in 2019.3");
#endif
    }
 public void LoadBanner(string placementId, Vungle.VungleBannerSize adSize, Vungle.VungleBannerPosition adPosition)
 {
     _vungleLoadBanner(placementId, (int)adSize, (int)adPosition);
 }
 public bool IsAdvertAvailable(string placementId, Vungle.VungleBannerSize adSize)
 {
     return(sdk.IsAdPlayable(placementId, (int)adSize + 1));
 }
 public bool IsAdvertAvailable(string placementId, Vungle.VungleBannerSize adSize)
 {
     return(_vungleIsBannerAvailable(placementId, (int)adSize));
 }
Beispiel #5
0
 /**
  * Load Banner of given AdSize and at given AdPosition
  *
  * placementId String
  * adSize AdSize Size of the banner
  * adPosition AdPosition Position of the Banner on screen
  */
 public void LoadBanner(string placementId, Vungle.VungleBannerSize adSize, Vungle.VungleBannerPosition adPosition)
 {
     plugin.Call("loadBanner", placementId, (int)adSize, (int)adPosition);
 }
Beispiel #6
0
 public bool IsAdvertAvailable(string placementId, Vungle.VungleBannerSize adSize)
 {
     return(plugin.Call <bool>("isVideoAvailable", placementId, (int)adSize));
 }
 public void LoadBanner(string placementID, Vungle.VungleBannerSize adSize, Vungle.VungleBannerPosition adPosition)
 {
     return;
 }
 public bool IsAdvertAvailable(string placementID, Vungle.VungleBannerSize adSize)
 {
     return(false);
 }