You've already forked Commercialization.topon
update 1.1.25
This commit is contained in:
45
AnyThinkPlugin/AnyThinkAds/Common/IATNativeBannerAdClient.cs
Normal file
45
AnyThinkPlugin/AnyThinkAds/Common/IATNativeBannerAdClient.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
using AnyThinkAds.Api;
|
||||
|
||||
namespace AnyThinkAds.Common
|
||||
{
|
||||
public interface IATNativeBannerAdClient : IATNativeAdEvents
|
||||
{
|
||||
/***
|
||||
* 请求广告
|
||||
* @param placementId 广告位id
|
||||
* @parm mapJson 各平台的私有属性 一般可以不调用
|
||||
*/
|
||||
void loadAd(string placementId, string mapJson);
|
||||
|
||||
/***
|
||||
* 判断是否有广告存在
|
||||
* 可以在显示广告之前调用
|
||||
* @param placementId 广告位id
|
||||
*/
|
||||
bool adReady(string placementId);
|
||||
/***
|
||||
*
|
||||
* 设置监听回调接口
|
||||
*
|
||||
* @param listener
|
||||
*/
|
||||
void setListener(ATNativeBannerAdListener listener);
|
||||
/***
|
||||
*
|
||||
* 展示广告,
|
||||
* @param placementId
|
||||
* @param rect
|
||||
*/
|
||||
void showAd(string placementId, ATRect rect, Dictionary<string, string> pairs);
|
||||
/***
|
||||
*
|
||||
* 移除广告
|
||||
* @param placementId
|
||||
*/
|
||||
void removeAd(string placementId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user