UNPKG

@wscsports/blaze-rtn-gam-ads

Version:
54 lines 1.46 kB
import { BlazeGAMDelegate } from './BlazeGAMDelegate'; 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?: BlazeGAMDelegate | null; } type KeyValuePair = { [key: string]: string; }; 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; /** * Sets additional custom targeting params into Google's ad request. * * @example ```typescript BlazeGAM.setCustomGAMTargetingProperties({ key1: 'value1', key2: 'value2', }) ``` * * @param settings - The IMA settings to send to the IMA sdk. */ setCustomGAMTargetingProperties(props?: KeyValuePair): void; } export declare const BlazeGAM: BlazeGAMInterface; export {}; //# sourceMappingURL=NativeBlazeGAM.d.ts.map