Contents

AdvertisingLayout

The object for defining the margin above and below advertising components.

Declaration

object AdvertisingLayout

Properties

NameTypeDescription
margin Required(Margin | integer)

Describes margins on top and bottom as a single integer or as an object containing separate properties for top and bottom margins.

Version 1.1

Discussion

Define the margins for the BannerAdvertisement components that are inserted automatically. This object is different from the ComponentLayout object and supports only one property, margin.

This object can be used in AdvertisingSettings.

Example

{
  "advertisingSettings": {
    "frequency": 10,
    "layout": {
      "margin": {
        "top": 15,
        "bottom": 20
      }
    }
  }
}

See Also

Article Layout