Connecting an ad block in columns
To monetize Turbo pages, you can include ad blocks or ads from other systems using .
On the desktop Turbo page, you can place fixed ad blocks in the right and left columns.
Restrictions:
- Left column: up to 240 pixels wide, up to 400 pixels high.
- Right column: up to 300 pixels wide, up to 600 pixels high.
Follow these steps to enable ads:
Step 1. Creating an ad block
To create an ad block:
- Open the interface.
- Go to Add an RTB block.and click
- On the second step of creating the RTB block, select Desktop Turbo pages and click Next.
Customize Yandex.Direct ad formats and media advertising.
Restrictions:
- Left column: up to 240 pixels wide, up to 400 pixels high.
- Right column: up to 300 pixels wide, up to 600 pixels high.
- Copy the ID of the created block and use it when connecting ads. ID has the R-A-123456-7 format.
In ADFOX, .
To add ads to Turbo pages, you need an embed code.
- Go to thetab.
- Copy the code starting with the div element.
Code example
<div id="container ID"></div>
<script>
window.Ya.adfoxCode.create({
ownerId: 123456,
containerId: 'container ID',
params: {
pp: 'g',
ps: 'cmic',
p2: 'fqem'
}
});
</script>
Where do I find the embed code?
Step 2. Adding and checking
Внимание. Yandex Advertising Network ad block formats are validated when they are enabled. If a block is the incorrect size, the ad isn't displayed.
The ADFOX formats aren't validated. Debug the ad display yourself before enabling desktop Turbo pages.
To connect an ad block:
- In Yandex.Webmaster, go to the Desktop.page and choose
- In block Ad blocks in the right column or Ad blocks in the left column block, click the Add button 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 add several ad blocks, put them in the display priority order using the
icon. The order will be taken into account when placing ads.
- Check the ad display on the sample Turbo page.
- Save your changes.