UnsupportedPlatformAgent.cs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. #if (!UNITY_IPHONE && !UNITY_IOS && !UNITY_ANDROID) || (UNITY_EDITOR)
  2. using UnityEngine;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. public class UnsupportedPlatformAgent : IronSourceIAgent
  6. {
  7. public UnsupportedPlatformAgent ()
  8. {
  9. Debug.Log ("Unsupported Platform");
  10. }
  11. #region IronSourceAgent implementation
  12. public void start ()
  13. {
  14. Debug.Log ("Unsupported Platform");
  15. }
  16. public void reportAppStarted ()
  17. {
  18. Debug.Log ("Unsupported Platform");
  19. }
  20. //******************* Base API *******************//
  21. public void onApplicationPause (bool pause)
  22. {
  23. Debug.Log ("Unsupported Platform");
  24. }
  25. public void setAge (int age)
  26. {
  27. Debug.Log ("Unsupported Platform");
  28. }
  29. public void setGender (string gender)
  30. {
  31. Debug.Log ("Unsupported Platform");
  32. }
  33. public void setMediationSegment (string segment)
  34. {
  35. Debug.Log ("Unsupported Platform");
  36. }
  37. public string getAdvertiserId ()
  38. {
  39. Debug.Log ("Unsupported Platform");
  40. return "";
  41. }
  42. public void validateIntegration ()
  43. {
  44. Debug.Log ("Unsupported Platform");
  45. }
  46. public void shouldTrackNetworkState (bool track)
  47. {
  48. Debug.Log ("Unsupported Platform");
  49. }
  50. public bool setDynamicUserId (string dynamicUserId)
  51. {
  52. Debug.Log ("Unsupported Platform");
  53. return false;
  54. }
  55. public void setAdaptersDebug(bool enabled)
  56. {
  57. Debug.Log ("Unsupported Platform");
  58. }
  59. //******************* SDK Init *******************//
  60. public void setUserId (string userId)
  61. {
  62. Debug.Log ("Unsupported Platform");
  63. }
  64. public void init (string appKey)
  65. {
  66. Debug.Log ("Unsupported Platform");
  67. }
  68. public void init (string appKey, params string[] adUnits)
  69. {
  70. Debug.Log ("Unsupported Platform");
  71. }
  72. public void initISDemandOnly (string appKey, params string[] adUnits)
  73. {
  74. Debug.Log ("Unsupported Platform");
  75. }
  76. //******************* RewardedVideo API *******************//
  77. public void showRewardedVideo ()
  78. {
  79. Debug.Log ("Unsupported Platform");
  80. }
  81. public void showRewardedVideo (string placementName)
  82. {
  83. Debug.Log ("Unsupported Platform");
  84. }
  85. public bool isRewardedVideoAvailable ()
  86. {
  87. Debug.Log ("Unsupported Platform");
  88. return false;
  89. }
  90. public bool isRewardedVideoPlacementCapped (string placementName)
  91. {
  92. Debug.Log ("Unsupported Platform");
  93. return true;
  94. }
  95. public IronSourcePlacement getPlacementInfo (string placementName)
  96. {
  97. Debug.Log ("Unsupported Platform");
  98. return null;
  99. }
  100. public void setRewardedVideoServerParams(Dictionary<string, string> parameters)
  101. {
  102. Debug.Log ("Unsupported Platform");
  103. }
  104. public void clearRewardedVideoServerParams()
  105. {
  106. Debug.Log ("Unsupported Platform");
  107. }
  108. //******************* RewardedVideo DemandOnly API *******************//
  109. public void showISDemandOnlyRewardedVideo (string instanceId)
  110. {
  111. Debug.Log ("Unsupported Platform");
  112. }
  113. public void showISDemandOnlyRewardedVideo (string instanceId, string placementName)
  114. {
  115. Debug.Log ("Unsupported Platform");
  116. }
  117. public bool isISDemandOnlyRewardedVideoAvailable (string instanceId)
  118. {
  119. Debug.Log ("Unsupported Platform");
  120. return false;
  121. }
  122. //******************* Interstitial API *******************//
  123. public void loadInterstitial ()
  124. {
  125. Debug.Log ("Unsupported Platform");
  126. }
  127. public void showInterstitial ()
  128. {
  129. Debug.Log ("Unsupported Platform");
  130. }
  131. public void showInterstitial (string placementName)
  132. {
  133. Debug.Log ("Unsupported Platform");
  134. }
  135. public bool isInterstitialReady ()
  136. {
  137. Debug.Log ("Unsupported Platform");
  138. return false;
  139. }
  140. public bool isInterstitialPlacementCapped (string placementName)
  141. {
  142. Debug.Log ("Unsupported Platform");
  143. return true;
  144. }
  145. //******************* Interstitial DemandOnly API *******************//
  146. public void loadISDemandOnlyInterstitial (string instanceId)
  147. {
  148. Debug.Log ("Unsupported Platform");
  149. }
  150. public void showISDemandOnlyInterstitial (string instanceId)
  151. {
  152. Debug.Log ("Unsupported Platform");
  153. }
  154. public void showISDemandOnlyInterstitial (string instanceId, string placementName)
  155. {
  156. Debug.Log ("Unsupported Platform");
  157. }
  158. public bool isISDemandOnlyInterstitialReady (string instanceId)
  159. {
  160. Debug.Log ("Unsupported Platform");
  161. return false;
  162. }
  163. //******************* Offerwall API *******************//
  164. public void showOfferwall ()
  165. {
  166. Debug.Log ("Unsupported Platform");
  167. }
  168. public void showOfferwall (string placementName)
  169. {
  170. Debug.Log ("Unsupported Platform");
  171. }
  172. public void getOfferwallCredits ()
  173. {
  174. Debug.Log ("Unsupported Platform");
  175. }
  176. public bool isOfferwallAvailable ()
  177. {
  178. Debug.Log ("Unsupported Platform");
  179. return false;
  180. }
  181. //******************* Banner API *******************//
  182. public void loadBanner (IronSourceBannerSize size, IronSourceBannerPosition position)
  183. {
  184. Debug.Log ("Unsupported Platform");
  185. }
  186. public void loadBanner (IronSourceBannerSize size, IronSourceBannerPosition position, string placementName)
  187. {
  188. Debug.Log ("Unsupported Platform");
  189. }
  190. public void destroyBanner()
  191. {
  192. Debug.Log ("Unsupported Platform");
  193. }
  194. public void displayBanner()
  195. {
  196. Debug.Log ("Unsupported Platform");
  197. }
  198. public void hideBanner()
  199. {
  200. Debug.Log ("Unsupported Platform");
  201. }
  202. public bool isBannerPlacementCapped(string placementName)
  203. {
  204. Debug.Log ("Unsupported Platform");
  205. return false;
  206. }
  207. public void setSegment(IronSourceSegment segment){
  208. Debug.Log ("Unsupported Platform");
  209. }
  210. public void setConsent(bool consent)
  211. {
  212. Debug.Log ("Unsupported Platform");
  213. }
  214. #endregion
  215. }
  216. #endif