Show and destroy banners
Use the following code to create and show banners 320x50 banner:
string bannerIdentifier = BidappBinding.Instance.ShowBannerAtPosition(
BidappBannerPosition.BottomCenter,
BidappBannerSize.Size_320x50
);
or, alternatively -
string bannerIdentifier = BidappBinding.Instance.ShowBanner(
BidappBannerSize.Size_320x50,
0f, 100f, 320f, 50f
);
To show the 300x250 banner you should use the following code:
string bannerIdentifier = BidappBinding.Instance.ShowBannerAtPosition(
BidappBannerPosition.BottomCenter,
BidappBannerSize.Size_300x250
);
or, alternatively -
string bannerIdentifier = BidappBinding.Instance.ShowBanner(
BidappBannerSize.Size_300x250,
0f, 100f, 320f, 50f
);
To display an ad on banner you should call the refreshBanner method:
BidappBinding.Instance.RefreshBanner(bannerIdentifier);
Alternatively, a banner can refresh itself automatically by timer. To start banner autorefresh you should use the following code:
BidappBinding.Instance.SetBannerRefreshInterval(bannerIdentifier, newRefreshInterval);
You can also stop autorefresh when it is no longer needed:
BidappBinding.Instance.StopAutorefresh()
Finally, if you want to destroy the banner, you should use the following method:
BidappBinding.Instance.RemoveBanner(bannerIdentifier);
Last updated