/// <summary>
 /// Returns the remote data you've set on the Heyzap Dashboards, which will be a JSON dictionary in string format.
 /// </summary>
 public static string GetRemoteData()
 {
     #if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IPHONE)
         #if UNITY_ANDROID
     return(HeyzapAdsAndroid.GetRemoteData());
         #elif UNITY_IPHONE
     return(HeyzapAdsIOS.GetRemoteData());
         #endif
     #else
     UnityEngine.Debug.LogWarning("Call received to retrieve remote data from the Heyzap SDK, but the SDK does not function in the editor. You must use a device/emulator to use the remote data feature.");
     return("{}");
     #endif
 }
Esempio n. 2
0
        /// <summary>
        /// Starts the Heyzap SDK. Call this method as soon as possible in your app to ensure Heyzap has time to initialize before you want to show an ad.
        /// </summary>
        /// <param name="publisher_id">Your publisher ID. This can be found on your Heyzap dashboards - see https://developers.heyzap.com/docs/unity_sdk_setup_and_requirements for more information.</param>
        /// <param name="options">A bitmask of options you can pass to this call to change the way Heyzap will work.</param>
        public static void Start(string publisher_id, int options)
        {
            #if !UNITY_EDITOR
            #if UNITY_ANDROID
            HeyzapAdsAndroid.Start(publisher_id, options);
            #endif

            #if UNITY_IPHONE
            HeyzapAdsIOS.Start(publisher_id, options);
            #endif

            HeyzapAds.InitReceiver();
            HZInterstitialAd.InitReceiver();
            HZIncentivizedAd.InitReceiver();
            HZBannerAd.InitReceiver();
            #endif
        }
Esempio n. 3
0
        /// <summary>
        /// Starts the Heyzap SDK. Call this method as soon as possible in your app to ensure Heyzap has time to initialize before you want to show an ad.
        /// </summary>
        /// <param name="publisher_id">Your publisher ID. This can be found on your Heyzap dashboards - see https://developers.heyzap.com/docs/unity_sdk_setup_and_requirements for more information.</param>
        /// <param name="options">A bitmask of options you can pass to this call to change the way Heyzap will work.</param>
        public static void Start(string publisher_id, int options)
        {
            #if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IPHONE)
                #if UNITY_ANDROID
            HeyzapAdsAndroid.Start(publisher_id, options);
                #elif UNITY_IPHONE
            HeyzapAdsIOS.Start(publisher_id, options);
                #endif
            #else
            UnityEngine.Debug.LogError("Call received to start the Heyzap SDK, but the SDK does not function in the editor. You must use a device/emulator to receive/test ads.");
            #endif

            HeyzapAds.InitReceiver();
            HZInterstitialAd.InitReceiver();
            HZVideoAd.InitReceiver();
            HZIncentivizedAd.InitReceiver();
            HZBannerAd.InitReceiver();
            HZDemographics.InitReceiver();
        }
Esempio n. 4
0
 // Token: 0x0600007D RID: 125 RVA: 0x00002FA2 File Offset: 0x000011A2
 public static void HideDebugLogs()
 {
     HeyzapAdsAndroid.HideDebugLogs();
 }
Esempio n. 5
0
 // Token: 0x0600007C RID: 124 RVA: 0x00002F9B File Offset: 0x0000119B
 public static void ShowDebugLogs()
 {
     HeyzapAdsAndroid.ShowDebugLogs();
 }
Esempio n. 6
0
 // Token: 0x06000078 RID: 120 RVA: 0x00002F87 File Offset: 0x00001187
 public static bool IsNetworkInitialized(string network)
 {
     return(HeyzapAdsAndroid.IsNetworkInitialized(network));
 }
Esempio n. 7
0
 // Token: 0x06000077 RID: 119 RVA: 0x00002F80 File Offset: 0x00001180
 public static bool OnBackPressed()
 {
     return(HeyzapAdsAndroid.OnBackPressed());
 }
Esempio n. 8
0
 // Token: 0x06000076 RID: 118 RVA: 0x00002F79 File Offset: 0x00001179
 public static void ShowMediationTestSuite()
 {
     HeyzapAdsAndroid.ShowMediationTestSuite();
 }
Esempio n. 9
0
 // Token: 0x06000075 RID: 117 RVA: 0x00002F72 File Offset: 0x00001172
 public static string GetRemoteData()
 {
     return(HeyzapAdsAndroid.GetRemoteData());
 }