Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TradPlusAd

en

Provide the Ad service of TradPlus, don't instantiate this class directly, use tradplus.tradPlusService instead

zh

提供 TradPlus 广告服务的类,请不要实例化该类,直接使用tradplus.tradPlusService即可

Hierarchy

  • TradPlusAd

Index

Methods

getBanner

  • getBanner(adUnitId: string): Banner
  • en

    Get a Banner object corresponding to specified adUnitId

    zh

    获取广告位ID对应的横幅广告对象

    Parameters

    • adUnitId: string

    Returns Banner

getInterstitial

  • getInterstitial(adUnitId: string, autoReload: boolean): Interstitial
  • en

    Get a Interstitial Ad object corresponding to specified adUnitId

    zh

    获取广告位ID对应的插屏广告对象

    Parameters

    • adUnitId: string
    • autoReload: boolean

      Enable/Disable auto reload mode

    Returns Interstitial

getRewardedVideo

  • getRewardedVideo(adUnitId: string, autoReload: boolean): RewardedVideo
  • en

    Get a Rewarded Video object corresponding to specified adUnitId

    zh

    获取广告位ID对应的激励视频对象

    Parameters

    • adUnitId: string
    • autoReload: boolean

      Enable/Disable auto reload mode

    Returns RewardedVideo

initCustomMap

  • en

    Set App level traffic group rules, take effect for all placements

    zh

    设置 App 维度的规则,对全部 placement 有效

    Parameters

    Returns void

initPlacementCustomMap

  • initPlacementCustomMap(adUnitId: string, customMap: CustomMap): void
  • en

    Set adUnitId level traffic group rules, only take effect for specified adUnitId, will overwrite the App level rules

    zh

    设置 adUnitId 维度的规则,仅对该广告位有效,会覆盖 APP 维度设置的规则

    Parameters

    Returns void

initSdk

  • initSdk(): void
  • en

    Initialize the SDK

    zh

    初始化SDK

    Returns void

setEnableLog

  • setEnableLog(enable: boolean): void
  • en

    Enable/Disable the debug logging, disabled by default, NOTE: when release your App, you should disable the debug logging

    zh

    启用/禁用调试日志的打印,默认禁用,注:当发布您的应用时,请注意禁用调试日志的打印

    Parameters

    • enable: boolean

    Returns void

setNeedTestDevice

  • setNeedTestDevice(needTestDivice: boolean): void
  • en

    Set whether we need test devices, this method only works on Android, NOTE: when release your App, you should disable the test devices

    zh

    设置是否需要测试设备,该方法仅作用于Android平台,注:当发布您的应用时,请注意禁用测试设备

    Parameters

    • needTestDivice: boolean

    Returns void

Generated using TypeDoc