MediumRectangleAdvertisement
The component for adding a medium, fixed-size rectangle ad.
Declaration
object MediumRectangleAdvertisementProperties
| Name | Type | Description |
|---|---|---|
role Required | string | Always |
anchor | Anchor | An object that defines vertical alignment with another component. |
animation | (ComponentAnimation | string("none")) | An object that defines an animation the component applies Use the none value for conditional design elements. Adding it here has no effect. |
behavior | (Behavior | string("none")) | An object that defines behavior for a component, like Parallax or Springy. The |
conditional | (ConditionalComponent | [ConditionalComponent]) | An instance or array of component properties that can be applied conditionally, and the conditions that cause them to be applied. |
hidden | boolean | A boolean value that determines whether the component is hidden. |
identifier | string | An optional unique identifier for this component. If used, this |
layout | (ComponentLayout | string) | An inline If |
style | (ComponentStyle | string | string("none")) | An inline ComponentStyle object that defines the appearance of this component, or a string reference to a The |
Mentioned in
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"
}
]
}