Ad blocks

On a Turbo page, you can place a block in content and in an InPage video ad:

  1. In-content block
  2. InPage video ads

In-content block

Attention. Add ad blocks not more often than every 250 words on the page. Frequent ads make messages on the Turbo pages harder to read. This can cause users to stop visiting your pages over time.

To set the ad block position manually, use the figure element.

<!-- Mobile RTB ad -->
<figure data-turbo-ad-id="mobile_ad"></figure>
<!-- Desktop RTB ad -->
<figure
    data-turbo-ad-id="desktop_ad"
    data-platform-mobile="false"
    data-platform-desktop="true">
</figure>
Copied to clipboard
data-turbo-ad-id * The turbo-ad-id value specified on the Turbo pages → Settings → Advertising page or in the turbo:adNetwork element of the RSS feed. For more information, see Manual configuration in the interface.
data-platform-mobile Enables/disables the ads display on the mobile Turbo pages.

Default value: true.

data-platform-desktop Enables/disables the ads display on the desktop Turbo pages.

Default value: false.

Note. The usage of the data-platform-desktop="true" attribute disables autofill on the desktop Turbo page.

*Required attribute.

InPage video ads

Attention. You can only place one InPage block on a page.

To set the InPage block position manually, use the figure element:

<figure inpage="true"
    data-turbo-ad-id="general_ad_alias"
    data-turbo-inpage-ad-id="inpage_ad_alias">
</figure>
Copied to clipboard
inpage * Sets the InPage type of the ad block.
data-turbo-ad-id * The turbo-ad-id value specified on the Turbo pages → Settings → Advertising page or in the turbo:adNetwork element of the RSS feed.
data-turbo-inpage-ad-id * The turbo-inpage-ad-id value specified on the Turbo pages → Settings → Advertising page. For more information, see Manual placement.

*Required attribute.

The data-turbo-ad-id and data-turbo-inpage-ad-id attribute values must be different. If the InPage block can't be displayed, the data-turbo-ad-id ad block is shown.