Skip to content

Commit

Permalink
Documentation for amp-story consent external link. (#21001)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmajoulet committed Feb 22, 2019
1 parent 6efcfc1 commit 059b670
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extensions/amp-consent/amp-consent.md
Expand Up @@ -214,6 +214,7 @@ AMP also supports external consent UI flow with the usage of `<amp-iframe>`. Mor

The `amp-story` extension provides a [default prompt UI](https://user-images.githubusercontent.com/1492044/40135514-8ab56d10-5913-11e8-95a2-72ac01ff31e0.png), that requires using a `<amp-story-consent>` component as the prompt UI. This component content requires a `title`, a `message`, and a list of `vendors`, and has to be specified in its own component configuration.
The decline button can be hidden by adding an optional `onlyAccept` boolean parameter.
Additionally, an optional templated external link to the privacy policy or settings can be configured, by adding `"externalLink": {"title": "Privacy Settings", "href": "https://example.com"}` to the consent configuration.

*Example*: Displays a prompt user interface on an AMP Story

Expand Down

0 comments on commit 059b670

Please sign in to comment.