In page
To monetize your Turbo pages, you can enable the Yandex Advertising Network blocks or ads from other systems using ADFOX.
Follow these steps to enable this type of ad:
Step 1. Creating an ad block
- Go to Add RTB block.and click
- In the second step of creating an RTB block, select Turbo pages for desktop and click Next.
Set up the ad formats for Yandex.Direct and display ads.
Restrictions: maximum width of 728 pixels, maximum height of 250 pixels.
- Copy the ID of the created block and use it when enabling ads in Yandex.Webmaster settings. The ID has the format R‑A‑123456‑7.
In the ADFOX interface, create a platform for your Turbo pages.
To place the ads on Turbo pages, you'll need the embed code.
- Click.
- Copy the code starting from the div element.
<div id="container ID"></div>
<script>
window.Ya.adfoxCode.create({
ownerId: 123456,
containerId: 'container ID',
params: {
pp: 'g',
ps: 'cmic',
p2: 'fqem'
}
});
</script>
Step 2. Enabling and checking
ADFOX formats are not validated. Be sure that you check their display before enabling your desktop Turbo pages.
You can position blocks on the page manually or using automatic ad placement.
- In Yandex.Webmaster, go to Desktop option.and select the
- Under Ad blocks in content, click Add and select the ad block type.
- Depending on the block type, enter the block ID in the YAN field or the embed code in the ADFOX field.
- If you have specified multiple ad blocks, order them by display priority using the
icon. The order will be taken into account at ad placement.
- Save changes.
- Enter the information in.
- Delete the item turbo:adNetwork and its content from the RSS feed.
- Wait for the RSS file to update in Yandex.Webmaster.
- In Yandex.Webmaster, go to Desktop option.and select the
- In the Manual setup section, click Add and select the ad block type.
- Depending on the block type, enter the block ID in the YAN field or the embed code in the ADFOX field.
- 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 to this element with the ID value specified in the previous step and the
data-platform-desktop="true"
attribute:<figure data-turbo-ad-id="first_ad_place" data-platform-desktop="true"></figure>
Copied to clipboard- Go back toand check the ad display in the sample Turbo page.
If you enabled ads in the Yandex.Webmaster interface, don't add ads to the RSS feed.
Pass information about ads using the turbo:adNetwork element:
Ad blocks supported:... <channel> ... <turbo:adNetwork></turbo:adNetwork> ... </channel> ...
Copied to clipboardExample of how to enable:Attention. Specify the ADFOX embed code inside the turbo:adNetwork element. Wrap it with <![CDATA[]]>.<turbo:adNetwork type="AdFox" turbo-ad-id="first_ad_place"> <![CDATA[ <div id="container ID 1"></div> <script> window.Ya.adfoxCode.create({ ownerId: 123456, containerId: 'container ID 1', params: { pp: 'g', ps: 'cmic', p2: 'fqem' } }); </script> ]]> </turbo:adNetwork>
Copied to clipboardtype
*Type of ads. Accepts the value AdFox.turbo-ad-id
*ID indicating the placement position of the ad.* Required
- In the page content, 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 turbo-ad-id attribute of the turbo:adNetwork element, and the
data-platform-desktop="true"
attribute:Example:
<figure data-turbo-ad-id="first_ad_place" data-platform-desktop="true"></figure>
Copied to clipboardNote.If the turbo-ad-id attribute is not specified or its value is omitted, only the first ad block is displayed at the bottom of the Turbo page.
If the turbo-ad-id attribute is specified only for a few ad blocks, the ad is not displayed.