Contents

AutoPlacementLayout

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

Declaration

object AutoPlacementLayout

Properties

NameTypeDescription
margin(Margin | integer)

The top and bottom margin in points, or in any other unit of measure for components. See Specifying Measurements for Components.

Mentioned in

Discussion

Use the AutoPlacementLayout object to define the margins for ad 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 AdvertisementAutoPlacement.

Example

{
  "version": "1.9",
  "identifier": "SampleArticle",
  "language": "en",
  "title": "Apple News",
  "layout": {
    "columns": 20,
    "width": 1024,
    "margin": 60,
    "gutter": 20
  },
  "autoplacement": {
    "advertisement": {
      "enabled": true,
      "bannerType": "any",
      "distanceFromMedia": "10vh",
      "frequency": 10,
      "layout": {
        "margin": 10
      }
    }
  },

}

See Also

Article Layout