@wscsports/blaze-rtn-gam-ads
Version:
WSC Sports Blaze GAM Ads component for React Native
54 lines • 1.6 kB
TypeScript
import { BlazeGAMCustomNativeAdsDelegate } from './BlazeGAMCustomNativeAdsDelegate';
import { BlazeGAMBannerAdsDelegate } from './BlazeGAMBannerAdsDelegate';
interface BlazeGAMDefaultAdConfig {
/**
* Ad Unit in the GAM system.
*/
adUnit: string;
/**
* Template ID in the GAM system.
*/
templateId: string;
}
interface BlazeGAMEnableCustomNativeAdsOptions {
/**
* Default ad config to use if non is set in our system.
*/
defaultAdConfig?: BlazeGAMDefaultAdConfig;
/**
* This delegate will be invoked upon different events.
*/
delegate?: BlazeGAMCustomNativeAdsDelegate | null;
}
interface BlazeGAMEnableBannerAdsOptions {
/**
* This delegate will be invoked upon different events.
*/
delegate?: BlazeGAMBannerAdsDelegate | null;
}
interface BlazeGAMInterface {
/**
* Call this function to enable Google Ads Manager Custom Native ads.
*
* @param options
* @param delegate
*/
enableCustomNativeAds(options: BlazeGAMEnableCustomNativeAdsOptions): void;
/**
* Call this function to disable Google Ads Manager Custom Native ads.
*/
disableCustomNativeAds(): void;
/**
* Call this function to enable Google Ads Manager Banner ads.
*
* @param delegate
*/
enableBannerAds(options: BlazeGAMEnableBannerAdsOptions): void;
/**
* Call this function to disable Google Ads Manager Banner ads.
*/
disableBannerAds(): void;
}
export declare const BlazeGAM: BlazeGAMInterface;
export {};
//# sourceMappingURL=NativeBlazeGAM.d.ts.map