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

# AdvertisementAutoPlacement

The object for defining the automatic placement of advertisements.

```
object AdvertisementAutoPlacement
```

## Discussion

Use the `AdvertisementAutoPlacement` object to insert dynamic advertisements between [`Body`](/documentation/AppleNewsFormat/Body), [`Chapter`](/documentation/AppleNewsFormat/Chapter), [`Section`](/documentation/AppleNewsAPI/Section), or [`Container`](/documentation/AppleNewsFormat/Container) components in an article.

### Example

```json
{
  "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
      }
    }
  },
  …
}
```

## Relationships

### Inherits From

[`AutoPlacement`](/documentation/AppleNewsFormat/AutoPlacement)

---

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)