You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

55 rivejä
1.3 KiB

  1. using System;
  2. namespace CI.WSANative.Advertising
  3. {
  4. public static class WSANativeBannerAd
  5. {
  6. public static Action<WSABannerAdType> AdRefreshed { get; set; }
  7. public static Action<WSABannerAdType, string> ErrorOccurred { get; set; }
  8. public static void Initialise(WSABannerAdType adType, string appId, string adUnitId)
  9. {
  10. if (adType != WSABannerAdType.AdDuplex)
  11. {
  12. if (adType == WSABannerAdType.Microsoft)
  13. {
  14. WSANativeBannerAd._msAppId = appId;
  15. WSANativeBannerAd._msAdUnitId = adUnitId;
  16. }
  17. }
  18. else
  19. {
  20. WSANativeBannerAd._adDuplexAppId = appId;
  21. WSANativeBannerAd._adDuplexAdUnitId = adUnitId;
  22. }
  23. }
  24. public static void CreatAd(WSABannerAdType adType, int width, int height, WSAAdVerticalPlacement verticalPlacement, WSAAdHorizontalPlacement horizontalPlacement)
  25. {
  26. }
  27. public static void SetAdVisibility(WSABannerAdType adType, bool visible)
  28. {
  29. }
  30. public static void DestroyAd(WSABannerAdType adType)
  31. {
  32. }
  33. public static Action<WSABannerAdSettings> Create;
  34. public static Action<WSABannerAdType, bool> SetVisiblity;
  35. public static Action<WSABannerAdType> Destroy;
  36. private static string _adDuplexAppId;
  37. private static string _adDuplexAdUnitId;
  38. private static string _msAppId;
  39. private static string _msAdUnitId;
  40. }
  41. }