---
metadata:
  - name: generator
    content: Diplodoc Platform v5.57.4
alternate:
  - https://www.yandex.com/support/partner/en/web/units/amp.md
  - https://www.yandex.com/support/partner/ru/web/units/amp.md
  - href: https://www.yandex.com/support/partner/en/web/units/amp.md
    type: text/markdown
    title: Markdown version
  - href: https://www.yandex.com/support/partner/en/llms.txt
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://www.yandex.com/support/partner/en/llms.txt

# Ad units for AMP pages

You can monetize AMPs ([Accelerated Mobile Pages](https://www.ampproject.org/)) using Yandex Advertising Network ad units.

Yandex Advertising Network units placed on AMP pages can display:

- [Combinatorial ads](https://www.yandex.com/support/partner/en/web/units/formats/main.md).

- [Display banners](https://www.yandex.com/support/partner/en/web/units/formats/media.md).

To place a Yandex Advertising Network unit:

1. In the [Yandex Advertising Network](https://partner.yandex.com/) interface, create a [Banner](https://www.yandex.com/support/partner/en/web/units/types/banner.md) unit. In the unit settings, be sure to select **AMP** in the **AMP** field.

1. <!-- source: en/_includes/web/units/types/code.md -->
   Get the ad tag: in the unit settings, click **Get code**.
   <!-- endsource: en/_includes/web/units/types/code.md -->

1. <!-- source: en/_includes/web/units/types/banner/amp-placement.md -->
   Make changes to the site page's code:
       
   {% cut "In-page unit" %}

   1. Add a [script with the amp-ad component](https://amp.dev/documentation/examples/components/amp-ad/) to the `<head>`.

   1. Copy the ad tag to the clipboard and paste it on the site page where you want to display the unit.

   1. Change the `height` parameter value to the height you set for the unit. In the ad tag, the default height is 320 pixels.

   {% endcut %}

   {% cut "Floor Ad unit" %}

   1. Add a [script with the amp-sticky-ad component](https://amp.dev/documentation/examples/websites/components/amp-sticky-ad/) to the `<head>`.

   1. Wrap the ad unit code with the following tags:

      ```html
      <amp-sticky-ad layout="nodisplay">
      // ad unit code
      </amp-sticky-ad>
      ```
      
   1. Configure the ad unit parameters:

      - `width`: Width in pixels.
     
      - `height`: Height in pixels (maximum value: 100).

      - Delete the `layout="fixed-height"` parameter.
      
   1. Paste the code into the site page section where you want to display the unit.
       
      {% cut "Sample ad tag for a Floor Ad unit" %}
       
       ```html
       <amp-sticky-ad layout="nodisplay">
       <amp-ad
           width="350" 
           height="100"
           type="yandex" 
           data-block-id="R-A-123456-1"
           data-html-access-allowed="true">
       </amp-ad>
       </amp-sticky-ad>
       ```

      {% endcut %}
       
   {% endcut %}
       
   {% cut "Another type of unit" %}
       
   You can place banners into various types of units in accordance with the [AMP documentation](https://amp.dev/documentation/examples/) requirements.
       
   {% endcut %}
   <!-- endsource: en/_includes/web/units/types/banner/amp-placement.md -->


{% note info %}

The unit code for AMP pages is different from the unit code for other site versions. If you place this unit on a regular site, there won't be any ad impressions.

{% endnote %}

<!-- source: en/_includes/feedback-forms/units-buttons.md -->
## Contact support




<details>
    <summary class="button">Write to WhatsApp</summary>
    <div class="container-gallery">
        <table>
            <td width="200px"><img src="https://yastatic.net/s3/doc-binary/src/support/partner/ru/files/qr-code-en-whatsapp.svg" style="width: 200px; display: block;"/>
            </td>
            <td style="padding-top: 30px;">
                <p><b>Scan the QR code.</b></p>
                <p>WhatsApp is a third-party channel for communication with Yandex. We do not control and are not liable for how WhatsApp stores your data and chat history. Please keep this in mind when choosing WhatsApp to contact support.</p>
            </td>
        </table>
    </div>
    <div class="container-gallery-mobile">
        <p>WhatsApp is a third-party channel for communication with Yandex. We do not control and are not liable for how WhatsApp stores your data and chat history. Please keep this in mind when choosing WhatsApp to contact support.</p>
        <a href="https://wa.me/74952583554?utm_source=yan&utm_medium=help&utm_campaign=en" style="display: block; text-align: left; margin-left: 18px; color: #5889FF;">Go to WhatsApp</a>
    </div>
</details>

 <details>
    <summary class="button">Write to Telegram</summary>
    <div class="container-gallery">
        <table>
            <td width="200px"><img src="https://yastatic.net/s3/doc-binary/src/support/partner/ru/files/qr-code-en-telegram.svg" style="width: 200px; display: block;"/>
            </td>
            <td style="padding-top: 30px;">
                <p><b>Scan the QR code.</b></p>
                <p>Telegram is a third-party channel for communication with Yandex. We do not control and are not liable for how Telegram stores your data and chat history. Please keep this in mind when choosing Telegram to contact support.</p>
            </td>
        </table>
    </div>
    <div class="container-gallery-mobile">
        <p>Telegram is a third-party channel for communication with Yandex. We do not control and are not liable for how Telegram stores your data and chat history. Please keep this in mind when choosing Telegram to contact support.</p>
        <a href="http://t.me/YanSupport_Bot" style="display: block; text-align: left; margin-left: 18px; color: #5889FF;">Go to Telegram</a>
    </div>
</details>

<a href="https://yandex.ru/chat?context=%7B%22entrypoint%22%3A%22%7B%5C%22entrypoint%5C%22%3A%5C%22help%5C%22%2C%5C%22a_pagename%5C%22%3A%5C%22partner-en%5C%22%7D%22%7D#/user/00155607-f40f-9af8-7910-84a29fd95914"> <!--ссылка, куда ведет кнопка. Если внутренняя ссылка, пишем без .md и .html --> 
  <span class="button">Write to chat</span> <!--текст на кнопке--> 
</a>


<a href="https://forms.yandex.com/surveys/10014688/?lang=en"> <!--ссылка, куда ведет кнопка. Если внутренняя ссылка, пишем без .md и .html --> 
  <span class="button">Send an email</span> <!--текст на кнопке--> 
</a>



<!-- source: en/_includes/feedback-forms/button-style.md -->

<!-- endsource: en/_includes/feedback-forms/button-style.md -->

<div width="100%" align="center"> 
<br><br>
You can also go to
<br><br>

[![](https://yastatic.net/s3/doc-binary/src/support/mobile-ads/en/logo/rsya.svg)](https://partner.yandex.com)

</div>

<div><br><br></div>
<div class="page-container" style="padding: 0;">
  <div class="column">
      <p style="font-size: large;">Useful links</p>
      <ul>
         <li><a href="https://t.me/YANpartner/" target="_blank">Yandex Advertising Network Telegram channel</a></li>
         <li><a href="https://yandex.ru/legal/partner/" target="_blank">Rules of participation</a></li>
         <li><a href="https://yandex.com/legal/yan_service_offer/" target="_blank">Yandex Advertising Network Terms of Offer</a></li>
      </ul>
  </div>   
</div>
<div><br><br></div>


<!-- endsource: en/_includes/feedback-forms/units-buttons.md -->
