---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com/dev/games/doc/en/sdk/construct-3/ads.md
  - https://yandex.com/dev/games/doc/hi/sdk/construct-3/ads.md
  - https://yandex.com/dev/games/doc/ko/sdk/construct-3/ads.md
  - https://yandex.com/dev/games/doc/ru/sdk/construct-3/ads.md
  - https://yandex.com/dev/games/doc/tr/sdk/construct-3/ads.md
  - https://yandex.com/dev/games/doc/vi/sdk/construct-3/ads.md
  - https://yandex.com/dev/games/doc/zh/sdk/construct-3/ads.md
  - href: zh/sdk/construct-3/ads.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/games/doc/zh/llms.txt

# 广告

<!-- source: zh/_includes/script-common.md -->
<!-- source: zh/_includes/script/index-js.md -->

<!-- endsource: zh/_includes/script/index-js.md -->

<!-- source: zh/_includes/script/requirements-js.md -->

<!-- endsource: zh/_includes/script/requirements-js.md -->

<!-- source: zh/_includes/script/image-modal-js.md -->

<!-- endsource: zh/_includes/script/image-modal-js.md -->
<!-- endsource: zh/_includes/script-common.md -->

您可以通过在游戏中放置广告来获得收入：

- 学习[广告投放的特点和建议](https://yandex.com/dev/games/doc/zh/sdk/sdk-adv.md#recommendations)。

- 使用SDK设置广告调用。

- [连接货币化](https://yandex.com/dev/games/doc/zh/console/adv-monetization.md)。

## 广告投放的特点和建议 {#features}

- 广告放置应明显与游戏流程区分开来。

- 推荐的广告插入位置：游戏开始前、进入下一级别时、失败之后。

- [奖励视频广告](../sdk-adv#rewarded-video)的调用频率不受限制。

- 全屏广告块的调用频率由Yandex游戏平台管理。

{% note warning %}

Yandex广告网络将用户对广告块的随机点击视为广告欺诈的标志，并减少游戏中的广告收入。

为避免这种情况，不要在游戏过程中调用广告展示，因为此时用户可能会无意中点击广告块。

{% endnote %}

### 奖励视频广告 {#rewarded}

奖励视频是用于游戏货币化的视频广告块。用户观看视频后可获得奖励或游戏内货币。

要调用全屏广告，请使用操作 **Show rewarded ad**。

{% note info %}

ID仅为区分广告调用的方式，与Yandex广告网络无关。ID可以留空。

{% endnote %}

![](../../_images/construct-3/ads/rewarded-ad.webp)

通过插件，您还可以方便地设置广告播放期间的音乐关闭，这是平台要求之一。

![](../../_images/construct-3/ads/rewarded-silent.webp)


### 全屏广告块 {#fullscreen}

全屏广告块是完全覆盖应用背景的广告块，通常在用户请求某些信息（例如，进入游戏的下一级别）和获取信息之间显示。

可以通过操作 **Show fullscreen ad** 调用全屏广告块。通常此类广告不需要额外逻辑，仅需调用即可。

![](../../_images/construct-3/ads/fullscreen-ad.webp)


### Sticky横幅广告 {#sticky}

要启用[Sticky横幅广告](*key_sticky)的展示：

1. 打开开发者控制台并转到**Advertising**标签。
1. 在**Sticky banners**块中设置横幅显示：

    - 对于移动设备：

        - **Sticky banner in portrait orientation** —— 选择位置**At the bottom**或**At the top**;
        - **Sticky banner in landscape orientation** —— 选择位置**At the bottom**，**At the top**或**On the right**。

    - 对于桌面设备 —— 启用**Sticky banner on the desktop**选项。横幅将显示在右侧。

默认情况下，Sticky横幅广告会在游戏启动时出现并在整个会话期间显示。要设置横幅显示时机：

1. 在**Sticky banners**块中启用**Use the API to display a sticky-banner**选项。
1. 使用以下操作设置横幅显示：

    - **Show sticky banner**
    - **Hide sticky banner**

例如，可以在菜单打开时显示横幅，游戏过程中隐藏。

![](../../_images/construct-3/ads/sticky.webp)

---


<!-- source: zh/_includes/button-git.md -->
<a href="https://github.com/yandex-games-plugins/construct3">
  <span class="button">存储库</span>
</a>
<!-- endsource: zh/_includes/button-git.md -->

[*key_sticky]: 游戏期间显示的广告块。