From 041661610d883cfaf0dc11e928652ca41b4f8db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Herculano?= Date: Tue, 13 Aug 2019 12:26:45 +0200 Subject: [PATCH 1/9] add SourcePoint to cmps list --- extensions/amp-consent/0.1/cmps.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/extensions/amp-consent/0.1/cmps.js b/extensions/amp-consent/0.1/cmps.js index 1460e2a1100c..7f396c4f0fb1 100644 --- a/extensions/amp-consent/0.1/cmps.js +++ b/extensions/amp-consent/0.1/cmps.js @@ -40,3 +40,9 @@ CMP_CONFIG['didomi'] = { 'checkConsentHref': 'https://api.privacy-center.org/amp/check-consent', 'promptUISrc': 'https://sdk-amp.privacy-center.org/loader.html', }; + +CMP_CONFIG['SourcePoint'] = { + 'consentInstanceId': 'SourcePoint', + 'checkConsentHref': 'https://sourcepoint.mgr.consensu.org/consent/amp', + 'promptUISrc': 'https://amp.pm.sourcepoint.mgr.consensu.org/' +}; From db07873bcd1328a3680353204591ebc112b8b5e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Herculano?= Date: Tue, 13 Aug 2019 12:27:27 +0200 Subject: [PATCH 2/9] add documentation for SourcePoint's CMP --- examples/cmp-vendors.amp.html | 25 ++++++++ extensions/amp-consent/amp-consent.md | 1 + extensions/amp-consent/cmps/sourcepoint.md | 69 ++++++++++++++++++++++ 3 files changed, 95 insertions(+) create mode 100644 extensions/amp-consent/cmps/sourcepoint.md diff --git a/examples/cmp-vendors.amp.html b/examples/cmp-vendors.amp.html index e6f9d61fde47..1f45fd9af99f 100644 --- a/examples/cmp-vendors.amp.html +++ b/examples/cmp-vendors.amp.html @@ -163,6 +163,31 @@

Image that is NOT blocked by consent

