Skip to content
Open
Show file tree
Hide file tree
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
14 changes: 7 additions & 7 deletions extra/bundle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
</dependency>
<dependency>
<groupId>org.prebid.server.hooks.modules</groupId>
<artifactId>confiant-ad-quality</artifactId>
<artifactId>pb-confiant-ad-quality</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.prebid.server.hooks.modules</groupId>
<artifactId>fiftyone-devicedetection</artifactId>
<artifactId>pb-fiftyone-devicedetection</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.prebid.server.hooks.modules</groupId>
<artifactId>ortb2-blocking</artifactId>
<artifactId>pb-ortb2-blocking</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand All @@ -47,7 +47,7 @@
</dependency>
<dependency>
<groupId>org.prebid.server.hooks.modules</groupId>
<artifactId>greenbids-real-time-data</artifactId>
<artifactId>pb-greenbids-real-time-data</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand All @@ -57,17 +57,17 @@
</dependency>
<dependency>
<groupId>org.prebid.server.hooks.modules</groupId>
<artifactId>optable-targeting</artifactId>
<artifactId>pb-optable-targeting</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.prebid.server.hooks.modules</groupId>
<artifactId>wurfl-devicedetection</artifactId>
<artifactId>pb-wurfl-devicedetection</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.prebid.server.hooks.modules</groupId>
<artifactId>live-intent-omni-channel-identity</artifactId>
<artifactId>pb-live-intent-omni-channel-identity</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ This module obtains all bid responses for any given auction, sends the results t

## Configuration

To start using current module you have to enable module and add ``confiant-ad-quality-bid-responses-scan-hook`` into hooks execution plan inside your yaml file:
To start using current module you have to enable module and add ``pb-confiant-ad-quality-bid-responses-scan-hook`` into hooks execution plan inside your yaml file:
```yaml
hooks:
confiant-ad-quality:
pb-confiant-ad-quality:
enabled: true
host-execution-plan: >
{
Expand All @@ -20,8 +20,8 @@ hooks:
"timeout": 100,
"hook-sequence": [
{
"module-code": "confiant-ad-quality",
"hook-impl-code": "confiant-ad-quality-bid-responses-scan-hook"
"module-code": "pb-confiant-ad-quality",
"hook-impl-code": "pb-confiant-ad-quality-bid-responses-scan-hook"
}
]
}
Expand Down Expand Up @@ -57,7 +57,7 @@ And configure
```yaml
hooks:
modules:
confiant-ad-quality:
pb-confiant-ad-quality:
api-key: "hgr876cerg7655"
redis-config:
write-node:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<version>3.41.0-SNAPSHOT</version>
</parent>

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

<name>confiant-ad-quality</name>
<name>pb-confiant-ad-quality</name>
<description>Confiant Ad Quality module</description>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@

