public void LoadAd(AdRequest request) { AdRequestClient adRequest = null; if (request != null) { adRequest = new AdRequestClient(request); } BannerBridge.YMAUnityLoadBannerView( this.ObjectId, adRequest.ObjectId); }
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); }
public void Hide() { BannerBridge.YMAUnityHideBannerView(this.ObjectId); }
public void Show() { BannerBridge.YMAUnityShowBannerView(this.ObjectId); }