文档

​
​

Development

User Acquisition

Monetization

工业

Unity Ads 用户获取

广告管理 API

广告统计数据 API

打开 User Acquisition(用户获取)后台

Unity Ads 用户获取

Unity Ads User Acquisition
​
​
广告素材包设置
  • 广告素材包
  • 广告素材包简介
  • 制作广告素材包
  • 使用 Ad Testing 应用预览广告素材包
广告素材审核
  • 广告素材包审核
  • 广告素材审核简介
  • 广告素材审核
  • 查看审核状态
  • 审核状态参考
广告素材资源
  • 广告素材类型
  • 视频广告素材
  • 试玩广告广告素材
    • 试玩广告资源规范
    • 试玩广告最佳实践
  • 结束页广告广告素材
  • 产品页面
  1. 实现游戏增长
  2. Unity Ads 用户获取
  3. 广告素材包设置

试玩广告最佳实践

了解使用 Unity Ads User Acquisition(用户获取)时关于试玩广告素材的建议最佳做法。
阅读时间2 分钟
最后更新于 3 个月前

配置试玩广告资源时,请考虑以下事项。

mraid.open

要在点击时重定向用户,请使用
mraid.open
方法以及游戏应用商店页面的 URL 字符串。
case "Android":mraid.open("https://play.google.com/store/apps/details?id=yourgame"); break;case "iOS":mraid.open("https://itunes.apple.com/us/yourgame?mt=8");

Bootstrap

请查看以下关于如何初始化试玩广告的示例。
// Wait for the SDK to become ready: function Start() { if (mraid.getState()==='loading') { // If the SDK is still loading, add a listener for the 'ready' event: mraid.addEventListener('ready', onSdkReady); // Otherwise, if the SDK is ready, execute your function: } else { onSdkReady(); }}// Implement a function that shows the ad when it first renders:function onSdkReady() { // The viewableChange event fires if the ad container's viewability status changes. // Add a listener for the viewabilityChange event, to handle pausing and resuming: mraid.addEventListener('viewableChange',viewableChangeHandler); // The isViewable method returns whether the ad container is viewable on the screen. if (mraid.isViewable()) { // If the ad container is visible, play the ad: showMyAd(); }}// Implement a function for executing the ad:function showMyAd() { // Insert code for showing your playable ad.}// Implement a function that handles pausing and resuming the ad based on visibility:function viewableChangeHandler(viewable) { if(viewable) { // If the ad is viewable, show the ad: showMyAd(); } else { // If not, pause the ad. }}
注意
  • Unity Ads SDK 可控制广告可否跳过。
  • 请勿使用自动重定向到应用商店的功能。广告可能不会自动打开应用商店,或者可能不会在用户第一次点击时打开。
  • 展示量、观看量和点击量归因在服务器端发生。

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • mraid.open

    • Bootstrap


报告此页面的问题