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

Created on 18 Sep 2018  路  9Comments  路  Source: ampproject/amphtml

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).

Feature Request monetization

Most helpful comment

Reopening this after more research. We'll look into supporting this since
a) This is referring to the sticky ad being in the right or left rail in a fixed position in the desktop view
b) It doesn't obstruct content and is not simply a larger version of the current sticky ad on mobile

All 9 comments

to @jasti Regarding how sticky ad works on desktop.

@bjalford that's right, AMP won't render an ad if it is position fixed unless it is positioned inside flying-carpet/lightbox/sticky-ad container.
The request here is to have the sticky-ad sticky to the side of the page (rather than bottom) on desktop? And then maybe a max width restriction can be applied.

@zhouyx correct. My exact requirements would be for it to be inside a sidebar container (max-width) and be the bottom item inside that container which would then stick.

Example can be seen here: https://www.independent.co.uk/news/uk/home-news/northern-ireland-abortion-pill-mother-prosecuted-daughter-belfast-court-a8546936.html

  • Under 'Popular Videos' an ad (JS DFP) is rendering which we then stick as the user scrolls down the page

@bjalford unfortunately large sticky ads on desktop are not approved by the better ads standard as a good ad/ user experience, so we have had to limit the height of the sticky ad on both desktop & mobile. https://www.betterads.org/desktop-large-sticky-ad/

@bjalford As Vamsee said. Large sticky ads on desktop is not something we are planning to build for better ad/user experience. Close as not intent to implement.

Reopening this after more research. We'll look into supporting this since
a) This is referring to the sticky ad being in the right or left rail in a fixed position in the desktop view
b) It doesn't obstruct content and is not simply a larger version of the current sticky ad on mobile

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

We would like to use this feature and were disappointed to find it was marked Stale. Please bring this back to life.

Why was this closed? This seems like a key feature to have in AMP.

Added @lannka and @powerivq
Would the new sticky format proposal help here?

Was this page helpful?
0 / 5 - 0 ratings