Skip to content

Commit

Permalink
51d: update go module id and paths to flatcase (#5517)
Browse files Browse the repository at this point in the history
* 51d: update go module id and paths

update yellow box re: free/paid data file

* 51d: correct make_temp_copy config key position
  • Loading branch information
justadreamer authored Aug 22, 2024
1 parent d1a22f2 commit 9189613
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions prebid-server/pbs-modules/51degrees-device-detection.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ display_name : 51Degrees Device Detection Module
sidebarType : 5
---

{: .alert.alert-warning :}
51Degrees module operates using a data file. You can get started with a free Lite data file that can be downloaded [here](https://github.com/51Degrees/device-detection-data/blob/main/51Degrees-LiteV4.1.hash). The Lite file is updated monthly and detects limited device information. To access the daily updated full data file with comprehensive device information please [contact 51Degrees](https://51degrees.com/contact-us).

# 51Degrees Device Detection Module
{:.no_toc}

Expand Down Expand Up @@ -140,12 +143,12 @@ In JSON:
"hooks": {
"enabled": true,
"modules": {
"fiftyone_degrees": {
"device_detection": {
"fiftyonedegrees": {
"devicedetection": {
"enabled": true,
"make_temp_copy": true,
"data_file": {
"path": "path/to/51Degrees-LiteV4.1.hash",
"make_temp_copy": true,
"update": {
"auto": true,
"url": "<optional custom URL>",
Expand All @@ -167,7 +170,7 @@ In JSON:
"timeout": 10,
"hook_sequence": [
{
"module_code": "fiftyone_degrees.device_detection",
"module_code": "fiftyonedegrees.devicedetection",
"hook_impl_code": "fiftyone-devicedetection-entrypoint-hook"
}
]
Expand All @@ -180,7 +183,7 @@ In JSON:
"timeout": 10,
"hook_sequence": [
{
"module_code": "fiftyone_degrees.device_detection",
"module_code": "fiftyonedegrees.devicedetection",
"hook_impl_code": "fiftyone-devicedetection-raw-auction-request-hook"
}
]
Expand All @@ -202,12 +205,12 @@ and YAML format:
hooks:
enabled: true
modules:
fiftyone_degrees:
device_detection:
fiftyonedegrees:
devicedetection:
enabled: true
make_temp_copy: true
data_file:
path: path/to/51Degrees-LiteV4.1.hash
make_temp_copy: true
update:
auto: true
url: "<optional custom URL>"
Expand All @@ -223,13 +226,13 @@ hooks:
groups:
- timeout: 10
hook_sequence:
- module_code: fiftyone_degrees.device_detection
- module_code: fiftyonedegrees.devicedetection
hook_impl_code: fiftyone-devicedetection-entrypoint-hook
raw_auction_request:
groups:
- timeout: 10
hook_sequence:
- module_code: fiftyone_degrees.device_detection
- module_code: fiftyonedegrees.devicedetection
hook_impl_code: fiftyone-devicedetection-raw-auction-request-hook
```
Expand Down Expand Up @@ -340,10 +343,10 @@ go mod download
```

{:start="2"}
2. Replace the original config file `pbs.json` (placed in the repository root or in `/etc/config`) with the sample [config file](https://github.com/51Degrees/prebid-server/blob/feature/51Degrees-device-detection-module/modules/fiftyone_degrees/device_detection/sample/pbs.json):
2. Replace the original config file `pbs.json` (placed in the repository root or in `/etc/config`) with the sample config file:

```bash
cp modules/fiftyone_degrees/device_detection/sample/pbs.json pbs.json
cp modules/fiftyonedegrees/devicedetection/sample/pbs.json pbs.json
```

{:start="3"}
Expand Down Expand Up @@ -374,7 +377,7 @@ go run main.go
curl \
--header "Content-Type: application/json" \
http://localhost:8000/openrtb2/auction \
--data @modules/fiftyone_degrees/device_detection/sample/request_data.json
--data @modules/fiftyonedegrees/devicedetection/sample/request_data.json
```

## Maintainer contacts
Expand Down

0 comments on commit 9189613

Please sign in to comment.