Skip to content

Commit 293205f

Browse files
authored
Merge pull request #830 from IABTechLab/gwh-APIDOCS-2923-js-sdk-v4
Adds and updates for JS SDK v4
2 parents a072705 + 57edeb2 commit 293205f

File tree

9 files changed

+1419
-159
lines changed

9 files changed

+1419
-159
lines changed

docs/guides/integration-javascript-client-side.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@ To implement, you'll need to complete the following steps:
4444

4545
## SDK for JavaScript Version
4646

47-
Support for client-side token generation is available in version 3.4.5 and above of the SDK.
47+
Support for client-side token generation is available in version 4.0.1 and above of the SDK.
4848

4949
The URL for the SDK is:
5050

51-
- [https://cdn.prod.uidapi.com/uid2-sdk-3.4.5.js](https://cdn.prod.uidapi.com/uid2-sdk-3.4.5.js)
51+
- [https://cdn.prod.uidapi.com/uid2-sdk-4.0.1.js](https://cdn.prod.uidapi.com/uid2-sdk-4.0.1.js)
5252

5353
In the following code examples, the placeholder `{{ UID2_JS_SDK_URL }}` refers to this URL.
5454

5555
If you want to use a debug build of the SDK, use the following URL instead:
5656

57-
- [https://cdn.integ.uidapi.com/uid2-sdk-3.4.5.js](https://cdn.integ.uidapi.com/uid2-sdk-3.4.5.js)
57+
- [https://cdn.integ.uidapi.com/uid2-sdk-4.0.1.js](https://cdn.integ.uidapi.com/uid2-sdk-4.0.1.js)
5858

5959
## Sample Implementation
6060

docs/sdks/sdk-ref-javascript-v2.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: SDK for JavaScript (2.x and earlier versions)
3-
description: Reference information about earlier versions of the JavaScript client-side SDK.
2+
title: SDK for JavaScript (2.x and earlier)
3+
description: Reference information about 2.x and earlier versions of the JavaScript client-side SDK.
44
hide_table_of_contents: false
55
sidebar_position: 02
66
---
@@ -9,10 +9,10 @@ import Link from '@docusaurus/Link';
99
import ExampleUid2Cookie from '../snippets/_example-uid2-cookie.mdx';
1010
import ExampleJavaScriptV2Init from '../snippets/_example-javascript-v2-init.mdx';
1111

12-
# SDK for JavaScript Reference Guide (2.x and earlier versions)
12+
# SDK for JavaScript Reference Guide (v2.x and earlier)
1313

14-
:::tip
15-
This documentation is for earlier versions of the SDK for JavaScript. If you're using an earlier version, we recommend upgrading. See [SDK for JavaScript Reference Guide](sdk-ref-javascript.md), which includes a migration guide.
14+
:::important
15+
This documentation is for earlier versions of the SDK for JavaScript. If you're using an earlier version, we recommend upgrading. See [SDK for JavaScript Reference Guide](sdk-ref-javascript.md), which includes a migration guide to upgrade to the current version, v4.
1616
:::
1717

1818
Use this SDK to facilitate the process of establishing client identity using UID2 and retrieving advertising tokens. The following sections describe the high-level [workflow](#workflow-overview) for establishing UID2 identity, provide the SDK [API reference](#api-reference), and explain the [UID2 cookie format](#uid2-cookie-format).
@@ -47,11 +47,6 @@ This SDK is in the following open-source GitHub repository:
4747

4848
- [https://github.com/iabtechlab/uid2-web-integrations](https://github.com/iabtechlab/uid2-web-integrations)
4949

50-
<!-- The binary is published in these locations:
51-
52-
- NPM: [https://www.npmjs.com/package/@uid2/uid2-sdk](https://www.npmjs.com/package/@uid2/uid2-sdk)
53-
- CDN: [https://cdn.prod.uidapi.com/uid2-sdk-${VERSION_ID}.js](https://cdn.prod.uidapi.com/uid2-sdk-${VERSION_ID}.js) (** v3 JS SDK: stash per SW 8/15/23**) -->
54-
5550
## Terminology
5651

5752
In this document, the following terms apply:

docs/sdks/sdk-ref-javascript-v3.md

Lines changed: 643 additions & 0 deletions
Large diffs are not rendered by default.

docs/sdks/sdk-ref-javascript.md

Lines changed: 106 additions & 102 deletions
Large diffs are not rendered by default.

i18n/ja/docusaurus-plugin-content-docs/current/guides/integration-javascript-client-side.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ Client-Side でのトークン生成のサポートは、SDK のバージョン
4848

4949
SDKのURLは以下のとおり:
5050

51-
- [https://cdn.prod.uidapi.com/uid2-sdk-3.4.5.js](https://cdn.prod.uidapi.com/uid2-sdk-3.4.5.js)
51+
- [https://cdn.prod.uidapi.com/uid2-sdk-4.0.1.js](https://cdn.prod.uidapi.com/uid2-sdk-4.0.1.js)
5252

5353
以下のコードサンプルでは、プレースホルダ `{{ UID2_JS_SDK_URL }}` は、この URL を指します。
5454

5555
SDK のデバッグビルドを使用したい場合は、代わりに以下の URL を使用してください:
5656

57-
- [https://cdn.integ.uidapi.com/uid2-sdk-3.4.5.js](https://cdn.integ.uidapi.com/uid2-sdk-3.4.5.js)
57+
- [https://cdn.integ.uidapi.com/uid2-sdk-4.0.1.js](https://cdn.integ.uidapi.com/uid2-sdk-4.0.1.js)
5858

5959
## Sample Implementation
6060

i18n/ja/docusaurus-plugin-content-docs/current/sdks/sdk-ref-javascript-v2.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: SDK for JavaScript (2.x and earlier versions)
2+
title: SDK for JavaScript (2.x and earlier)
33
description: JavaScript Client-Side SDK の旧バージョンに関するリファレンス情報。
44
hide_table_of_contents: false
55
sidebar_position: 02
@@ -9,9 +9,9 @@ import Link from '@docusaurus/Link';
99
import ExampleUid2Cookie from '../snippets/_example-uid2-cookie.mdx';
1010
import ExampleJavaScriptV2Init from '../snippets/_example-javascript-v2-init.mdx';
1111

12-
# SDK for JavaScript Reference Guide (2.x and earlier versions)
12+
# SDK for JavaScript Reference Guide (v2.x and earlier)
1313

14-
:::tip
14+
:::important
1515
このドキュメントは、SDK for JavaScript の旧バージョン用です。以前のバージョンを使用している場合は、アップグレードすることを勧めます。移行ガイドを含む [SDK for JavaScript Reference Guide](sdk-ref-javascript.md) を参照してください。
1616
:::
1717

@@ -47,10 +47,6 @@ SDK が提供する特定の機能を使用する権限が与えられ、その
4747

4848
- [https://github.com/iabtechlab/uid2-web-integrations](https://github.com/iabtechlab/uid2-web-integrations)
4949

50-
<!-- The binary is published in these locations:
51-
52-
- NPM: [https://www.npmjs.com/package/@uid2/uid2-sdk](https://www.npmjs.com/package/@uid2/uid2-sdk)
53-
- CDN: [https://cdn.prod.uidapi.com/uid2-sdk-${VERSION_ID}.js](https://cdn.prod.uidapi.com/uid2-sdk-${VERSION_ID}.js) (** v3 JS SDK: stash per SW 8/15/23**) -->
5450

5551
## Terminology
5652

0 commit comments

Comments
 (0)