AMP

amp-mraid

Description

Supports interaction with the MRAID host API within Ad webviews in mobile apps

 

Required Scripts

<script async custom-element="amp-mraid" src="https://cdn.ampproject.org/v0/amp-mraid-0.1.js"></script>

Overview

When the amp-mraid extension is included in an AMPHTML ad it will load mraid.js and register MRAID functions as host services. This allows amp-analytics, amp-ad-exit, and amp-lightbox to operate in mobile app ads.

Validation

The amp-mraid extension is intended for AMPHTML ads. It is intended to be injected by the ad network after validation, and as such a creative with amp-mraid will not validate.

Need more help?

You've read this document a dozen times but it doesn't really cover all of your questions? Maybe other people felt the same: reach out to them on Stack Overflow.

Go to Stack Overflow
Found a bug or missing a feature?

The AMP project strongly encourages your participation and contributions! We hope you'll become an ongoing participant in our open source community but we also welcome one-off contributions for the issues you're particularly passionate about.

Go to GitHub