Skip to content

Commit d63d01a

Browse files
authored
Update documentation for RampID module (prebid#3695)
* Update userId module Add storage.refreshInSeconds to example implementations * Update userId.md * Update ATS Analytics documentation Provide extra information how to configure. * Update ats.md
1 parent 2774833 commit d63d01a

2 files changed

Lines changed: 60 additions & 18 deletions

File tree

dev-docs/analytics/ats.md

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,37 @@
11
---
22
layout: analytics
33
title: ATS Analytics
4-
description: ATS Analytics Adapter
5-
modulecode: ats
4+
description: ATS Prebid Analytics Adapter
5+
modulecode: atsAnalyticsAdapter
6+
gdpr_supported: true
7+
usp_supported: true
8+
prebid_member: true
9+
gvl_id: 97
10+
enable_download: false
11+
pbjs: true
12+
pbjs_version_notes: v5.20.0 and later
613
---
714

815
#### Registration
916

10-
Please visit [https://liveramp.com/](https://liveramp.com/) for more information.
17+
LiveRamp's ATS Analytics is free of charge and only requires a simple registration with Liveramp. Please sign up through our [Console](https://launch.liveramp.com) platform and create the analytics adapter to get started.
1118

19+
The LiveRamp privacy policy is at [https://liveramp.com/privacy/service-privacy-policy/](https://liveramp.com/privacy/service-privacy-policy/).
20+
21+
#### Analytics Options
22+
23+
{: .table .table-bordered .table-striped }
24+
| Name | Scope | Description | Example | Type |
25+
|-------------|---------|--------------------|-----------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|------------------|
26+
| pid | required | This is the Placement ID, a unique identifier that is used to identify each publisher, obtained from registering with LiveRamp. | `"999"` | `int` |
27+
28+
#### Example Configuration
29+
30+
pbjs.que.push(function () {
31+
pbjs.enableAnalytics([{
32+
provider: "atsAnalytics",
33+
options: {
34+
pid: "999" // Set your valid Placement ID here
35+
}
36+
}])
37+
});

dev-docs/modules/userId.md

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1713,7 +1713,7 @@ gulp build --modules=identityLinkIdSystem
17131713

17141714
#### RampID Registration
17151715

1716-
Please sign up through our [Console](https://launch.liveramp.com) platform and request a `placementId`.
1716+
LiveRamp's RampID is free of charge and only requires a simple registration with Liveramp. Please sign up through our [Console](https://launch.liveramp.com) platform and request a Placement ID, a unique identifier that is used to identify each publisher, to get started.
17171717
17181718
The RampID privacy policy is at [https://liveramp.com/privacy/service-privacy-policy/](https://liveramp.com/privacy/service-privacy-policy/).
17191719
@@ -1722,14 +1722,25 @@ The RampID privacy policy is at [https://liveramp.com/privacy/service-privacy-po
17221722
{: .table .table-bordered .table-striped }
17231723
| Param under userSync.userIds[] | Scope | Type | Description | Example |
17241724
| --- | --- | --- | --- | --- |
1725-
| name | Required | String | `"identityLink"` | `"identityLink"` |
1726-
| params | Required for Id Link | Object | Details for RampID initialization. | |
1727-
| params.pid | This parameter is required for RampID | String | This is the placementId, value needed for obtaining user’s RampID envelope
1728-
| params.notUse3P | This parameter is not required for RampID | Boolean | Property for choosing should 3P Liveramp envelope endpoint be fired or not, in order to get RampID envelope
1725+
| name | Required | String | The name of LiveRamp's user ID module. | `"identityLink"` |
1726+
| params | Required | Object | Container of all module params. | |
1727+
| params.pid | Required | String | This is the Placement ID, a unique identifier that is used to identify each publisher, obtained from registering with LiveRamp. | `999` |
1728+
| params.notUse3P | Not required | Boolean | Property for choosing should 3P Liveramp envelope endpoint be fired or not, in order to get a RampID envelope (either `true` or `false`). | `true` |
1729+
| storage | Required | Object | This object defines where and for how long the results of the call to get a RampID envelope will be stored. |
1730+
| storage.type | Required | String | This parameter defines where the resolved RampID envelope will be stored (either `"cookie"` or `"html5"` localStorage). | `"cookie"` |
1731+
| storage.name | Required | String | The name of the cookie or html5 localstorage where the resolved RampID envelope will be stored. LiveRamp requires `"idl_env"`. | `"idl_env"` |
1732+
| storage.expires | Required | Integer | How long (in days) the RampID envelope information will be stored. To be GDPR and CCPA compliant, we strongly advise to set a 15-day TTL ("Time to Live" / expiration time). If you are not planning to obtain RampID envelopes for EU/EEA or U.S. users, we advise you to change the expiration time to 30 days. | `15` |
1733+
| storage.refreshInSeconds | Required | Integer | The amount of time (in seconds) the RampID envelope should be cached in storage before calling LiveRamp again to retrieve a potentially updated value for the RampID envelope. | `1800`
1734+
1735+
{: .alert.alert-info :}
1736+
**NOTE:** The RampID envelope that is delivered to Prebid will be encrypted by LiveRamp with a rotating key to avoid unauthorized usage and to enforce privacy requirements. Therefore, we strongly recommend setting `storage.refreshInSeconds` to 30 minutes (1800 seconds) to ensure all demand partners receive an ID that has been encrypted with the latest key, has up-to-date privacy signals, and allows them to transact against it.
17291737

17301738
#### RampID Examples
17311739

1732-
1) Publisher passes a placement ID and elects to store the RampID envelope in a cookie. Make sure that the expiration time of the cookie is similar to what is set in ATS.
1740+
1) Publisher passes a Placement ID and elects to store the RampID envelope in a cookie.
1741+
1742+
{: .alert.alert-info :}
1743+
**NOTE:** Make sure that the expiration time of the cookie is similar to what is set in your ATS configuration.
17331744

17341745

17351746
{% highlight javascript %}
@@ -1738,38 +1749,43 @@ pbjs.setConfig({
17381749
userIds: [{
17391750
name: "identityLink",
17401751
params: {
1741-
pid: '999', // Set your real RampID placement ID here
1752+
pid: '999', // Set your valid Placement ID here
17421753
// notUse3P: true/false // If you do not want to use 3P endpoint to retrieve the envelope. If you do not set this property to true, 3P endpoint will be fired. By default this property is undefined and 3P request will be fired.
17431754
},
17441755
storage: {
17451756
type: "cookie",
1746-
name: "idl_env", // "idl_env" is the required storage name
1747-
expires: 15 // RampID envelope can last for 15 days
1757+
name: "idl_env", // "idl_env" is the required storage name
1758+
expires: 15 // Cookie can last for 15 days
1759+
refreshInSeconds: 1800
17481760
}
17491761
}],
1750-
syncDelay: 3000 // 3 seconds after the first auction
1762+
syncDelay: 3000 // 3 seconds after the first auction
17511763
}
17521764
});
17531765
{% endhighlight %}
17541766

1755-
2) Publisher passes a placement ID and elects to store the RampID envelope in HTML5 localStorage. Make sure that the expiration time for localstorage is similar to what is set in ATS.
1767+
2) Publisher passes a Placement ID and elects to store the RampID envelope in HTML5 localStorage.
1768+
1769+
{: .alert.alert-info :}
1770+
**NOTE:** Make sure that the expiration time of the HTML5 localStorage is similar to what is set in your ATS configuration.
17561771

17571772
{% highlight javascript %}
17581773
pbjs.setConfig({
17591774
userSync: {
17601775
userIds: [{
17611776
name: "identityLink",
17621777
params: {
1763-
pid: '999', // Set your real RampID placement ID here
1778+
pid: '999', // Set your valid Placement ID here
17641779
// notUse3P: true/false // If you do not want to use 3P endpoint to retrieve the envelope. If you do not set this property to true, 3P endpoint will be fired. By default this property is undefined and 3P request will be fired.
17651780
},
17661781
storage: {
17671782
type: "html5",
1768-
name: "idl_env", // "idl_env" is the required storage name
1769-
expires: 15 // RampID envelope can last for 15 days
1783+
name: "idl_env", // "idl_env" is the required storage name
1784+
expires: 15 // HTML5 localStorage can last for 15 days
1785+
refreshInSeconds: 1800
17701786
}
17711787
}],
1772-
syncDelay: 3000
1788+
syncDelay: 3000 // 3 seconds after the first auction
17731789
}
17741790
});
17751791
{% endhighlight %}

0 commit comments

Comments
 (0)