Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TopOnAd

Hierarchy

  • TopOnAd

Index

Constructors

constructor

Properties

toponAd

toponAd: TopOnAd | undefined

Methods

deniedUploadDeviceInfo

  • deniedUploadDeviceInfo(deniedInfo: string): void

getBanner

  • en

    Get Banner ad object

    zh

    获取 Banner 广告对象

    Parameters

    • placementId: string

      placementId

    • Optional listener: BannerListener

      Callback listener, if it is not passed, it must be displayed by calling the setAdListener method of the returned object, otherwise the advertisement callback will not be accepted

    Returns Banner

    Advertising target

getGDPRLevel

  • en

    Get the current escalation level

    zh

    获取当前的上报等级

    Returns GDPRLevel

    Current escalation level

getInterstitial

  • en

    Get Interstitial ad object

    zh

    获取 Interstitial 广告对象

    Parameters

    • placementId: string

      placementId

    • Optional listener: InterstitialListener

      Callback listener, if it is not passed, it must be displayed by calling the setAdListener method of the returned object, otherwise the advertisement callback will not be accepted

    Returns Interstitial

    Advertising target

getNative

  • en

    Get Native ad object

    zh

    获取 Native 广告对象

    Parameters

    • placementId: string

      placementId

    • Optional listener: NativeListener

      Callback listener, if it is not passed, it must be displayed by calling the setAdListener method of the returned object, otherwise the advertisement callback will not be accepted

    Returns Native

    Advertising target

getRewardVideo

  • en

    Get RewardVideo ad object

    zh

    获取 RewardVideo 广告对象

    Parameters

    • placementId: string

      placementId

    • Optional listener: RewardVideoListener

      Callback listener, if it is not passed, it must be displayed by calling the setAdListener method of the returned object, otherwise the advertisement callback will not be accepted

    Returns RewardVideo

    Advertising target

getUserLocation

  • en

    Check the current network area

    zh

    检查当前的网络的区域

    Parameters

    Returns void

initCustomMap

  • initCustomMap(customMap: ParamMap): void

integrationChecking

  • integrationChecking(): void
  • en

    Check the integration status of the advertising platform

    zh

    检查广告平台的集成状态

    Returns void

setGDPRLevel

  • en

    Set the reporting level of data under GDPR

    zh

    设置 GDPR 下数据的上报等级

    Parameters

    Returns void

setLogDebug

  • setLogDebug(debug: boolean): void
  • en

    Set whether there is Debug log output. It is recommended to open during the testing phase to facilitate verification of the advertising callback status

    zh

    设置是否有Debug日志输出。建议在测试阶段打开,方便验证广告回调状态

    Parameters

    • debug: boolean

      Whether to output log

    Returns void

setPlacementCustomMap

  • setPlacementCustomMap(placmentId: string, customMap: ParamMap): void

showGDPRAuth

  • showGDPRAuth(): void
  • en

    Display the GDPR authorization page

    zh

    展示GDPR授权页面

    Returns void

Generated using TypeDoc