GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeIMA

This module is the main, it is responsible for configuring the ads in the app.

First, start by importing this module in your app:

import BlazeIMA from '@wscsports/blaze-rtn-ima-ads';


interface BlazeIMAInterface {

  /**
   * Call this function to enable Google IMA ads.
   * 
   * @param options 
   */
  enableAds(
    options: BlazeIMAEnableAdsOptions
  ): void;

  /**
   * Call this function to disable Google IMA ads.
   */
  disableAds(): void;

}

Functions

enableAds

Call this function in order to enable ads in your app. You can find more about its params here.


disableAds

Call this function in order to disable ads in your app (calling this function will do nothing if enableAds was never called).


Did this page help you?