AMP

amp-access-scroll

Description

Integrates with Scroll membership.

 

Required Scripts

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

Usage

Lets sites in the Scroll network identify Scroll members in order to serve them an ad-free, directly-monetized experience.

Configuration

In <head>, add

<script id="amp-access" type="application/json">
{
  "vendor": "scroll",
  "namespace": "scroll"
}
</script>

Be sure not to add a trailing comma to the namespace line, which makes it invalid JSON!

If you are already using amp-access for a paywall, follow the steps in the amp-access documentation for using namespaces and an array of providers.

Make each ad conditional

Add an amp-access attribute to each ad container.

<div class="amp-ad-container" amp-access="NOT scroll.scroll">
  <amp-ad... >
</div>

Learn more at https://developer.scroll.com/amp.

Validation

See amp-access-scroll rules in the AMP validator specification.

Daha fazla yardıma mı ihtiyacınız var?

Bu belgeyi defalarca okudunuz ama tüm sorularınıza tatmin edici bir yanıt bulamadınız mı? Belki başka kişiler de bu şekilde hissetmiştir: Stack Overflow'dan onlara ulaşın.

Stack Overflow'a git
Bir hata veya eksik bir özellik mi buldunuz?

AMP projesi, katılımınızı ve katkılarınızı güçlü bir şekilde teşvik ediyor! Açık kaynak topluluğumuzun devamlı bir katılımcısı olacağınızı umuyoruz ancak özel olarak ilgilendiğiniz konularla ilgili tek seferlik katkıları da memnuniyetle karşılıyoruz.

GitHub'a git