diff --git a/extensions/amp-access-scroll/amp-access-scroll.md b/extensions/amp-access-scroll/amp-access-scroll.md new file mode 100644 index 000000000000..9bb723913434 --- /dev/null +++ b/extensions/amp-access-scroll/amp-access-scroll.md @@ -0,0 +1,81 @@ +--- +$category@: dynamic-content +formats: + - websites +teaser: + text: Integrates wth Scroll, a better internet that doesn't rely on ads. +--- + + + +# amp-access-scroll + +Lets sites in the Scroll network identify Scroll members in order to serve them an ad-free, directly-monetized experience. + + + + + + +
Required Scripts +
+ <script async custom-element="amp-access" src="https://cdn.ampproject.org/v0/amp-access-0.1.js"></script> +
+
+ <script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script> +
+
+ <script async custom-element="amp-access-scroll" src="https://cdn.ampproject.org/v0/amp-access-scroll-0.1.js"></script> +
+
+ +[TOC] + +## Behavior + +### Configure + +In ``, add + +``` + +``` + +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](https://amp.dev/documentation/components/amp-access#multiple-access-providers). + +### Make each ad conditional + +Add an `amp-access` attribute to each ad container. + +``` +
+ +
+``` + +Learn more at https://developer.scroll.com/amp + +## Validation + +See [amp-access-scroll rules](https://github.com/ampproject/amphtml/blob/master/extensions/amp-access-scroll/validator-amp-access-scroll.protoascii) in the AMP validator specification.