| Class Info |
|---|
| public abstract class NativeAd extends Object 原生广告。 |
| Qualifier and Type | Class Name and Description |
|---|---|
| static interface | NativeAd.NativeAdLoadedListener 原生广告加载成功的监听器。 |
| Qualifier and Type | Method Name and Description |
|---|---|
| abstract void | destroy() 销毁广告对象。 |
| abstract void | dislikeAd(DislikeAdReason reason) 不显示该广告,被调用后关闭广告。 |
| abstract String | 标识本任务是否是广告。 |
| abstract String | 获取广告来源。 |
| abstract String | 获取广告行为按钮的显示文字(例如“查看详情”或“安装”)。 |
| abstract int | 获取广告素材创意类型。 |
| abstract String | 获取广告描述。 |
| abstract List<DislikeAdReason> | 获取“不显示该广告”选项。 |
| Map<String, String> | getExt() 获取广告的扩展信息。 |
| abstract Image | getIcon() 获取广告的小图标。 |
| abstract List<Image> | 获取广告内容多图素材。 |
| abstract MediaContent | 获取广告多媒体内容信息。 |
| abstract String | getTitle() 获取广告标题。 |
| abstract String | 获取广告标识。 |
| abstract Video | getVideo() 获取广告内容的视频素材。 |
| abstract VideoOperator | 获取广告的视频控制器。 |
| abstract String | 获取“为什么显示此广告”跳转链接。 |
| abstract void | gotoWhyThisAdPage(Context context) 打开为什么显示此广告。 |
| abstract boolean | 判断是否允许自定义点击手势。 |
| abstract boolean | isCustomDislikeThisAdEnabled() 判断是否支持自定义关闭广告。 |
| abstract void | onAdClose(Context context, List<String> keyWords) 用户关闭广告调用。 |
| abstract void | 上报自定义的点击事件。 |
| abstract boolean | recordClickEvent(Bundle data) 上报自定义的点击事件。 |
| abstract boolean | recordImpressionEvent(Bundle data) 上报广告曝光事件。 |
| abstract boolean | recordShowStartEvent(Bundle data) 上报广告开始展示事件。 |
| abstract void | 设置允许使用自定义点击手势。 |
| abstract void | setDislikeAdListener(DislikeAdListener listener) 设置关闭广告监听器。 |
| abstract void | triggerClick(Bundle data) 上报点击操作。 |
| abstract String | 获取广告DSP名称。 |
| abstract String | 获取广告DspLogo的url。 |
| abstract boolean | 当前广告是否下发广告主信息。 |
| abstract List<AdvertiserInfo> | 获取广告主信息列表。 |
| abstract void | showAppDetailPage(Context context) 展示推广应用的介绍页。 |
| abstract boolean | 是否需要展示广告透明性信息 。 |
| abstract String | 获取广告透明性信息跳转链接。 |
| abstract int | 获取广告推广目的。 |
| abstract void | setVideoConfiguration(VideoConfiguration videoConfiguration) 设置视频播放的参数。 具体参考VideoConfiguration。 |
| abstract BiddingInfo | 获取返回给媒体实时bidding相关数据。 |
| void | sendBiddingSuccess(Map<String, Object> sendSuccessInfo, ReportUrlListener reportUrlListener) 上报Bidding竞价成功接口。 |
| void | sendBiddingFailed(Map<String, Object> sendFailInfo, ReportUrlListener reportUrlListener) 上报Bidding竞价失败接口。 |
| Method |
|---|
| public abstract void dislikeAd(DislikeAdReason reason) 不显示该广告,被调用后关闭广告。 |
Parameters
| Name | Description |
|---|---|
| reason | 用户选择的不显示该广告的原因。 |
| Method |
|---|
| public abstract String getAdSign() 标识本任务是否为广告。 |
Returns
| Type | Description |
|---|---|
| String | 本任务的标识:
默认值为1。 |
| Method |
|---|
| public abstract String getAdSource() 获取广告来源。 |
Returns
| Type | Description |
|---|---|
| String | 广告来源。 |
| Method |
|---|
| public abstract String getCallToAction() 获取广告行为按钮的显示文字(例如“查看详情”或“安装”)。 |
Returns
| Type | Description |
|---|---|
| String | 广告行为按钮的显示文字。 |
| Method |
|---|
| public abstract int getCreativeType() 获取广告素材创意类型。 |
Returns
| Type | Description |
|---|---|
| int | 广告素材创意类型。
|
| Method |
|---|
| public abstract String getDescription() 获取广告描述。 |
Returns
| Type | Description |
|---|---|
| String | 广告描述。 |
| Method |
|---|
| public abstract List<DislikeAdReason> getDislikeAdReasons() 获取“不显示该广告”选项。 |
Returns
| Type | Description |
|---|---|
| List<DislikeAdReason> | “不显示该广告”选项。 |
| Method |
|---|
| public Map<String, String> getExt() 获取广告的扩展信息。 |
Returns
| Type | Description |
|---|---|
| Map<String, String> | 广告的扩展信息。 |
| Method |
|---|
| public abstract List<Image> getImages() 获取广告内容多图素材。 |
Returns
| Type | Description |
|---|---|
| List<Image> | 广告内容多图素材。 |
| Method |
|---|
| public abstract MediaContent getMediaContent() 获取广告多媒体内容信息。 |
Returns
| Type | Description |
|---|---|
| 广告多媒体内容信息。 |
| Method |
|---|
| public abstract String getUniqueId() 获取广告标识。 |
Returns
| Type | Description |
|---|---|
| String | 广告标识。 |
| Method |
|---|
| public abstract Video getVideo() 获取广告内容的视频素材。 |
Returns
| Type | Description |
|---|---|
| 广告内容的视频素材。 |
| Method |
|---|
| public abstract VideoOperator getVideoOperator() 获取广告的视频控制器。 |
Returns
| Type | Description |
|---|---|
| 广告的视频控制器。 |
| Method |
|---|
| public abstract String getWhyThisAd() 获取“为什么显示此广告”跳转链接。 |
Returns
| Type | Description |
|---|---|
| String | “为什么显示此广告”跳转链接。 |
| Method |
|---|
| public abstract void gotoWhyThisAdPage(Context context) 打开为什么显示此广告或广告透明性信息 。 |
Parameters
| Name | Description |
|---|---|
| context | 上下文。 |
| Method |
|---|
| public abstract boolean isCustomClickAllowed() 判断是否允许自定义点击手势。 |
Returns
| Type | Description |
|---|---|
| boolean | 是否允许自定义点击手势:
默认值为false。 |
| Method |
|---|
| public abstract boolean isCustomDislikeThisAdEnabled() 判断是否支持自定义关闭广告。 |
Returns
| Type | Description |
|---|---|
| boolean | 是否支持自定义关闭广告:
默认值为false。 |
| Method |
|---|
| public abstract void onAdClose(Context context, List<String> keyWords) 用户关闭广告调用。 |
Parameters
| Name | Description |
|---|---|
| context | 上下文。 |
| keyWords | 广告关键词。 |
| Method |
|---|
| public abstract boolean recordClickEvent(Bundle data) 上报自定义的点击事件。 |
Parameters
| Name | Description |
|---|---|
| data | 传入的点击事件数据。可传入clickX,clickY,creativeSize用于流量变现优化。 |
Returns
| Type | Description |
|---|---|
| boolean | 是否上报成功:
默认值为false。 |
| Method |
|---|
| public abstract boolean recordImpressionEvent(Bundle data) 上报广告曝光事件。 |
Parameters
| Name | Description |
|---|---|
| data | 曝光发生时携带的曝光数据信息。 |
Returns
| Type | Description |
|---|---|
| boolean | 上报广告曝光事件:
|
| Method |
|---|
| public abstract boolean recordShowStartEvent(Bundle data) 上报广告开始展示事件。 |
Parameters
| Name | Description |
|---|---|
| data | 上报事件中携带的数据。 |
Returns
| Type | Description |
|---|---|
| boolean | 上报广告开始展示事件:
|
| Method |
|---|
| public abstract void setDislikeAdListener(DislikeAdListener listener) 设置关闭广告监听器。 |
Parameters
| Name | Description |
|---|---|
| listener | 关闭广告监听器。 |
| Method |
|---|
| public abstract String getDspName() 获取广告DSP名称。 |
Returns
| Type | Description |
|---|---|
| String | 广告DSP名称。 |
| Method |
|---|
| public abstract String getDspLogo() 获取广告DspLogo 的url。 |
Returns
| Type | Description |
|---|---|
| String | 广告DspLogo的url。 |
| Method |
|---|
| public abstract boolean hasAdvertiserInfo() 当前广告是否下发广告主信息。 |
Returns
| Type | Description |
|---|---|
| boolean | 是否下发广告主信息,true:下发;false:未下发。 |
| Method |
|---|
| public abstract List getAdvertiserInfo() 获取广告主信息。 |
Returns
| Type | Description |
|---|---|
| List<AdvertiserInfo> | 广告主信息列表。 |
| Method |
|---|
| public abstract void showAppDetailPage(Context context) 展示推广应用的介绍页。 |
Parameters
| Name | Description |
|---|---|
| context | 上下文。 |
| Method |
|---|
| public abstract boolean isTransparencyOpen() 是否需要展示广告透明性信息。 |
Parameters
| Name | Description |
|---|---|
| boolean | 是否需要展示广告透明性信息。 |
| Method |
|---|
| public abstract String getTransparencyTplUrl() 获取广告透明性信息跳转链接。 |
Parameters
| Name | Description |
|---|---|
| String | 广告透明性信息跳转链接。 |
| Method |
|---|
| public abstract int getInterActionType() 获取广告推广目的。 |
Returns
| Type | Description |
|---|---|
| int | 推广目的: 0:纯展示(即点击无反应)。 1:网页推广(目的是点击打开网页)。 2:应用下载(目的是下载普通应用)。 3:应用促活(目的是点击进入应用内)或者快应用。 5:应用推广(未安装则下载,已安装则促活)。 7:电商网页(安装则进入应用,未安装打开网页)。 8:预约下载。 9:鸿蒙服务。 10:拉起小程序。 |
| Method |
|---|
| Public abstract void setVideoConfiguration(VideoConfiguration videoConfiguration) 视频播放参数设置。 |
Returns
| Type | Description |
|---|---|
| videoConfiguration | 视频配置,控制视频播放设置。 |
| Method |
|---|
| public abstract BiddingInfo getBiddingInfo() 获取返回给媒体实时bidding相关数据。 |
Returns
| Type | Description |
|---|---|
| BiddingInfo实时bidding ADX返回的参数。 |
| Method |
|---|
| public void sendBiddingSuccess(Map<String, Object> sendSuccessInfo, ReportUrlListener reportUrlListener) Bidding竞价成功调用该函数,上报竞价成功。 |
Parameters
| Name | Description |
|---|---|
| sendSuccessInfo | 竞价成功的宏替换参数,是Map类型。 key是URL中需要替换的宏,宏是String类型,value是对应替换的信息,是Object类型。 相关宏替换参考:实时竞价广告。 |
| 竞价结果上报回调。 |
| Method |
|---|
| public void sendBiddingFailed(Map<String, Object> sendFailInfo, ReportUrlListener reportUrlListener) Bidding竞价失败调用该函数,上报竞价失败。 |
Parameters
| Name | Description |
|---|---|
| sendFailInfo | 竞价失败的宏替换参数,是Map类型 key是URL中需要替换的宏,宏是String类型,value是对应替换的信息,是Object类型。 相关宏替换参考:实时竞价广告。 |
| 竞价结果上报回调。 |