amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Expose if ad is being served to an AMP page

Open jasti opened this issue 9 years ago • 7 comments

An ad often wants to do different things depending if it is on an AMP pages vs a non-AMP page. This should be be available to both a regular ad and AMP format ad.

jasti avatar Oct 18 '17 20:10 jasti

May I ask why? What exactly would it do differently? The plan is to expose the safeframe API to doubleclick FF retrieved AMP creatives. Idea being that creatives do not need to worry about their environment as the APIs are consistent.

keithwrightbos avatar Oct 18 '17 20:10 keithwrightbos

The specific use case here was wanting the ability to write some HTML outside the iframe. It's apparently possible to do so when served to non-AMP but when served to AMP page, the HTML (which just fires an image tag) is written inside the iframe.

More over, wouldn't developers want to know things like, can I expand and serve an interstitial even if the creative doesn't use SafeFrame?

jasti avatar Oct 19 '17 00:10 jasti

This issue hasn't been updated in awhile. @keithwrightbos Do you have any updates?

ampprojectbot avatar Jan 22 '18 21:01 ampprojectbot

This issue hasn't been updated in awhile. @keithwrightbos Do you have any updates?

ampprojectbot avatar Jun 05 '18 11:06 ampprojectbot

This issue hasn't been updated in awhile. @keithwrightbos Do you have any updates?

ampprojectbot avatar Sep 11 '18 12:09 ampprojectbot

This issue hasn't been updated in awhile. @keithwrightbos Do you have any updates?

ampprojectbot avatar Dec 12 '18 10:12 ampprojectbot

I feel all the use cases described above is AMP agnostic, what really matters is whether the ad is in friendly or foreign iframe. If ad wants to mutate an AMP page, there will need to be behaviors and APIs defined. Exposing a boolean state won't be helpful.

Closing for inactivity. Feel free to reopen with more info.

lannka avatar Jul 03 '19 21:07 lannka