Banner Ads
Load and Show
Banner Ads start loading automatically right after creation an instance.
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 -
Refresh
To manually refresh an ad on banner you should call the refreshBanner function:
Alternatively, a banner can refresh itself automatically by timer. To start banner autorefresh you should use the following code:
You can also stop autorefresh when it is no longer needed:
Destroy with resource release
If you need to destroy the banner and free resources, you should use the following method:
Callbacks / Delegates / Events
Register
To be able to register banner callbacks receiver you will need to inherit it from IBidappBannerDelegate
Then you need to register receiver of the callbacks for banner instance identifier:
Observe
You can observe banner events by specifying the delegate:
Release
If you don't want to receive callbacks anymore you can unregister callback receiver instance:
Last updated
Was this helpful?