Skip to content

Commit 07805cc

Browse files
authored
Java test site (example usage of Java SDK) (#5)
Java test site, showing example usage of the Java SDK for Publishers
1 parent f2b7d0a commit 07805cc

File tree

27 files changed

+1818
-5
lines changed

27 files changed

+1818
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ If you are a content publisher interested in generating UID2 tokens for the real
99

1010
The following table summarizes both examples and provides links to the example applications, their documentation, and the respective step-by-step integration guides.
1111

12-
| Example Application | Example Description | Primary Audience | Example Documentation| Integration Guide |
13-
| :--- | :--- | :--- | :--- | :--- |
14-
| [UID2 SDK Integration Example](https://example-jssdk-integ.uidapi.com/) | Demonstrates how to use the UID2 services with the [UID2 SDK](https://github.com/UnifiedID2/uid2docs/blob/main/api/v2/sdks/client-side-identity.md) to implement the standard UID2 integration workflow. | Publishers with web assets | [UID2 SDK Integration Example](./publisher/standard/README.md) | [UID2 SDK Integration Guide](https://github.com/UnifiedID2/uid2docs/blob/main/api/v2/guides/publisher-client-side.md) |
15-
| [Server-Only UID2 Integration Example](https://example-srvonly-integ.uidapi.com/login) |Demonstrates how to use the UID2 services to implement a custom (server-only) UID2 integration workflow without relying on an SDK for establishing client UID2 identity and retrieving advertising tokens.| App developers and CTV broadcasters | [Server-Only UID2 Integration Example](./publisher/server_only/README.md) | [Server-Only UID2 Integration Guide](https://github.com/UnifiedID2/uid2docs/blob/main/api/v2/guides/custom-publisher-integration.md) |
12+
| Environment | Documentation | Description | Primary Audience | Integration Guide |
13+
|-------------|----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
14+
| Node.js | [UID2 SDK Integration Example](./publisher/standard/README.md) | Demonstrates how to use the UID2 services with the [UID2 client SDK](https://github.com/UnifiedID2/uid2docs/blob/main/api/v2/sdks/client-side-identity.md) to implement the standard UID2 integration workflow. | Publishers with web assets | [Client SDK Integration Guide](https://github.com/UnifiedID2/uid2docs/blob/main/api/v2/guides/publisher-client-side.md) |
15+
| Node.js | [Server-Only UID2 Integration Example](https://github.com/UnifiedID2/uid2-examples/tree/main/publisher/server_only) | Demonstrates how to use the UID2 services to implement a custom (server-only) UID2 integration workflow without relying on an SDK for establishing client UID2 identity and retrieving advertising tokens. | App developers and CTV broadcasters | [Server-Only UID2 Integration Guide](https://github.com/UnifiedID2/uid2docs/blob/main/api/v2/guides/custom-publisher-integration.md) |
16+
| Java | [Java SDK Integration Example](./publisher/uid2-java-test-site/README.md) | Demonstrates use of the [UID2 Java SDK](https://github.com/IABTechLab/uid2-client-java) for both a server-only UID2 integration, and a standard (client SDK and server SDK) integration. | Publishers with web assets, app developers, CTV broadcasters | [Server-Only](https://github.com/UnifiedID2/uid2docs/blob/main/api/v2/guides/custom-publisher-integration.md); [Client SDK](https://github.com/UnifiedID2/uid2docs/blob/main/api/v2/guides/publisher-client-side.md) |
1617

1718
The example applications illustrate the basic steps that you need to consider for your integration. For example, you need to decide how to do the following:
1819
- Implement user login and logout.
@@ -21,4 +22,3 @@ The example applications illustrate the basic steps that you need to consider fo
2122
- Deal with missing identities.
2223
- Handle user opt-outs.
2324

24-
The documentation for each example includes instructions on how to build and run the application and suggests steps that you may take to test and explore it. Each step is annotated with comments that explain what takes place on the backend and how the UID2 services work.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2
9+
trim_trailing_whitespace = true
10+
end_of_line = lf
11+
insert_final_newline = true
Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
target*
2+
target/*
3+
.idea*
4+
.idea/*
5+
.idea/
6+
dependencies/
7+
conf/*.json
8+
uid2-operator.iml
9+
build/**
10+
.DS_Store
11+
*/node_modules/*
12+
13+
### Vert.x ###
14+
.vertx/
15+
16+
### Eclipse ###
17+
18+
.metadata
19+
bin/
20+
tmp/
21+
*.tmp
22+
*.bak
23+
*.swp
24+
*~.nib
25+
local.properties
26+
.settings/
27+
.loadpath
28+
.recommenders
29+
30+
# External tool builders
31+
.externalToolBuilders/
32+
33+
# Locally stored "Eclipse launch configurations"
34+
*.launch
35+
36+
# PyDev specific (Python IDE for Eclipse)
37+
*.pydevproject
38+
39+
# CDT-specific (C/C++ Development Tooling)
40+
.cproject
41+
42+
# Java annotation processor (APT)
43+
.factorypath
44+
45+
# PDT-specific (PHP Development Tools)
46+
.buildpath
47+
48+
# sbteclipse plugin
49+
.target
50+
51+
# Tern plugin
52+
.tern-project
53+
54+
# TeXlipse plugin
55+
.texlipse
56+
57+
# STS (Spring Tool Suite)
58+
.springBeans
59+
60+
# Code Recommenders
61+
.recommenders/
62+
63+
# Scala IDE specific (Scala & Java development for Eclipse)
64+
.cache-main
65+
.scala_dependencies
66+
.worksheet
67+
68+
### Intellij+iml ###
69+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
70+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
71+
72+
# User-specific stuff:
73+
.idea/**/workspace.xml
74+
.idea/**/tasks.xml
75+
.idea/dictionaries
76+
77+
# Sensitive or high-churn files:
78+
.idea/**/dataSources/
79+
.idea/**/dataSources.ids
80+
.idea/**/dataSources.xml
81+
.idea/**/dataSources.local.xml
82+
.idea/**/sqlDataSources.xml
83+
.idea/**/dynamic.xml
84+
.idea/**/uiDesigner.xml
85+
86+
# Gradle:
87+
.idea/**/gradle.xml
88+
.idea/**/libraries
89+
90+
# CMake
91+
cmake-buildTool-debug/
92+
93+
# Mongo Explorer plugin:
94+
.idea/**/mongoSettings.xml
95+
96+
## File-based project format:
97+
*.iws
98+
99+
## Plugin-specific files:
100+
101+
# IntelliJ
102+
/out/
103+
104+
# mpeltonen/sbt-idea plugin
105+
.idea_modules/
106+
107+
# JIRA plugin
108+
atlassian-ide-plugin.xml
109+
110+
# Cursive Clojure plugin
111+
.idea/replstate.xml
112+
113+
# Crashlytics plugin (for Android Studio and IntelliJ)
114+
com_crashlytics_export_strings.xml
115+
crashlytics.properties
116+
crashlytics-buildTool.properties
117+
fabric.properties
118+
119+
### Intellij+iml Patch ###
120+
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
121+
122+
*.iml
123+
modules.xml
124+
.idea/misc.xml
125+
*.ipr
126+
127+
### macOS ###
128+
*.DS_Store
129+
.AppleDouble
130+
.LSOverride
131+
132+
# Icon must end with two \r
133+
Icon
134+
135+
# Thumbnails
136+
._*
137+
138+
# Files that might appear in the root of a volume
139+
.DocumentRevisions-V100
140+
.fseventsd
141+
.Spotlight-V100
142+
.TemporaryItems
143+
.Trashes
144+
.VolumeIcon.icns
145+
.com.apple.timemachine.donotpresent
146+
147+
# Directories potentially created on remote AFP share
148+
.AppleDB
149+
.AppleDesktop
150+
Network Trash Folder
151+
Temporary Items
152+
.apdisk
153+
154+
### Maven ###
155+
target/
156+
pom.xml.tag
157+
pom.xml.releaseBackup
158+
pom.xml.versionsBackup
159+
pom.xml.next
160+
release.properties
161+
dependency-reduced-pom.xml
162+
buildNumber.properties
163+
.mvn/timing.properties
164+
165+
# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
166+
!/.mvn/wrapper/maven-wrapper.jar
167+
168+
### Gradle ###
169+
.gradle
170+
/buildTool/
171+
172+
# Ignore Gradle GUI config
173+
gradle-app.setting
174+
175+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
176+
!gradle-wrapper.jar
177+
178+
# Cache of project
179+
.gradletasknamecache
180+
181+
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
182+
# gradle/wrapper/gradle-wrapper.properties
183+
184+
### NetBeans ###
185+
nbproject/private/
186+
buildTool/
187+
nbbuild/
188+
dist/
189+
nbdist/
190+
.nb-gradle/
191+
192+
### VisualStudioCode ###
193+
.vscode/*
194+
!.vscode/settings.json
195+
!.vscode/tasks.json
196+
!.vscode/launch.json
197+
!.vscode/extensions.json
57.4 KB
Binary file not shown.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.4/apache-maven-3.8.4-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar

0 commit comments

Comments
 (0)