Beispiel #1
0
        /// <summary>
        /// Load the draw feed Ad asynchronously and notice on listener.
        /// </summary>
        public void LoadDrawFeedAd(AdSlot adSlot, IDrawFeedAdListener listener)
        {
            var androidListener = new DrawFeedAdListener(listener);

            this.adNative.Call(
                "loadDrawFeedAd", adSlot.Handle, androidListener);
        }
Beispiel #2
0
        /// <summary>
        /// Load the full screen video Ad asynchronously and notice on listener.
        /// </summary>
        public void LoadFullScreenVideoAd(
            AdSlot adSlot, IFullScreenVideoAdListener listener)
        {
            var androidListener = new FullScreenVideoAdListener(listener);

            this.adNative.Call(
                "loadFullScreenVideoAd", adSlot.Handle, androidListener);
        }
Beispiel #3
0
        public void LoadExpressInterstitialAd(
            AdSlot adSlot, IExpressAdListener listener)
        {
            var androidListener = new ExpressAdListener(listener);

            this.adNative.Call(
                "loadInteractionExpressAd", adSlot.Handle, androidListener);
        }
Beispiel #4
0
        public void LoadExpressBannerAd(
            AdSlot adSlot, IExpressAdListener listener)
        {
            var androidListener = new ExpressAdListener(listener);

            this.adNative.Call(
                "loadBannerExpressAd", adSlot.Handle, androidListener);
        }
Beispiel #5
0
        /// <summary>
        /// Load the splash Ad asynchronously and notice on listener with
        /// specify timeout.
        /// </summary>
        public void LoadSplashAd(
            AdSlot adSlot, ISplashAdListener listener, int timeOut)
        {
            var androidListener = new SplashAdListener(listener);

            this.adNative.Call(
                "loadSplashAd", adSlot.Handle, androidListener, timeOut);
        }
Beispiel #6
0
        /// <summary>
        /// Load the reward video Ad asynchronously and notice on listener.
        /// </summary>
        public void LoadRewardVideoAd(
            AdSlot adSlot, IRewardVideoAdListener listener)
        {
            var androidListener = new RewardVideoAdListener(listener);

            this.adNative.Call(
                "loadRewardVideoAd", adSlot.Handle, androidListener);
        }
Beispiel #7
0
        /// <summary>
        /// Load the interaction Ad asynchronously and notice on listener.
        /// </summary>
        public void LoadInteractionAd(
            AdSlot adSlot, IInteractionAdListener listener)
        {
            var androidListener = new InteractionAdListener(listener);

            this.adNative.Call(
                "loadInteractionAd", adSlot.Handle, androidListener);
        }
Beispiel #8
0
        /// <summary>
        /// Load the  splash Ad.
        /// </summary>
        internal static void LoadSplashAd(AdSlot adSlot, ISplashAdListener listener, int timeOut)
        {
            var context = loadContextID++;

            loadListeners.Add(context, listener);

            UnionPlatform_SplashAd_Load(
                adSlot.CodeId,
                timeOut,
                SplashAd_OnErrorMethod,
                SplashAd_OnLoadMethod,
                context);
        }
Beispiel #9
0
        internal static void LoadExpressAd(
            AdSlot slot, IExpressAdListener listener)
        {
            var context = loadContextID++;

            loadListeners.Add(context, listener);

            UnionPlatform_ExpressBannersAd_Load(
                slot.CodeId,
                slot.viewwidth,
                slot.viewheight,
                ExpressAd_OnLoadMethod,
                ExpressAd_OnLoadErrorMethod,
                context);
        }
Beispiel #10
0
        internal static void LoadFullScreenVideoAd(
            AdSlot adSlot, IFullScreenVideoAdListener listener)
        {
            var context = loadContextID++;

            loadListeners.Add(context, listener);

            UnionPlatform_FullScreenVideoAd_Load(
                adSlot.CodeId,
                adSlot.UserId,
                FullScreenVideoAd_OnErrorMethod,
                FullScreenVideoAd_OnFullScreenVideoAdLoadMethod,
                FullScreenVideoAd_OnFullScreenVideoCachedMethod,
                context);
        }
Beispiel #11
0
        internal static void LoadRewardVideoAd(
            AdSlot adSlot, IRewardVideoAdListener listener)
        {
            var context = loadContextID++;

            loadListeners.Add(context, listener);

            UnionPlatform_RewardVideoAd_Load(
                adSlot.CodeId,
                adSlot.UserId,
                adSlot.mediaExtra,
                RewardVideoAd_OnErrorMethod,
                RewardVideoAd_OnRewardVideoAdLoadMethod,
                RewardVideoAd_OnRewardVideoCachedMethod,
                context);
        }
        internal static void LoadNativeAd(
            AdSlot adSlot, INativeAdListener listener)
        {
            var context = loadContextID++;

            loadListeners.Add(context, listener);
            Debug.Log(adSlot.CodeId);

            UnionPlatform_NativeAd_Load(
                adSlot.CodeId,
                adSlot.adCount,
                adSlot.type,
                adSlot.width,
                adSlot.height,
                NativeAd_OnErrorMethod,
                NativeAd_OnNativeAdLoadMethod,
                context);
        }
        internal static void LoadRewardVideoAd(
            AdSlot adSlot, IRewardVideoAdListener listener)
        {
            var context = loadContextID++;

            loadListeners.Add(context, listener);

            UnionPlatform_ExpressRewardVideoAd_Load(
                adSlot.CodeId,
                adSlot.UserId,
                adSlot.RewardName,
                adSlot.RewardAmount,
                adSlot.ExtraInfo,
                RewardVideoAd_OnErrorMethod,
                RewardVideoAd_OnRewardVideoAdLoadMethod,
                RewardVideoAd_OnRewardVideoCachedMethod,
                context);
        }
        internal static void LoadExpressAdAd(
            AdSlot slot, IExpressAdListener listener)
        {
            var context = loadContextID++;

            loadListeners.Add(context, listener);

            for (int i = 0; i < slot.adCount; i++)
            {
                expressAds.Add(new ExpressAd(i));
            }

            UnionPlatform_ExpressAd_Load(
                context,
                slot.CodeId,
                slot.width,
                slot.height,
                slot.adCount,
                ExpressAd_OnLoadMethod,
                ExpressAd_OnLoadErrorMethod);
        }
