bbads_banner_display()

Display the ad banner on the screen.

Synopsis:

#include <bbads/bbads.h>
 
bbads_error_t bbads_banner_display(bbads_banner_t *banner, screen_context_t screen_context, bps_event_t *event)

Since:

BlackBerry 10.0.0

Arguments:

banner

The bbads_banner_t* as created in the call to bbads_banner_create().

screen_context

The screen_context_t* of the window handle of the calling application.

event

The bps_event_t* of the calling application that represents the creation of the ads window.

Library:

libbbads

Description:

Use this function to display the ad banner on the screen. The banner will not contain ads until you call bbads_banner_load(). You must also set bbads_banner_set_window_visible() to true before you can display the ad banner.

Returns:

  • BBADS_EOK on success.
  • BBADS_EBANNER if the bbads_banner_t* or screen_context_t* or bps_event_t* provided is invalid.
  • BBADS_ESTATE if the banner has already been displayed.