AMP

Important: this documentation is not applicable to your currently selected format websites!

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.

Perlu bantuan lainnya?

Anda telah membaca dokumen ini belasan kali, tetapi belum semua pertanyaan Anda terjawab? Mungkin orang lain merasakan hal yang sama. Berinteraksilah dengan mereka di Stack Overflow.

Kunjungi Stack Overflow
Menemukan bug atau ada fitur yang kurang?

Proyek AMP sangat menganjurkan partisipasi dan kontribusi Anda! Kami berharap Anda akan terus ambil bagian dalam komunitas sumber terbuka kami, tetapi kami juga menerima kontribusi satu kali untuk topik tertentu yang Anda minati.

Kunjungi GitHub