Beispiel #1
0
 public void OnFullScreenVideoAdLoad(FullScreenVideoAd ad)
 {
     Debug.Log("OnFullScreenAdLoad");
     inter.onReloaded?.Invoke(true);
     ad.SetFullScreenVideoAdInteractionListener(listener);
     ad.SetDownloadListener(AdHelper.GetDownListener());
     //retryCount = 1;
     this.inter.fullScreenVideoAd = ad;
 }
Beispiel #2
0
 public void ShowExpressBannerAd()
 {
     if (this.mExpressBannerAd == null)
     {
         return;
     }
     //设置轮播间隔 30s--120s;不设置则不开启轮播
     this.mExpressBannerAd.SetSlideIntervalTime(30 * 1000);
     this.mExpressBannerAd.SetDownloadListener(AdHelper.GetDownListener());
     NativeAdManager.Instance().ShowExpressBannerAd(AdHelper.GetActivity(), mExpressBannerAd.handle, expressAdInteractionListener, dislikeCallback);
 }
Beispiel #3
0
        public void Reload(int id)
        {
            var tp     = AdHelper.tp.bannerIds[id];
            var adSlot = new AdSlot.Builder()
                         .SetCodeId(tp)
                         ////期望模板广告view的size,单位dp,//高度按照实际rit对应宽高传入
                         //.SetExpressViewAcceptedSize(size.x*0.5f * Screen.width, size.y * Screen.height)
                         .SetExpressViewAcceptedSize(widthDp, hightDp)
                         .SetSupportDeepLink(true)
                         .SetImageAcceptedSize(Screen.width, Screen.height)
                         .SetAdCount(1)
                         .SetOrientation(AdHelper.GetCurrentOrientation())
                         .Build();

            AdHelper.AdNative.LoadExpressBannerAd(adSlot, listener);
        }
Beispiel #4
0
        public void Reload(int id)
        {
            var adSlot = new AdSlot.Builder()
                         .SetCodeId(AdHelper.tp.intersititialIds[id])
                         .SetSupportDeepLink(true)
                         .SetImageAcceptedSize(1080, 1920)
                         .SetOrientation(AdHelper.GetCurrentOrientation())
                         .Build();

            if (this.fullScreenVideoAd != null)
            {
                return;
            }

            AdHelper.AdNative.LoadFullScreenVideoAd(adSlot, listener);
        }
Beispiel #5
0
            public void OnExpressAdLoad(List <ExpressAd> ads)
            {
                example.onReloaded?.Invoke(true);
                //retry = 1;
                Debug.Log("OnExpressBannerAdLoad");
                IEnumerator <ExpressAd> enumerator = ads.GetEnumerator();

                if (enumerator.MoveNext())
                {
                    switch (type)
                    {
                    case 1:
                        this.example.mExpressBannerAd = enumerator.Current;
                        this.example.mExpressBannerAd.SetDownloadListener(AdHelper.GetDownListener());
                        break;
                    }
                }
            }