Bumper page

You can optionally add the AA Bumper page to your ad placement. The Bumper page is a customizable dialog that notifies the user when they are about to leave a kid-safe place and proceed to an external website.

When a user clicks on an ad placement, the Bumper page is presented for 3 seconds. It informs the user that they are about to be redirected to an external source:

SuperAwesome’s kid-safe review team always configure the Bumper page when:

  • an ad links to a social media site. For example, YouTube, Facebook.
  • an ad links to a retailer or online shop.

You can enable the Bumper page so that it always displays when an ad is served on a placement. You can also customize the Bumper page. See the following code samples:

Display the Bumper page

To enable the bumper so that it always displays when an ad is served on a placement, use enableBumperPage or setBumperPage(true).
For example:

  • To enable the Bumper page on one banner ad:
    myBanner.enableBumperPage()
    

    or

    myBanner.setBumperPage(true)
    
  • To disable the Bumper page on one banner ad:
    myBanner.disableBumperPage()
    

    or

    myBanner.setBumperPage(false)
    
  • To enable the Bumper page on all interstitial ads:
    InterstitialAd.enableBumperPage()
    

    or

    InterstitialAd.setBumperPage(true)
    
  • To disable the Bumper page on all video ads:
    VideoAd.disableBumperPage()
    

    or

    VideoAd.setBumperPage(false)
    
  • To enable the Bumper page on one banner ad:
    [myBanner enableBumperPage];
    

    or

    [myBanner setBumperPage:true];
    
  • To disable the Bumper page on one banner ad:
    [myBanner disableBumperPage];
    

    or

    [myBanner setBumperPage:false];
    
  • To enable the Bumper page on all interstitial ads:
    [SAInterstitialAd enableBumperPage];
    

    or

    [SAInterstitialAd setBumperPage:true];
    
  • To disable the Bumper page on all video ads:
    [SAVideoAd disableBumperPage];
    

    or

    [SAVideoAd setBumperPage:false];
    

Customize the Bumper page

By default, the Bumper page displays the application name and the AwesomeAds logo. You can customize both of these elements.

  • To override the application name on the Bumper page:
      BumperPage.overrideName("__CUSTOM_APP_NAME__")
    
  • To override the default logo on the Bumper page:
      BumperPage.overrideLogo(UIImage(named:"__MY_LOGO__"))
    
  • To override the application name on the Bumper page:
      [SABumperPage overrideName:@"__CUSTOM_APP_NAME__"];
    
  • To override the default logo on the Bumper page:
      [SABumperPage overrideLogo:[UIImage imageNamed:@"__MY_LOGO__"]];
    

Example

import SuperAwesome

class ViewController: UIViewController {

  override func viewDidLoad() {
    super.viewDidLoad()

    // display the Bumper page on the video ad
    VideoAd.enableBumperPage()

    // load the video ad
    VideoAd.load(30479)
  }

  func playVideo() {

    if VideoAd.hasAdAvailable(placementId: 30479) {

      // set the orientation in which the video will play
      VideoAd.setOrientationLandscape()

      // and play the video
      VideoAd.play(withPlacementId: 30479, fromVc: self)
    }
  }
}
@import SuperAwesome;

@implementation MyViewController

- (void) viewDidLoad {
  [super viewDidLoad];

  // display the Bumper page on the video ad
  [SAVideoAd enableBumperPage];

  // load the video ad
  [SAVideoAd load:30479];
}

- (IBAction) playVideo {

  if ([SAVideoAd hasAdAvailable: 30479]) {

    // set the orientation in which the video will play
    [SAVideoAd setOrientationLandscape];

    // and play the video
    [SAVideoAd play: 30479 fromVC: self];
  }
}

@end