Ad blocks on AMP pages
The Yandex Advertising Network provides special ad blocks that can be placed on AMP pages. They can be used to show:
- Yandex.Direct contextual ads.
- Banners, including media banners, Yandex.Direct image ads, and smart banners.
The AMP technology imposes a number of limitations on how external components can be used in the page code. For this reason, the ad block code for AMP pages is different from the code for other ad blocks. Do not use this code on other types of sites or your ads will not be selected for impressions.
The supported ad block formats for AMP pages are listed on the tabs below.
The maximum number of ads per ad block is two Yandex.Direct ads or one banner.
The maximum number of ads per ad block is three Yandex.Direct ads or one banner.
The partner can manually set the size for the ad block. The minimum width of the ad block is 160 pixels, and the maximum height is 90 pixels.
The maximum number of ads in this block is nine Yandex.Direct ads or one banner.