<!--
{
  "availability" : [
    "Apple News Format: 1.7.0 - 1.7.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppleNewsFormat",
  "identifier" : "/documentation/AppleNewsFormat/AdvertisingLayout",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Apple News Format"
    ],
    "preciseIdentifier" : "data:news_format:AdvertisingLayout"
  },
  "title" : "AdvertisingLayout"
}
-->

# AdvertisingLayout

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

```
object AdvertisingLayout
```

## Discussion

Define the margins for the [`BannerAdvertisement`](/documentation/AppleNewsFormat/BannerAdvertisement) components that are inserted automatically. This object is different from the [`ComponentLayout`](/documentation/AppleNewsFormat/ComponentLayout) object and supports only one property, `margin`.

This object can be used in [`AdvertisingSettings`](/documentation/AppleNewsFormat/AdvertisingSettings).

### Example

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)