Menu

advanced settings

1. API description

1.1 Query cache

  • ATNative: Native ad loading class
APIParametersDescription
checkAdStatus-Get the status object ATAdStatusInfo of the current ad slot. See the API description of the ATAdStatusInfo object below
checkValidAdCaches-Query ATAdInfo object of all cached information of the current advertising slot
ATAdInfo: advertising information object, which can distinguish the advertising platform, mainly including the id information of the third-party aggregation platform See ATAdInfo information description
  • ATAdStatusInfo: The status object of the advertising slot
MethodParametersDescription
isLoading-Determine the current advertisement Is the bit loading ads
isReady-Determine whether there are ads that can be displayed in the current ad slot
getATTopAdInfo-Get the ad cache information ATAdInfo object with the highest priority in the current ad slot
ATAdInfo: the information object of the ad, which can distinguish the advertising platform, mainly including the third-party aggregation platform For id information See ATAdInfo information description

1.2 Advertising source event callback

  • ATNative: Native ad loading class

1.3 Others

  • ATNativeEventExListener: (optional)Inherits from ATNativeEventListener strong>, the method is the same as ATNativeEventListener, the additional callback description is as follows:
APIParameterDescription
setAdSourceStatusListener(ATAdSourceStatusListener listener)Set Advertising source level event listening callback, where ATAdSourceStatusListener is an interface class that needs to implement ad source level event callbacks See ATAdSourceStatusListener description
MethodDescription
onDeeplinkCallback(ATNativeAdView view, ATAdInfo atAdInfo, boolean isSuccess)deeplink callback, for Adx and OnlineApi adsisSuccess: Whether it was successful or not

2. Mainland China

  • NativeAd: via getNativeAd< /span>The obtained advertising object
  • NativeAd.DownloadConfirmListener: (optional)App advertisement download secondary pop-up window monitoring class
MethodParametersDescription
getVideoProgress-Get the video playback progress (double type, unit: seconds). The supported platforms are as follows:
Youlianghui: self-rendering
getVideoDuration-Get the total duration of the video (double type, unit: seconds). The supported platforms are as follows:< br>Pangolin: self-rendering, template rendering (can only be obtained after the video starts playing)
Youlianghui: self-rendering, template rendering, template rendering 2.0
Kuaishou: self-rendering
Baidu: self-rendering
resumeVideo- Resume playing the paused video. The supported platforms are as follows:
Youlianghui: self-rendering (only for video ad preview page Valid)
pauseVideo-Pause the playback of video ads. The supported platforms are as follows:
Youlianghui: self-rendering (only for The video ad preview page is valid)
setVideoMute(boolean isMute)Set whether to mute the video during playback. The supported platforms are as follows:
Excellent Quantity Exchange: Self-rendering
Pangolin: Self-rendering
setAdDownloadListener(ATAppDownloadListener listener)Set download status listening callback
listener: Event callback monitoring of download status
Currently only supports the following platforms: Pangolin (self-rendering, template rendering), Kuaishou (self-rendering)
setDownloadConfirmListener(NativeAd.DownloadConfirmListener listener)Set ad click app ad download event callback(Currently only Youlianghui information flow ads are valid)
MethodParametersDescription
onDownloadConfirm(Context context, ATAdInfo atAdInfo, View clickView, ATNetworkConfirmInfo networkConfirmInfo)Application class Callback method when the ad is clicked to download.
clickView: the view that is triggered to download and click (null if not obtained)
ATNetworkConfirmInfo: callback information provided by the third-party advertising platform (Currently only GDTDownloadFirmInfo of Youlianghui)

ATAdInfo: the information object of the advertisement, which can distinguish the advertising platform, mainly including the id information of the third-party aggregation platformSee ATAdInfo information description

ATAppDownloadListener:  (Only supported by SDK in China)Download status event callback monitoring

Currently only the following platforms are supported: Pangolin (self-rendering, template rendering), Kuaishou (self-rendering)

MethodParametersDescription
onDownloadStart(ATAdInfo atAdInfo, long totalBytes, long currBytes, String fileName, String appName)Start download callback
ATAdInfo: the information object of the advertisement, which can distinguish the advertising platform, mainly including the id information of the third-party aggregation platformSee ATAdInfo information description
totalBytes: total file size (unit: bytes)
currBytes: currently downloaded size (unit: bytes)
fileName: file name< br>appName: The application name corresponding to the file
onDownloadUpdate(ATAdInfo atAdInfo, long totalBytes, long currBytes, String fileName, String appName)Download Progress update callback
The meaning of parameters is the same as above
onDownloadPause(ATAdInfo atAdInfo, long totalBytes, long currBytes, String fileName, String appName)Pause Download callback
The meaning of the parameters is the same as above
onDownloadFinish(ATAdInfo adInfo, long totalBytes, String fileName, String appName)Download completion callback
The meaning of parameters is the same as above
onDownloadFail(ATAdInfo adInfo, long totalBytes, long currBytes, String fileName, String appName)Download failure callback
The meaning of the parameters is the same as above
onInstalled(ATAdInfo adInfo, String fileName, String appName)Apk installation completion callback
The meaning of the parameters is the same as above


Previous
Drawadvertising
Next
Callback information description
Last modified: 2025-05-30Powered by