using System.Collections; using System.Collections.Generic; using UnityEngine; namespace AnyThinkAds.Api { public interface ATNativeAdListener { /*** * 广告请求成功(注意:对于Android来说,所有回调方法均不在Unity的主线程) */ void onAdLoaded(string placementId); /*** * 广告请求失败(注意:对于Android来说,所有回调方法均不在Unity的主线程) */ void onAdLoadFail(string placementId, string code, string message); /*** * 广告展示(注意:对于Android来说,所有回调方法均不在Unity的主线程) */ void onAdImpressed(string placementId, ATCallbackInfo callbackInfo); /** * 广告点击(注意:对于Android来说,所有回调方法均不在Unity的主线程) */ void onAdClicked(string placementId, ATCallbackInfo callbackInfo); /*** * 视屏播放开始 如果有(注意:对于Android来说,所有回调方法均不在Unity的主线程) */ void onAdVideoStart(string placementId); /*** * 视屏播放结束 如果有(注意:对于Android来说,所有回调方法均不在Unity的主线程) */ void onAdVideoEnd(string placementId); /*** * 视屏播放进度 如果有(注意:对于Android来说,所有回调方法均不在Unity的主线程) */ void onAdVideoProgress(string placementId,int progress); /*** * 广告关闭按钮点击 如果有(注意:对于Android来说,所有回调方法均不在Unity的主线程) */ void onAdCloseButtonClicked(string placementId, ATCallbackInfo callbackInfo); void startLoadingADSource(string placementId, ATCallbackInfo callbackInfo); void finishLoadingADSource(string placementId, ATCallbackInfo callbackInfo); void failToLoadADSource(string placementId,ATCallbackInfo callbackInfo,string code, string message); void startBiddingADSource(string placementId, ATCallbackInfo callbackInfo); void finishBiddingADSource(string placementId, ATCallbackInfo callbackInfo); void failBiddingADSource(string placementId,ATCallbackInfo callbackInfo,string code, string message); } }