ampproject / ampproject/amphtml

[Master Feature] Allow ads to be position fixed on desktop canoncial

Open
#18,123 36 comments 0 reactions 2 assignees Claimed by @powerivq View on GitHub
Stale Type: Feature Request WG: components WG: monetization
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

We have a requirement to make an ad sticky in an article template for a publisher in the right hand column on desktop (AMP as canonical). If we add a position fixed the ad doesn't render.

In the same way the amp-sticky-ad has a height restriction, could amp-ads on desktop (or media query great than x pixels) that are position fixed have a max width. Our specific requirement is to render MPUs and double MPUs (300 wide).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.