---
title: AutoPlacementLayout
framework: applenewsformat
role: symbol
role_heading: Object
path: applenewsformat/autoplacementlayout
---

# AutoPlacementLayout

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

## Declaration

```data
object AutoPlacementLayout
```

## Properties

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

## Mentioned in

Apple News Format Release Notes

## Discussion

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

- [Planning the Layout for Your Article](applenews/planning-the-layout-for-your-article.md)
- [Positioning the Content in Your Article](applenews/positioning-the-content-in-your-article.md)
- [Wrapping Text Around a Component](applenews/wrapping-text-around-a-component.md)
- [Layout](applenewsformat/layout.md)
- [ComponentLayout](applenewsformat/componentlayout.md)
- [Anchor](applenewsformat/anchor.md)
- [Margin](applenewsformat/margin.md)
- [AdvertisingLayout](applenewsformat/advertisinglayout.md)
