---
title: AdvertisingLayout
framework: applenewsformat
role: symbol
role_heading: Object
path: applenewsformat/advertisinglayout
---

# AdvertisingLayout

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

## Declaration

```data
object AdvertisingLayout
```

## Properties

margin: 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

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

- [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)
- [AutoPlacementLayout](applenewsformat/autoplacementlayout.md)
