---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com/support/partner/en/web/units/amp.md
  - https://yandex.com/support/partner/ru/web/units/amp.md
  - href: en/web/units/amp.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/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://yandex.com/support/partner/en/web/units/formats/main.md).

- [Display banners](https://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://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>
    <img src="https://yastatic.net/s3/doc-binary/src/support/partner/qr-codes/gr-code-en-new.svg" style="width: 100%; display: block;"/>
    <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>
</details>

<details>
    <summary class="button">Write to Telegram</summary>
    <img src="https://yastatic.net/s3/doc-binary/src/support/partner/en/qr-codes/qr-code-en-telegram.svg" style="width: 100%; position: relative; left: -18px; display: block;"/>
    <a href="http://t.me/YanSupport_Bot" style="display: block; text-align: left; margin-left: 18px; color: #5889FF;">Go to Telegram</a>
</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="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 -->
