Exemplo n.º 1
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);
        }
Exemplo n.º 2
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);
        }