Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update userId.md #3453

Merged
merged 1 commit into from
Jan 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions dev-docs/modules/userId.md
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,7 @@ The RampID privacy policy is at [https://liveramp.com/privacy/service-privacy-po

#### RampID Examples

1) Publisher passes a placement ID and elects to store the RampID envelope in a cookie.
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.


{% highlight javascript %}
Expand All @@ -1501,16 +1501,16 @@ pbjs.setConfig({
},
storage: {
type: "cookie",
name: "idl_env", // create a cookie with this name
expires: 30 // cookie can last for 30 days
name: "idl_env", // "idl_env" is the required storage name
expires: 15 // RampID envelope can last for 15 days
}
}],
syncDelay: 3000 // 3 seconds after the first auction
}
});
{% endhighlight %}

2) Publisher passes a placement ID and elects to store the RampID envelope in HTML5 localStorage.
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.

{% highlight javascript %}
pbjs.setConfig({
Expand All @@ -1523,8 +1523,8 @@ pbjs.setConfig({
},
storage: {
type: "html5",
name: "idl_env", // set localstorage with this name
expires: 30
name: "idl_env", // "idl_env" is the required storage name
expires: 15 // RampID envelope can last for 15 days
}
}],
syncDelay: 3000
Expand Down