AdvertisingSettings
The object for defining properties that affect the frequency and placement with which banner advertisements and medium rectangle advertisements are automatically placed in your article.
Declaration
object AdvertisingSettingsProperties
| Name | Type | Description |
|---|---|---|
bannerType | string | The banner type that should be shown. |
distanceFromMedia | (SupportedUnits | integer) | Either a number in points or a string referring to a supported unit of measure that describes the minimum required distance between automatically inserted advertisement components and media, such as video, images, and embeds. For example, you can enter a value such as Version 1.1 |
frequency | integer | A number between Setting this value to To increase the likelihood of a banner advertisement getting inserted on every screen, set the frequency to Leaving this property out, or providing a value of |
layout | AdvertisingLayout | Layout object that currently supports margin only. An automatically inserted advertising component uses the surrounding margins to make sure it positions itself nicely in between components. If needed, the margins that will be created around these advertisements can be defined using this layout property. |
Discussion
Use the AdvertisingSettings object to insert dynamic advertisements between Body, Chapter, Section, or Container components in an article.
Example
{
"advertisingSettings": {
"frequency": 10,
"layout": {
"margin": {
"top": 15,
"bottom": 20
}
}
}
}