|
- using System;
-
- namespace CI.WSANative.Advertising
- {
- public static class WSANativeBannerAd
- {
- public static Action<WSABannerAdType> AdRefreshed { get; set; }
-
- public static Action<WSABannerAdType, string> ErrorOccurred { get; set; }
-
- public static void Initialise(WSABannerAdType adType, string appId, string adUnitId)
- {
- if (adType != WSABannerAdType.AdDuplex)
- {
- if (adType == WSABannerAdType.Microsoft)
- {
- WSANativeBannerAd._msAppId = appId;
- WSANativeBannerAd._msAdUnitId = adUnitId;
- }
- }
- else
- {
- WSANativeBannerAd._adDuplexAppId = appId;
- WSANativeBannerAd._adDuplexAdUnitId = adUnitId;
- }
- }
-
- public static void CreatAd(WSABannerAdType adType, int width, int height, WSAAdVerticalPlacement verticalPlacement, WSAAdHorizontalPlacement horizontalPlacement)
- {
- }
-
- public static void SetAdVisibility(WSABannerAdType adType, bool visible)
- {
- }
-
- public static void DestroyAd(WSABannerAdType adType)
- {
- }
-
- public static Action<WSABannerAdSettings> Create;
-
- public static Action<WSABannerAdType, bool> SetVisiblity;
-
- public static Action<WSABannerAdType> Destroy;
-
- private static string _adDuplexAppId;
-
- private static string _adDuplexAdUnitId;
-
- private static string _msAppId;
-
- private static string _msAdUnitId;
- }
- }
|