> For the complete documentation index, see [llms.txt](https://beesads.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://beesads.gitbook.io/documentation/jie-ru-zhi-nan/h5-content-sdk/display.md).

# Display

&#x20;**Display广告 `zoneType: Display`**

* 1.通过绑定id或其它属性标识，将某个dom节点指定为`renderAds`所需的广告容器

```
<div id="test-one"></div>
```

* 2.使用`window.adsTag.renderAds(dom, width, height, zoneId)`进行广告渲染

**参数说明:**

<table><thead><tr><th>参数</th><th>类型</th><th width="159">说明</th><th>是否必传</th><th>默认值</th></tr></thead><tbody><tr><td>dom</td><td>HtmlElement</td><td>需要渲染广告的容器, 良好的体验需要该容器的宽高大于或等于参数<code>width</code>,<code>height</code>所设置的值，并且<strong>不要在该DOM下存在任何元素</strong></td><td>是</td><td>--</td></tr><tr><td>width</td><td>number</td><td>指定广告的宽度</td><td>是</td><td>--</td></tr><tr><td>height</td><td>number</td><td>指定广告的高度</td><td>是</td><td>--</td></tr><tr><td>zoneId</td><td>string</td><td>指定广告单元组，使用该参数可以区分广告组收益</td><td>是</td><td>--</td></tr></tbody></table>

**广告尺寸:**

| **Size ID** | **Dimensions** | **Name**                |
| ----------- | -------------- | ----------------------- |
| 1           | 468×60         | Banner                  |
| 2           | 728×90         | Leaderboard             |
| 8           | 120×600        | Skyscraper              |
| 9           | 160×600        | Wide Skyscraper         |
| 10          | 300×600        | Half Page Ad            |
| 15          | 300×250        | Medium Rectangle        |
| 16          | 336×280        | Large Rectangle         |
| 18          | 180×150        | Rectangle               |
| 38          | 930×180        | Danish Megaboard        |
| 43          | 320×50         | Mobile Banner 1         |
| 44          | 300×50         | Mobile Banner 2         |
| 54          | 300×1050       | Portrait                |
| 55          | 970×90         | Push Down               |
| 57          | 970×250        | IAB Billboard           |
| 58          | 1000×90        | Leaderboard 2           |
| 61          | 1000×1000      | Full Page               |
| 67          | 320×480        | Mobile App Interstitial |
| 68          | 1800×1000      | Wallpaper/skin          |
| 78          | 980X240        | Double Panorama         |

**示例:**                                                                                                                                                                            [查看演示](https://jsfiddle.net/beesads/38j2v7n4/23/)                                              &#x20;

<pre><code>// 渲染Display广告
window.adsTag.renderAds(document.querySelector('#test-one'), 300, 250, zoneId);

// 销毁Display广告
<strong>window.adsTag.stopAds(document.querySelector('#test-one'));
</strong></code></pre>

**效果:**

<figure><img src="/files/g8Zm1L6a2qFl9UJUMYF9" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://beesads.gitbook.io/documentation/jie-ru-zhi-nan/h5-content-sdk/display.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