@ConditionalOnProperty(prefix = "hooks." + ConfiantAdQualityModule.CODE, name = "enabled", havingValue = "true")
@PropertySource(
value = "classpath:/module-config/confiant-ad-quality.yaml",
value = "classpath:/module-config/pb-confiant-ad-quality.yaml",
factory = YamlPropertySourceFactory.class)
@Configuration
public class ConfiantAdQualityModuleConfiguration {

@Bean
ConfiantAdQualityModule confiantAdQualityModule(
@Value("${hooks.modules.confiant-ad-quality.api-key}") String apiKey,
@Value("${hooks.modules.confiant-ad-quality.scan-state-check-interval}") int scanStateCheckInterval,
@Value("${hooks.modules.confiant-ad-quality.bidders-to-exclude-from-scan}")
@Value("${hooks.modules.pb-confiant-ad-quality.api-key}") String apiKey,
@Value("${hooks.modules.pb-confiant-ad-quality.scan-state-check-interval}") int scanStateCheckInterval,
@Value("${hooks.modules.pb-confiant-ad-quality.bidders-to-exclude-from-scan}")
List<String> biddersToExcludeFromScan,
RedisConfig redisConfig,
RedisRetryConfig retryConfig,
Expand Down Expand Up @@ -78,13 +78,13 @@ ObjectMapper objectMapper() {
}

@Bean
@ConfigurationProperties(prefix = "hooks.modules.confiant-ad-quality.redis-config")
@ConfigurationProperties(prefix = "hooks.modules.pb-confiant-ad-quality.redis-config")
RedisConfig redisConfig() {
return new RedisConfig();
}

@Bean
@ConfigurationProperties(prefix = "hooks.modules.confiant-ad-quality.redis-retry-config")
@ConfigurationProperties(prefix = "hooks.modules.pb-confiant-ad-quality.redis-retry-config")
RedisRetryConfig redisRetryConfig() {
return new RedisRetryConfig();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

public class ConfiantAdQualityBidResponsesScanHook implements AllProcessedBidResponsesHook {

private static final String CODE = "confiant-ad-quality-bid-responses-scan-hook";
private static final String CODE = "pb-confiant-ad-quality-bid-responses-scan-hook";

private final BidsScanner bidsScanner;
private final List<String> biddersToExcludeFromScan;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

public class ConfiantAdQualityModule implements Module {

public static final String CODE = "confiant-ad-quality";
public static final String CODE = "pb-confiant-ad-quality";

private final List<? extends Hook<?, ? extends InvocationContext>> hooks;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
hooks:
modules:
confiant-ad-quality:
pb-confiant-ad-quality:
api-key: ""
redis-config:
write-node:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void setUp() {
@Test
public void codeShouldHaveValidConfigsWhenInitialized() {
// when and then
assertThat(target.code()).isEqualTo("confiant-ad-quality-bid-responses-scan-hook");
assertThat(target.code()).isEqualTo("pb-confiant-ad-quality-bid-responses-scan-hook");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ public class ConfiantAdQualityModuleTest {
@Test
public void shouldHaveValidInitialConfigs() {
// when and then
assertThat(ConfiantAdQualityModule.CODE).isEqualTo("confiant-ad-quality");
assertThat(ConfiantAdQualityModule.CODE).isEqualTo("pb-confiant-ad-quality");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ Put the data file in a file system location writable by the user that is running

## Configuration

To start using current module you have to enable module and add `fiftyone-devicedetection-entrypoint-hook` and `fiftyone-devicedetection-raw-auction-request-hook` into hooks execution plan inside your yaml file:
To start using current module you have to enable module and add `pb-fiftyone-devicedetection-entrypoint-hook` and `pb-fiftyone-devicedetection-raw-auction-request-hook` into hooks execution plan inside your yaml file:

```yaml
hooks:
fiftyone-devicedetection:
pb-fiftyone-devicedetection:
enabled: true
host-execution-plan: >
{
Expand All @@ -29,8 +29,8 @@ hooks:
"timeout": 100,
"hook-sequence": [
{
"module-code": "fiftyone-devicedetection",
"hook-impl-code": "fiftyone-devicedetection-entrypoint-hook"
"module-code": "pb-fiftyone-devicedetection",
"hook-impl-code": "pb-fiftyone-devicedetection-entrypoint-hook"
}
]
}
Expand All @@ -42,8 +42,8 @@ hooks:
"timeout": 100,
"hook-sequence": [
{
"module-code": "fiftyone-devicedetection",
"hook-impl-code": "fiftyone-devicedetection-raw-auction-request-hook"
"module-code": "pb-fiftyone-devicedetection",
"hook-impl-code": "pb-fiftyone-devicedetection-raw-auction-request-hook"
}
]
}
Expand Down Expand Up @@ -82,7 +82,7 @@ And configure
```yaml
hooks:
modules:
fiftyone-devicedetection:
pb-fiftyone-devicedetection:
account-filter:
allow-list: [] # list of strings, account ids for enabled publishers, or empty for all
data-file:
Expand All @@ -107,7 +107,7 @@ Minimal sample (only required):

```yaml
modules:
fiftyone-devicedetection:
pb-fiftyone-devicedetection:
data-file:
path: "51Degrees-LiteV4.1.hash" # string, REQUIRED, download the sample from https://github.com/51Degrees/device-detection-data/blob/main/51Degrees-LiteV4.1.hash or Enterprise from https://51degrees.com/pricing
```
Expand Down Expand Up @@ -135,7 +135,7 @@ java -jar target/prebid-server-bundle.jar --spring.config.additional-location=sa
4. Run sample request against the server as described in [[requests/README](../../../sample/requests/README.txt)], e.g.

```bash
curl http://localhost:8080/openrtb2/auction --data @extra/modules/fiftyone-devicedetection/sample-requests/data.json
curl http://localhost:8080/openrtb2/auction --data @extra/modules/pb-fiftyone-devicedetection/sample-requests/data.json
```

5. See the `device` object be enriched
Expand Down Expand Up @@ -178,4 +178,4 @@ curl http://localhost:8080/openrtb2/auction --data @extra/modules/fiftyone-devic

Any suggestions or questions can be directed to [support@51degrees.com](support@51degrees.com) e-mail.

Or just open new [issue](https://github.com/prebid/prebid-server-java/issues/new) or [pull request](https://github.com/prebid/prebid-server-java/pulls) in this repository.
Or just open new [issue](https://github.com/prebid/prebid-server-java/issues/new) or [pull request](https://github.com/prebid/prebid-server-java/pulls) in this repository.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<version>3.41.0-SNAPSHOT</version>
</parent>

<artifactId>fiftyone-devicedetection</artifactId>
<artifactId>pb-fiftyone-devicedetection</artifactId>

<name>fiftyone-devicedetection</name>
<name>pb-fiftyone-devicedetection</name>
<description>51Degrees Device Detection module</description>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public record FiftyOneDeviceDetectionModule(
Collection<? extends Hook<?, ? extends InvocationContext>> hooks
) implements Module {
public static final String CODE = "fiftyone-devicedetection";
public static final String CODE = "pb-fiftyone-devicedetection";

@Override
public String code() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

public class FiftyOneDeviceDetectionEntrypointHook implements EntrypointHook {

private static final String CODE = "fiftyone-devicedetection-entrypoint-hook";
private static final String CODE = "pb-fiftyone-devicedetection-entrypoint-hook";

@Override
public String code() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

public class FiftyOneDeviceDetectionRawAuctionRequestHook implements RawAuctionRequestHook {

private static final String CODE = "fiftyone-devicedetection-raw-auction-request-hook";
private static final String CODE = "pb-fiftyone-devicedetection-raw-auction-request-hook";

private final AccountFilter accountFilter;
private final DeviceEnricher deviceEnricher;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
hooks:
modules:
fiftyone-devicedetection:
pb-fiftyone-devicedetection:
account-filter:
allow-list: [] # list of strings
data-file:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<version>3.41.0-SNAPSHOT</version>
</parent>

<artifactId>greenbids-real-time-data</artifactId>
<artifactId>pb-greenbids-real-time-data</artifactId>

<name>greenbids-real-time-data</name>
<name>pb-greenbids-real-time-data</name>
<description>Greenbids Real Time Data</description>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

public class GreenbidsRealTimeDataModule implements Module {

public static final String CODE = "greenbids-real-time-data";
public static final String CODE = "pb-greenbids-real-time-data";

private final List<? extends Hook<?, ? extends InvocationContext>> hooks;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
public class GreenbidsRealTimeDataProcessedAuctionRequestHook implements ProcessedAuctionRequestHook {

private static final String BID_REQUEST_ANALYTICS_EXTENSION_NAME = "greenbids-rtd";
private static final String CODE = "greenbids-real-time-data-processed-auction-request";
private static final String CODE = "pb-greenbids-real-time-data-processed-auction-request-hook";
private static final String ACTIVITY = "greenbids-filter";
private static final String SUCCESS_STATUS = "success";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ To start using the LiveIntent Omni Channel Identity module you have to enable it

```yaml
hooks:
liveintent-omni-channel-identity:
pb-liveintent-omni-channel-identity:
enabled: true
host-execution-plan: >
{
Expand All @@ -25,8 +25,8 @@ hooks:
"timeout": 100,
"hook-sequence": [
{
"module-code": "liveintent-omni-channel-identity",
"hook-impl-code": "liveintent-omni-channel-identity-enrichment-hook"
"module-code": "pb-liveintent-omni-channel-identity",
"hook-impl-code": "pb-liveintent-omni-channel-identity-enrichment-hook"
}
]
}
Expand All @@ -37,7 +37,7 @@ hooks:
}
}
modules:
liveintent-omni-channel-identity:
pb-liveintent-omni-channel-identity:
request-timeout-ms: 2000
identity-resolution-endpoint: "https://liveintent.com/idx"
auth-token: "secret-token"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<version>3.41.0-SNAPSHOT</version>
</parent>

<artifactId>live-intent-omni-channel-identity</artifactId>
<artifactId>pb-live-intent-omni-channel-identity</artifactId>

<name>live-intent-omni-channel-identity</name>
<name>pb-live-intent-omni-channel-identity</name>
<description>LiveIntent Omni-Channel Identity</description>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public record LiveIntentOmniChannelIdentityModule(
Collection<? extends Hook<?, ? extends InvocationContext>> hooks) implements Module {

public static final String CODE = "liveintent-omni-channel-identity";
public static final String CODE = "pb-liveintent-omni-channel-identity";

@Override
public String code() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class LiveIntentOmniChannelIdentityProcessedAuctionRequestHook implements
private static final ConditionalLogger conditionalLogger = new ConditionalLogger(LoggerFactory.getLogger(
LiveIntentOmniChannelIdentityProcessedAuctionRequestHook.class));

private static final String CODE = "liveintent-omni-channel-identity-enrichment-hook";
private static final String CODE = "pb-liveintent-omni-channel-identity-enrichment-hook";

private final LiveIntentOmniChannelProperties config;
private final JacksonMapper mapper;
Expand Down
Loading
Loading