+ + + + + + diff --git a/extensions/amp-consent/amp-consent.md b/extensions/amp-consent/amp-consent.md index aac55a1a9c23..d06ca2cbbed6 100644 --- a/extensions/amp-consent/amp-consent.md +++ b/extensions/amp-consent/amp-consent.md @@ -525,4 +525,5 @@ Join in on the discussion where we are discussing [upcoming potential features]( ## Supported Consent Management Platforms - Didomi : [Website](https://www.didomi.io/) - [Documentation](https://developers.didomi.io/cmp/amp) +- SourcePoint : [Website](https://www.sourcepoint.com/) - [Documentation](https://help.sourcepoint.com/en) - Your Integrated platform here! diff --git a/extensions/amp-consent/cmps/sourcepoint.md b/extensions/amp-consent/cmps/sourcepoint.md new file mode 100644 index 000000000000..44ec74335e8c --- /dev/null +++ b/extensions/amp-consent/cmps/sourcepoint.md @@ -0,0 +1,69 @@ + + +# SourcePoint + +## Example + +```html + + + + +``` + +## Notes + +### `postPromptUI` +The value of `postPromptUI` should be the id of the html tag in which the consent ui will be attached to. In our example above, the value of `postPromptUI` is `my-consent-prompt-ui` since we have a div with that id. + +### Opening the Privacy Manager +Notice in the example above, we have a `button` with the attribute `on="tap.consent.prompt(consent=SourcePoint)"`. The id of your `` element is relevant here. Notice how the id of our `` is `consent`, that's why the `on` attribute has the value "tap.**consent**.prompt(consent=SourcePoint)" + +## Configuration (`clientConfig`) + + +| Attribute | Type | Mandatory | Description | +|------------------|:------:|:---------:|--------------------------------------------------------------------------------------------------------------------| +| accountId | Number | yes | Your account id can be found in the SP's dashboard. | +| siteName | String | yes | The name of the site you used in the SP's dashboard. eg. `example.com` | +| siteId | Number | yes | The siteId can be found in the PrivacyManager page. | +| privacyManagerId | String | yes | The privacyManagerId can be found in the PrivacyManager page. | +| stageCampaign | Bool | no | Indicates if the campaign to load is staging or published. The default value is `false`, meaning published campaign. | +| authId | String | no | If a `authId` is present, we'll try to find the consent profile for that user if she/he has one stored. | +| targetingParams | Object | no | A collection of key values to be used in the scenario manager. | + +## Getting Help +For more information on how to integrate AMP to your page please visit our [help portal](http://help.sourcepoint.com/en) or contact your account manager directly. From 7d72ab552868ce5df503f203232845c5a7a7999e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Herculano?= Date: Tue, 13 Aug 2019 12:51:40 +0200 Subject: [PATCH 3/9] fix code styling issue --- extensions/amp-consent/0.1/cmps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/amp-consent/0.1/cmps.js b/extensions/amp-consent/0.1/cmps.js index 7f396c4f0fb1..4c90d0d2fa33 100644 --- a/extensions/amp-consent/0.1/cmps.js +++ b/extensions/amp-consent/0.1/cmps.js @@ -44,5 +44,5 @@ CMP_CONFIG['didomi'] = { CMP_CONFIG['SourcePoint'] = { 'consentInstanceId': 'SourcePoint', 'checkConsentHref': 'https://sourcepoint.mgr.consensu.org/consent/amp', - 'promptUISrc': 'https://amp.pm.sourcepoint.mgr.consensu.org/' + 'promptUISrc': 'https://amp.pm.sourcepoint.mgr.consensu.org/', }; From 377c765221552c9196bee3d6683f17ffd43e5f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Herculano?= Date: Fri, 16 Aug 2019 10:17:28 +0200 Subject: [PATCH 4/9] add SourcePoint to cmp-vendors options --- examples/cmp-vendors.amp.html | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/cmp-vendors.amp.html b/examples/cmp-vendors.amp.html index 1f45fd9af99f..8250e7feada8 100644 --- a/examples/cmp-vendors.amp.html +++ b/examples/cmp-vendors.amp.html @@ -96,6 +96,7 @@ + From 3656d045369241efc1ec55c90b5dee279afa06ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Herculano?= Date: Fri, 16 Aug 2019 10:17:47 +0200 Subject: [PATCH 5/9] point SourcePoint's AMP doc to the extensions page --- extensions/amp-consent/amp-consent.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/amp-consent/amp-consent.md b/extensions/amp-consent/amp-consent.md index d06ca2cbbed6..7efd8645cc85 100644 --- a/extensions/amp-consent/amp-consent.md +++ b/extensions/amp-consent/amp-consent.md @@ -525,5 +525,5 @@ Join in on the discussion where we are discussing [upcoming potential features]( ## Supported Consent Management Platforms - Didomi : [Website](https://www.didomi.io/) - [Documentation](https://developers.didomi.io/cmp/amp) -- SourcePoint : [Website](https://www.sourcepoint.com/) - [Documentation](https://help.sourcepoint.com/en) +- SourcePoint : [Website](https://www.sourcepoint.com/) - [Documentation](/extensions/amp-consent/cmps/sourcepoint.md) - Your Integrated platform here! From b8f92c754e65706eb287048f8b8d349f6d51a09d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Herculano?= Date: Fri, 16 Aug 2019 10:18:15 +0200 Subject: [PATCH 6/9] update clientConfig with AMP specific data --- extensions/amp-consent/cmps/sourcepoint.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/extensions/amp-consent/cmps/sourcepoint.md b/extensions/amp-consent/cmps/sourcepoint.md index 44ec74335e8c..094848a42b04 100644 --- a/extensions/amp-consent/cmps/sourcepoint.md +++ b/extensions/amp-consent/cmps/sourcepoint.md @@ -22,17 +22,16 @@ limitations under the License. diff --git a/extensions/amp-consent/cmps/sourcepoint.md b/extensions/amp-consent/cmps/sourcepoint.md index 094848a42b04..1c12af437c8d 100644 --- a/extensions/amp-consent/cmps/sourcepoint.md +++ b/extensions/amp-consent/cmps/sourcepoint.md @@ -38,7 +38,7 @@ limitations under the License. ```