コード例 #1
0
        public void LoadAd(AdRequest request)
        {
            AdRequestClient adRequest = null;

            if (request != null)
            {
                adRequest = new AdRequestClient(request);
            }
            BannerBridge.YMAUnityLoadBannerView(
                this.ObjectId, adRequest.ObjectId);
        }
コード例 #2
0
 public BannerClient(string blockId, AdSize adSize, AdPosition position)
 {
     this.selfPointer = GCHandle.ToIntPtr(GCHandle.Alloc(this));
     this.ObjectId    = BannerBridge.YMAUnityCreateBannerView(
         this.selfPointer, blockId, adSize.Width, adSize.Height,
         (int)position);
     BannerBridge.YMAUnitySetBannerCallbacks(
         this.ObjectId,
         AdViewDidReceiveAdCallback,
         AdViewDidFailToReceiveAdWithErrorCallback,
         AdViewWillPresentScreenCallback,
         AdViewDidDismissScreenCallback,
         AdViewWillLeaveApplicationCallback);
 }
コード例 #3
0
 public void Hide()
 {
     BannerBridge.YMAUnityHideBannerView(this.ObjectId);
 }
コード例 #4
0
 public void Show()
 {
     BannerBridge.YMAUnityShowBannerView(this.ObjectId);
 }