示例#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);
        }
示例#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);
        }
示例#3
0
        public void LoadExpressInterstitialAd(
            AdSlot adSlot, IExpressAdListener listener)
        {
            var androidListener = new ExpressAdListener(listener);

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

            this.adNative.Call(
                "loadBannerExpressAd", adSlot.Handle, androidListener);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#12
0
        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);
        }
示例#14
0
        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);
        }
示例#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");
 }
示例#16
0
 /// <summary>
 /// Load the native Ad asynchronously and notice on listener.
 /// </summary>
 public void LoadNativeAd(AdSlot adSlot, INativeAdListener listener)
 {
     NativeAd.LoadNativeAd(adSlot, listener);
 }
示例#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");
 }
示例#18
0
 public void LoadExpressBannerAd(
     AdSlot adSlot, IExpressAdListener listener)
 {
     ExpressBannerAd.LoadExpressAd(adSlot, listener);
 }
示例#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)
 {
 }
示例#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);
 }
示例#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");
 }
示例#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");
 }
示例#23
0
 public void LoadExpressRewardAd(
     AdSlot adSlot, IRewardVideoAdListener listener)
 {
 }
示例#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");
 }
示例#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);
 }
示例#26
0
 public void LoadExpressFullScreenVideoAd(
     AdSlot adSlot, IFullScreenVideoAdListener listener)
 {
     ExpressFullScreenVideoAd.LoadFullScreenVideoAd(adSlot, listener);
 }
示例#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);
 }
示例#28
0
 public void LoadNativeExpressAd(
     AdSlot adSlot, IExpressAdListener listener)
 {
     ExpressAd.LoadExpressAdAd(adSlot, listener);
 }
示例#29
0
 public void LoadExpressInterstitialAd(
     AdSlot adSlot, IExpressAdListener listener)
 {
     ExpressInterstitialAd.LoadExpressAd(adSlot, listener);
 }
示例#30
0
 /// <summary>
 /// Load the splash Ad asynchronously and notice on listener.
 /// </summary>
 public void LoadExpressSplashAd(AdSlot adSlot, ISplashAdListener listener)
 {
 }