bbads_banner_set_refresh_rate()

Modify the banner's refresh rate.

Synopsis:

#include <bbads/bbads.h>
 
bbads_error_t bbads_banner_set_refresh_rate(bbads_banner_t *banner, unsigned int seconds)

Since:

BlackBerry 10.0.0

Arguments:

banner

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

seconds

The time (in seconds) between each ad refresh. The minimum refresh rate is 60 seconds. The default refresh rate is also 60 seconds.

Library:

libbbads

Description:

This function modifies the banner's refresh rate. Modifying the banner's refresh rate can only be performed before the banner has been loaded.

Returns:

  • BBADS_EOK on success.
  • BBADS_EBANNER if the bbads_banner_t* provided is invalid.
  • BBADS_EINVAL if the refresh rate provided is invalid.
  • BBADS_ESTATE if the banner has already been loaded.