Android Ad Formats

Banners Interstitials Rewarded Ads

Banner Ads

Banners are rectangle ads appearing either at the top or bottom of the screen when the user interacts with your app. The user can view them but cannot dismiss them.

Banners are automatically refreshed by the FairBid SDK after 20 seconds.


The FairBid SDK refreshes banners automatically. To avoid discrepancies with Fyber's and 3rd-party networks' reporting, any automatic or manual banner refresh settings on 3rd-party network SDKs must be disabled.

Showing a Banner

Implement the code below to show a Banner:

String placementId = "12345";, activity);

Destroying the Banner

Once you have decided that you no longer want to use the banner, you must destroy it.

To destroy the banner, implement the code below:

//destroys the banner for a specific placement
String placementId = "12345";

Banner Position

By default, the banners are placed at the bottom of your screen.

You can place them at the top by using the code below:

Top Position

BannerOptions bannerOptions = new BannerOptions().placeAtTheTop();
String placementId = "12345";, bannerOptions, activity);

Or you can provide your own custom view and place them in there:

BannerOptions bannerOptions = new BannerOptions().placeInContainer(viewGroup);
String placementId = "12345";, bannerOptions, activity);

Adding Callbacks

The callback code below is required for the SDK to properly track the activity of your ad

Banner.setBannerListener(new BannerListener() {
    public void onError(String placementId, BannerError error) {
        // Called when an error arises when showing the banner from placement 'placementId'
    public void onLoad(String placementId) {
        // Called when the banner from placement 'placementId' is successfully loaded
    public void onShow(String placementId, ImpressionData impressionData) {
        // Called when the banner from placement 'placementId' is shown
    public void onClick(String placementId) {
        // Called when the banner from placement 'placementId' is clicked
    public void onRequestStart(String placementId) {
        // Called when the banner from placement 'placementId' is going to be requested

Back to Top ⇧