Skip to content

Commit 7b3ae33

Browse files
Merge pull request #200 from IABTechLab/eee-UID2-5083-update-js-sdk-version
update v3 to v4 sdk for example sites
2 parents ae54895 + 41e5b3e commit 7b3ae33

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

examples/google-secure-signals-integration/client_side/views/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ <h1>UID2 Publisher Client-Side Integration Example using UID2 JavaScript SDK, Se
7878
<button type="button" class="button" id="logout">Log Out</button>
7979
</form>
8080
</div>
81-
<script src="https://cdn.integ.uidapi.com/uid2-sdk-3.9.0.js"></script>
81+
<script src="https://cdn.integ.uidapi.com/uid2-sdk-4.0.1.js"></script>
8282
<script src="https://cdn.integ.uidapi.com/uid2SecureSignal.js"></script>
8383
<script type="text/javascript" src="/scripts/ads.js"></script>
8484
<script type="text/javascript" src="https://imasdk.googleapis.com/js/sdkloader/ima3.js"></script>

examples/google-secure-signals-integration/with_sdk_v3/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const uid2BaseUrl = process.env.UID2_BASE_URL;
1010
const uid2ApiKey = process.env.UID2_API_KEY;
1111
const uid2ClientSecret = process.env.UID2_CLIENT_SECRET;
1212
const uid2JsSdkUrl =
13-
process.env.UID2_JS_SDK_URL || 'https://cdn.integ.uidapi.com/uid2-sdk-3.9.0.js';
13+
process.env.UID2_JS_SDK_URL || 'https://cdn.integ.uidapi.com/uid2-sdk-4.0.1.js';
1414

1515
const ivLength = 12;
1616
const nonceLength = 8;

examples/js-sdk/views/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<link rel="stylesheet" type="text/css" href="/stylesheets/app.css" />
77
<link rel="shortcut icon" href="/images/favicon.png" />
88
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
9-
<script src="https://cdn.integ.uidapi.com/uid2-sdk-3.9.0.js"></script>
9+
<script src="https://cdn.integ.uidapi.com/uid2-sdk-4.0.1.js"></script>
1010
<script>
1111
$(document).ready(() => {
1212
let callbackCounter = 0;

examples/js-sdk/views/login.html

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
3+
<head>
44
<meta charset="UTF-8" />
55
<title>UID2 Publisher Standard Integration Example Login Result</title>
66
<link rel="stylesheet" type="text/css" href="/stylesheets/app.css" />
77
<link rel="shortcut icon" href="/images/favicon.png" />
8-
<script src="https://cdn.integ.uidapi.com/uid2-sdk-3.9.0.js"></script>
8+
<script src="https://cdn.integ.uidapi.com/uid2-sdk-4.0.1.js"></script>
99
<script>
1010
function onUid2IdentityUpdated(state) {
1111
// can automatically redirect user to index page here
@@ -17,13 +17,16 @@
1717
});
1818
__uid2.callbacks.push(onUid2IdentityUpdated);
1919
</script>
20-
</head>
21-
<body>
22-
<%- include('intro.html'); -%>
23-
<p class="message">Login completed</p>
24-
<p>UID2 identity:</p>
25-
<pre><%- JSON.stringify(identity, null, 2) %></pre>
26-
<p><a href="/">Back to the main page</a></p>
27-
<p>Normally user would be redirected automatically, but this example demonstrates one way UID2 login could be handled.</p>
28-
</body>
20+
</head>
21+
<body>
22+
<%- include('intro.html'); -%>
23+
<p class="message">Login completed</p>
24+
<p>UID2 identity:</p>
25+
<pre><%- JSON.stringify(identity, null, 2) %></pre>
26+
<p><a href="/">Back to the main page</a></p>
27+
<p>
28+
Normally user would be redirected automatically, but this example demonstrates one way UID2
29+
login could be handled.
30+
</p>
31+
</body>
2932
</html>

0 commit comments

Comments
 (0)