public static void RequestBannerAd() { #if UNITY_ANDROID if (Application.platform == RuntimePlatform.Android) { IsRequesting = true; Tapsell.RequestBannerAd(ZoneID, BannerType.BANNER_320x50, Gravity.BOTTOM, Gravity.CENTER, (string zoneId) => { Debug.Log("on Ad Available"); IsRequesting = false; }, (string zoneId) => { Debug.Log("no Ad Available"); IsRequesting = false; }, (TapsellError error) => { Debug.Log(error.message); IsRequesting = false; }, (string zoneId) => { Debug.Log("no Network"); IsRequesting = false; }, (string zoneId) => { Debug.Log("Hide Banner"); IsRequesting = false; }); } #endif }
public void RequestBannerAd() { Tapsell.RequestBannerAd(ZONE_ID, BannerType.BANNER_250x250, Gravity.BOTTOM, Gravity.CENTER, (string zoneId) => { Debug.Log("on Ad Available"); }, (string zoneId) => { Debug.Log("no Ad Available"); }, (TapsellError error) => { Debug.Log(error.message); }, (string zoneId) => { Debug.Log("no Network"); }, (string zoneId) => { Debug.Log("Hide Banner"); }); }