Esempio n. 1
0
        /// <summary>
        /// Returns whether or not an ad is available for the given ad tag.
        /// </summary>
        /// <returns><c>true</c>, if an ad is available, <c>false</c> otherwise.</returns>
        public static bool IsAvailable(string tag)
        {
            tag = HeyzapAds.TagForString(tag);

            #if UNITY_ANDROID
            return(HZInterstitialAdAndroid.IsAvailable(tag));
            #elif UNITY_IPHONE && !UNITY_EDITOR
            return(HZInterstitialAdIOS.IsAvailable(tag));
            #else
            return(false);
            #endif
        }
Esempio n. 2
0
        /// <summary>
        /// Fetches an ad for the given ad tag.
        /// </summary>
        /// <param name="tag">The ad tag to fetch an ad for.</param>
        public static void Fetch(string tag)
        {
            tag = HeyzapAds.TagForString(tag);

            #if UNITY_ANDROID
            HZInterstitialAdAndroid.Fetch(tag);
            #endif

            #if UNITY_IPHONE && !UNITY_EDITOR
            HZInterstitialAdIOS.Fetch(tag);
            #endif
        }
Esempio n. 3
0
        /// <summary>
        /// Returns whether or not an ad is available for the given ad tag.
        /// </summary>
        /// <returns><c>true</c>, if an ad is available, <c>false</c> otherwise.</returns>
        public static bool IsAvailable(string tag)
        {
            tag = HeyzapAds.TagForString(tag);

            #if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IPHONE)
                #if UNITY_ANDROID
            return(HZOfferWallAdAndroid.IsAvailable(tag));
                #elif UNITY_IPHONE
            return(HZOfferWallAdIOS.IsAvailable(tag));
                #endif
            #else
            return(false);
            #endif
        }
Esempio n. 4
0
        /// <summary>
        /// Fetches an ad for the given ad tag.
        /// </summary>
        /// <param name="tag">The ad tag to fetch an ad for.</param>
        public static void Fetch(string tag)
        {
            tag = HeyzapAds.TagForString(tag);

            #if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IPHONE)
                #if UNITY_ANDROID
            HZInterstitialAdAndroid.Fetch(tag);
                #elif UNITY_IPHONE
            HZInterstitialAdIOS.Fetch(tag);
                #endif
            #else
            UnityEngine.Debug.LogWarning("Call received to fetch an HZInterstitialAd, but the SDK does not function in the editor. You must use a device/emulator to fetch/show ads.");
            _instance.StartCoroutine(InvokeCallbackNextFrame(HeyzapAds.NetworkCallback.FETCH_FAILED, tag));
            #endif
        }
Esempio n. 5
0
 // Token: 0x060000D5 RID: 213 RVA: 0x0000393D File Offset: 0x00001B3D
 public static bool IsAvailable(string tag)
 {
     tag = HeyzapAds.TagForString(tag);
     return(HZInterstitialAdAndroid.IsAvailable(tag));
 }
Esempio n. 6
0
 // Token: 0x060000D3 RID: 211 RVA: 0x00003925 File Offset: 0x00001B25
 public static void Fetch(string tag)
 {
     tag = HeyzapAds.TagForString(tag);
     HZInterstitialAdAndroid.Fetch(tag);
 }
 // Token: 0x060000BA RID: 186 RVA: 0x000036C9 File Offset: 0x000018C9
 public static bool IsAvailable(string tag)
 {
     tag = HeyzapAds.TagForString(tag);
     return(HZIncentivizedAdAndroid.IsAvailable(tag));
 }
 // Token: 0x060000B6 RID: 182 RVA: 0x00003694 File Offset: 0x00001894
 public static void Fetch(string tag)
 {
     tag = HeyzapAds.TagForString(tag);
     HZIncentivizedAdAndroid.Fetch(tag);
 }
 // Token: 0x06000100 RID: 256 RVA: 0x00003DA9 File Offset: 0x00001FA9
 public static void Fetch(string tag)
 {
     tag = HeyzapAds.TagForString(tag);
     HZVideoAdAndroid.Fetch(tag);
 }