---
title: MediumRectangleAdvertisement
framework: applenewsformat
role: symbol
role_heading: Object
path: applenewsformat/mediumrectangleadvertisement
---

# MediumRectangleAdvertisement

The component for adding a medium, fixed-size rectangle ad.

## Declaration

```data
object MediumRectangleAdvertisement
```

## Properties

role: Always medium_rectangle_advertisement for this component. anchor: An object that defines vertical alignment with another component. animation: An object that defines an animation the component applies Use the none value for conditional design elements. Adding it here has no effect. behavior: An object that defines behavior for a component, like Parallax or Springy. The none value is used for conditional design elements. Adding it here has no effect. conditional: An instance or array of component properties that can be applied conditionally, and the conditions that cause them to be applied. hidden: A boolean value that determines whether the component is hidden. identifier: An optional unique identifier for this component. If used, this identifier must be unique across the entire document. You will need an identifier for your component if you want to anchor other components to it. layout: An inline ComponentLayout object that contains layout information, or a string reference to a ComponentLayout object that is defined at the top level of the document. If layout is not defined, size and position will be based on various factors, such as the device type, the length of the content, and the role of this component. style: An inline ComponentStyle object that defines the appearance of this component, or a string reference to a ComponentStyle object that is defined at the top level of the document. The none value is used for conditional design elements. Adding it here has no effect.

## Mentioned in

Apple News Format Release Notes

## Discussion

Discussion The MediumRectangleAdvertisement object has a fixed size of 300 x 250 points. You can embed this component within the text content or at the end of your article. (Medium rectangle advertisements can appear inside a Container only if the container is full-width.) Keep these points in mind when including medium rectangle ads in your article: Do not apply animations, scenes, or behaviors to ad components. Ads placed on the first “screen” of an article will not be rendered. The dimensions of visible areas vary with screen size and text size. If two or more ad components are placed on the same screen, News renders only the first component. Do not position ads immediately before or after an image. For advertisements that span the full width of the display, see BannerAdvertisement. Example {   "components": [     {       "role": "medium_rectangle_advertisement"     }   ] }

## Relationships

### Inherits From

- [Component](applenewsformat/component.md)

## See Also

### Advertisements

- [BannerAdvertisement](applenewsformat/banneradvertisement.md)
