Skip to content

Commit

Permalink
📖 Update<amp-consent> policy configuration snippet (#35362)
Browse files Browse the repository at this point in the history
1. Update snippet to valid JSON
2. Update some wording
3. Unrelated: Fixes `AppConsent` product URL in order to pass `check-links` with this change.
  • Loading branch information
alanorozco committed Jul 26, 2021
1 parent 6d4ace9 commit 0b34e0e
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions extensions/amp-consent/amp-consent.md
Expand Up @@ -487,22 +487,11 @@ When one of the pre-defined attributes is used, AMP assumes that the publisher t

### Customize Consent Blocking Behaviors

An optional `policy` object can be added to the `<amp-consent>` element's JSON configuration object to customize consent blocking behaviors.
An optional `policy` property can be added to the `<amp-consent>` element's JSON configuration object. Its value is an object that customizes consent blocking behaviors.

```html
<amp-consent layout="nodisplay" id="consent-element">
<script type="application/json">
{
"checkConsentHref"
"consentInstanceId": "ping2"
"geo": abc,
"extraConfig" : {
'id': xxx
'config': asdsdfasd,
},
"postPromptUI": 'test'
}
{
"consentInstanceId": xxx
"checkConsentHref": "https://example.com/api/show-consent"
Expand All @@ -519,7 +508,7 @@ An optional `policy` object can be added to the `<amp-consent>` element's JSON c
</amp-consent>
```

Right now only customizing the `default` policy instance is supported. The "default" behavior policy applies to every component that is blocked by consent with `data-block-on-consent` attribute.
The `default` policy is the only one allowed to be configured. This policy applies to every element that is blocked by the `data-block-on-consent` attribute.

### Policy Instance (optional)

Expand Down Expand Up @@ -664,7 +653,7 @@ Join in on the discussion where we are discussing [upcoming potential features](

## Supported Consent Management Platforms

- AppConsent : [Website](https://appconsent.io/en) - [Documentation](./cmps/appconsent.md)
- AppConsent : [Website](https://sfbx.io/en/produits/) - [Documentation](./cmps/appconsent.md)
- ConsentManager : [Website](https://www.consentmanager.net/) - [Documentation](https://help.consentmanager.net/books/cmp/page/using-the-cmp-with-amp-websites)
- Didomi : [Website](https://www.didomi.io/) - [Documentation](https://developers.didomi.io/cmp/amp)
- iubenda : [Website](https://www.iubenda.com/) - [Documentation](./cmps/iubenda.md)
Expand Down

0 comments on commit 0b34e0e

Please sign in to comment.