Skip to content

Commit 05ae935

Browse files
Merge branch 'prebid:master' into master
2 parents 1429026 + 8cf9c00 commit 05ae935

95 files changed

Lines changed: 4291 additions & 132 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM amazoncorretto:21.0.6-al2023
1+
FROM amazoncorretto:21.0.8-al2023
22

33
WORKDIR /app/prebid-server
44

Dockerfile-modules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM amazoncorretto:21.0.6-al2023
1+
FROM amazoncorretto:21.0.8-al2023
22

33
WORKDIR /app/prebid-server
44

extra/bundle/pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.prebid</groupId>
77
<artifactId>prebid-server-aggregator</artifactId>
8-
<version>3.31.0-SNAPSHOT</version>
8+
<version>3.32.0-SNAPSHOT</version>
99
<relativePath>../../extra/pom.xml</relativePath>
1010
</parent>
1111

@@ -65,6 +65,11 @@
6565
<artifactId>wurfl-devicedetection</artifactId>
6666
<version>${project.version}</version>
6767
</dependency>
68+
<dependency>
69+
<groupId>org.prebid.server.hooks.modules</groupId>
70+
<artifactId>live-intent-omni-channel-identity</artifactId>
71+
<version>${project.version}</version>
72+
</dependency>
6873
</dependencies>
6974

7075
<build>

extra/modules/confiant-ad-quality/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.prebid.server.hooks.modules</groupId>
77
<artifactId>all-modules</artifactId>
8-
<version>3.31.0-SNAPSHOT</version>
8+
<version>3.32.0-SNAPSHOT</version>
99
</parent>
1010

1111
<artifactId>confiant-ad-quality</artifactId>

extra/modules/fiftyone-devicedetection/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.prebid.server.hooks.modules</groupId>
77
<artifactId>all-modules</artifactId>
8-
<version>3.31.0-SNAPSHOT</version>
8+
<version>3.32.0-SNAPSHOT</version>
99
</parent>
1010

1111
<artifactId>fiftyone-devicedetection</artifactId>

extra/modules/greenbids-real-time-data/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.prebid.server.hooks.modules</groupId>
66
<artifactId>all-modules</artifactId>
7-
<version>3.31.0-SNAPSHOT</version>
7+
<version>3.32.0-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>greenbids-real-time-data</artifactId>
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Overview
2+
3+
This module enriches bid requests with user EIDs.
4+
5+
The user EIDs to be enriched are configured per partner as part of the LiveIntent HIRO onboarding process. As part of this onboarding process, partners will also be provided with the `identity-resolution-endpoint` URL as well as with the `auth-token`.
6+
7+
`treatment-rate` is a value between 0.0 and 1.0 (including 0.0 and 1.0) and defines the percentage of requests for which identity enrichment should be performed. This value can be freely picked. We recommend a value between 0.9 and 0.95
8+
9+
## Configuration
10+
11+
To start using the LiveIntent Omni Channel Identity module you have to enable it and add configuration:
12+
13+
```yaml
14+
hooks:
15+
liveintent-omni-channel-identity:
16+
enabled: true
17+
host-execution-plan: >
18+
{
19+
"endpoints": {
20+
"/openrtb2/auction": {
21+
"stages": {
22+
"processed-auction-request": {
23+
"groups": [
24+
{
25+
"timeout": 100,
26+
"hook-sequence": [
27+
{
28+
"module-code": "liveintent-omni-channel-identity",
29+
"hook-impl-code": "liveintent-omni-channel-identity-enrichment-hook"
30+
}
31+
]
32+
}
33+
]
34+
}
35+
}
36+
}
37+
}
38+
}
39+
modules:
40+
liveintent-omni-channel-identity:
41+
request-timeout-ms: 2000
42+
identity-resolution-endpoint: "https://liveintent.com/idx"
43+
auth-token: "secret-token"
44+
treatment-rate: 0.9
45+
```
46+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<groupId>org.prebid.server.hooks.modules</groupId>
6+
<artifactId>all-modules</artifactId>
7+
<version>3.32.0-SNAPSHOT</version>
8+
</parent>
9+
10+
<artifactId>live-intent-omni-channel-identity</artifactId>
11+
12+
<name>live-intent-omni-channel-identity</name>
13+
<description>LiveIntent Omni-Channel Identity</description>
14+
15+
<dependencies>
16+
</dependencies>
17+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
package org.prebid.server.hooks.modules.liveintent.omni.channel.identity.config;
2+
3+
import org.prebid.server.hooks.modules.liveintent.omni.channel.identity.model.config.LiveIntentOmniChannelProperties;
4+
import org.prebid.server.hooks.modules.liveintent.omni.channel.identity.v1.LiveIntentOmniChannelIdentityModule;
5+
import org.prebid.server.hooks.modules.liveintent.omni.channel.identity.v1.hooks.LiveIntentOmniChannelIdentityProcessedAuctionRequestHook;
6+
import org.prebid.server.hooks.v1.Module;
7+
import org.prebid.server.json.JacksonMapper;
8+
import org.prebid.server.vertx.httpclient.HttpClient;
9+
import org.springframework.beans.factory.annotation.Value;
10+
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
11+
import org.springframework.boot.context.properties.ConfigurationProperties;
12+
import org.springframework.context.annotation.Bean;
13+
import org.springframework.context.annotation.Configuration;
14+
15+
import java.util.Collections;
16+
17+
@Configuration
18+
@ConditionalOnProperty(
19+
prefix = "hooks." + LiveIntentOmniChannelIdentityModule.CODE,
20+
name = "enabled",
21+
havingValue = "true")
22+
public class LiveIntentOmniChannelIdentityConfiguration {
23+
24+
@Bean
25+
@ConfigurationProperties(prefix = "hooks.modules." + LiveIntentOmniChannelIdentityModule.CODE)
26+
LiveIntentOmniChannelProperties properties() {
27+
return new LiveIntentOmniChannelProperties();
28+
}
29+
30+
@Bean
31+
Module liveIntentOmniChannelIdentityModule(LiveIntentOmniChannelProperties properties,
32+
JacksonMapper mapper,
33+
HttpClient httpClient,
34+
@Value("${logging.sampling-rate:0.01}") double logSamplingRate) {
35+
36+
final LiveIntentOmniChannelIdentityProcessedAuctionRequestHook hook =
37+
new LiveIntentOmniChannelIdentityProcessedAuctionRequestHook(
38+
properties, mapper, httpClient, logSamplingRate);
39+
40+
return new LiveIntentOmniChannelIdentityModule(Collections.singleton(hook));
41+
}
42+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package org.prebid.server.hooks.modules.liveintent.omni.channel.identity.model;
2+
3+
import com.iab.openrtb.request.Eid;
4+
import lombok.AllArgsConstructor;
5+
import lombok.Data;
6+
import lombok.NoArgsConstructor;
7+
8+
import java.util.List;
9+
10+
@Data
11+
@NoArgsConstructor
12+
@AllArgsConstructor(staticName = "of")
13+
public class IdResResponse {
14+
15+
List<Eid> eids;
16+
}

0 commit comments

Comments
 (0)