Units for mobile Turbo pages and AMP
Ads on mobile Turbo pages
Automatic ad setup
You can customize ads on Turbo pages in the Yandex Webmaster interface: the system will automatically create and place Yandex Advertising Network units on your pages.
Ads are repeated at a pace that makes it easy to digest content: one ad unit per screen. You can add new units or change the position of existing ones at any time. If you want Turbo page ads placed in specific locations, their location can be changed manually.
To learn more about enabling automatic setup, see the Turbo pages documentation.
Manual ad setup
To manually create and place a Yandex Advertising Network unit on mobile Turbo pages:
- In the Yandex Advertising Network interface, create a Banner unit. In the unit settings, select Turbo in the Turbo / AMP field.
- Get the embed code: in the unit settings, click Get code.
- Copy the unit ID from the code.
- Place the unit on the page. You can enable automatic placement of ads or place them manually:
- In Yandex Webmaster, go to .
- Select the unit location and click Add next to the desired one. Available locations:In-page ad units
An adaptive unit in the page contents that occupies 100% of the width. The unit height depends on its contents: text and image Adaptive
ads can occupy up to 70% of the screen height, display ads up to 300 pixels.
By default, the unit contains a placeholder: a container inside an ad that fills the space in the layout until the adaptive ad is displayed. This will help you avoid offsetting content as an ad loads.
When using automatic ad placement, the number of ads and favorable slots are selected automatically depending on the page length.
Ad unit above the headerAn adaptive banner above the header of the page that occupies 100% of the width and 70 pixels of the height. If you enable the unit above the header and the automatic recommendation feed, the ad is displayed before each new page of the feed. You can only place the Yandex Advertising Network units above the header.
Recommendations feedAd cards that take up 100% of the width and are served in an endless feed on Turbo pages. The unit height depends on its contents: text and image Adaptive
ads can occupy up to 70% of the screen height, display ads up to 300 pixels.
By default, the unit contains a placeholder: a container inside an ad that fills the space in the layout until the adaptive ad is displayed. This will help you avoid offsetting content as an ad loads.
Floor AdAn adaptive banner that is fixed at the bottom of the page. The ad unit occupies 100% of the width and 100 pixels of height. The unit may contain an Adaptive
ad with an image, title, and description of the ad offer, or a display banner.
- Select the YAN ad unit type and specify the unit ID.
- If you are placing multiple ad units, order them by display priority using the
icon. The order will be taken into account at ad placement.
- Save the changes.
- In Yandex Webmaster, go to .
- Under Manual setup, select a location and click Add next to the desired one. Available locations:In-page ad units
An adaptive unit in the page contents that occupies 100% of the width. The unit height depends on its contents: text and image Adaptive
ads can occupy up to 70% of the screen height, display ads up to 300 pixels.
By default, the unit contains a placeholder: a container inside an ad that fills the space in the layout until the adaptive ad is displayed. This will help you avoid offsetting content as an ad loads.
We recommend spacing ad units at least 250 words apart.
Ad unit above the headerAn adaptive banner above the header of the page that occupies 100% of the width and 70 pixels of the height. If you enable the unit above the header and the automatic recommendation feed, the ad is displayed before each new page of the feed. You can only place the Yandex Advertising Network units above the header.
Recommendations feedAd cards that take up 100% of the width and are served in an endless feed on Turbo pages. The unit height depends on its contents: text and image Adaptive
ads can occupy up to 70% of the screen height, display ads up to 300 pixels.
By default, the unit contains a placeholder: a container inside an ad that fills the space in the layout until the adaptive ad is displayed. This will help you avoid offsetting content as an ad loads.
Floor AdAn adaptive banner that is fixed at the bottom of the page. The ad unit occupies 100% of the width and 100 pixels of height. The unit may contain an Adaptive
ad with an image, title, and description of the ad offer, or a display banner.
- Select the YAN ad unit type and specify the unit ID.
- In the turbo-ad-id field, set an arbitrary ID, like first_ad_place.
- Save changes.
In the RSS feed, specify the placement position of the ad using the figure element. Add the data-turbo-ad-id attribute for this element with the ID value specified in the previous step.
<figure data-turbo-ad-id="first_ad_place"></figure>
Copied to clipboard- Go back toand check the ad display on the sample Turbo page.
To display your own ads or implement direct sales in units on Turbo pages, use Adfox units. For more information, see Adfox Help.
Advertising on AMP pages
Yandex Advertising Network units placed on AMP pages can display:
To place a Yandex Advertising Network unit:
- In the Yandex Advertising Network interface, create a Banner unit. In the unit settings, be sure to select AMP in the Turbo / AMP field.
- Get the embed code: in the unit settings, click Get the code.
- Make changes to the site page's code:
- Add the script with the amp-ad component to
<head>
. - Copy the ad unit code to the clipboard and paste it in the place where you plan to display the unit.
- Change the
height
parameter value to the height you set for the ad unit. In the embed code, the default height is 320 pixels. - Add the script with the amp-sticky-ad component to
<head>
. Wrap the ad unit code with the following tags:
<amp-sticky-ad layout="nodisplay"> // ad unit code </amp-sticky-ad>
Configure the ad unit parameters:
width
: Width in pixels.height
: Height in pixels (maximum value: 100).- Delete the
layout="fixed-height"
parameter.
Paste the code into the site page in the place where you plan to display the unit.
Example of a Floor Ad embed code<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>
In-page unitFloor Ad unitAnother type of unitYou can place banners into various types of units in accordance with the AMP documentation requirements.