Beispiel #15
0
 /// <summary>
 /// Load the banner Ad asynchronously and notice on listener.
 /// </summary>
 public void LoadBannerAd(AdSlot adSlot, IBannerAdListener listener)
 {
     listener.OnError(0, "Not Support on this platform");
 }
Beispiel #16
0
 /// <summary>
 /// Load the native Ad asynchronously and notice on listener.
 /// </summary>
 public void LoadNativeAd(AdSlot adSlot, INativeAdListener listener)
 {
     NativeAd.LoadNativeAd(adSlot, listener);
 }
Beispiel #17
0
 /// <summary>
 /// Load the draw feed Ad asynchronously and notice on listener.
 /// </summary>
 public void LoadDrawFeedAd(AdSlot adSlot, IDrawFeedAdListener listener)
 {
     listener.OnError(0, "Not Support on this platform");
 }
Beispiel #18
0
 public void LoadExpressBannerAd(
     AdSlot adSlot, IExpressAdListener listener)
 {
     ExpressBannerAd.LoadExpressAd(adSlot, listener);
 }
Beispiel #19
0
 /// <summary>
 /// Load the splash Ad asynchronously and notice on listener with
 /// specify timeout.
 /// </summary>
 public void LoadExpressSplashAd(
     AdSlot adSlot, ISplashAdListener listener, int timeOut)
 {
 }
Beispiel #20
0
 /// <summary>
 /// Load the splash Ad asynchronously and notice on listener.
 /// </summary>
 public void LoadExpressSplashAd(AdSlot adSlot, ISplashAdListener listener)
 {
     BUExpressSplashAd.LoadSplashAd(adSlot, listener, -1);
 }
Beispiel #21
0
 /// <summary>
 /// Load the reward video Ad asynchronously and notice on listener.
 /// </summary>
 public void LoadRewardVideoAd(
     AdSlot adSlot, IRewardVideoAdListener listener)
 {
     listener.OnError(0, "Not Support on this platform");
 }
Beispiel #22
0
 /// <summary>
 /// Load the full screen video Ad asynchronously and notice on listener.
 /// </summary>
 public void LoadFullScreenVideoAd(
     AdSlot adSlot, IFullScreenVideoAdListener listener)
 {
     listener.OnError(0, "Not Support on this platform");
 }
Beispiel #23
0
 public void LoadExpressRewardAd(
     AdSlot adSlot, IRewardVideoAdListener listener)
 {
 }
Beispiel #24
0
 /// <summary>
 /// Load the interaction Ad asynchronously and notice on listener.
 /// </summary>
 public void LoadInteractionAd(
     AdSlot adSlot, IInteractionAdListener listener)
 {
     listener.OnError(0, "Not Support on this platform");
 }
Beispiel #25
0
 /// <summary>
 /// Load the splash Ad asynchronously and notice on listener with
 /// specify timeout.
 /// </summary>
 public void LoadExpressSplashAd(
     AdSlot adSlot, ISplashAdListener listener, int timeOut)
 {
     BUExpressSplashAd.LoadSplashAd(adSlot, listener, timeOut);
 }
Beispiel #26
0
 public void LoadExpressFullScreenVideoAd(
     AdSlot adSlot, IFullScreenVideoAdListener listener)
 {
     ExpressFullScreenVideoAd.LoadFullScreenVideoAd(adSlot, listener);
 }
Beispiel #27
0
 /// <summary>
 /// Load the reward video Ad asynchronously and notice on listener.
 /// </summary>
 public void LoadRewardVideoAd(
     AdSlot adSlot, IRewardVideoAdListener listener)
 {
     RewardVideoAd.LoadRewardVideoAd(adSlot, listener);
 }
Beispiel #28
0
 public void LoadNativeExpressAd(
     AdSlot adSlot, IExpressAdListener listener)
 {
     ExpressAd.LoadExpressAdAd(adSlot, listener);
 }
Beispiel #29
0
 public void LoadExpressInterstitialAd(
     AdSlot adSlot, IExpressAdListener listener)
 {
     ExpressInterstitialAd.LoadExpressAd(adSlot, listener);
 }
Beispiel #30
0
 /// <summary>
 /// Load the splash Ad asynchronously and notice on listener.
 /// </summary>
 public void LoadExpressSplashAd(AdSlot adSlot, ISplashAdListener listener)
 {
 }