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.

هل تحتاج إلى مزيد من المساعدة؟

لقد قرأت هذا المستند عشرات المرات ولكن ألم يُجِب عن جميع أسئلتك؟ ربما حصل ذات الأمر مع أشخاص آخرين: تواصل معهم على Stack Overflow.

الذهاب إلى Stack Overflow
هل وجدت خطأ أو تفتقد لميزة؟

يشجع مشروع AMP مشاركتك ومساهمتك بشدة! ونأمل أن تكون مشاركًا دائمًا في مجتمعنا مفتوح المصدر، ولكننا نشجع أيضًا المساهمات التي تحدث لمرة واحدة في الأمور التي تتحمس لها.

الانتقال إلى GitHub