Skip to content

Commit

Permalink
51d: amend pbs go module_code
Browse files Browse the repository at this point in the history
  • Loading branch information
justadreamer committed Jul 16, 2024
1 parent 2f6b758 commit 912b274
Showing 1 changed file with 42 additions and 2 deletions.
44 changes: 42 additions & 2 deletions prebid-server/pbs-modules/51degrees-device-detection.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,12 @@ Sample module enablement configuration in JSON and YAML formats:
PBS-Go version of the same config:
In JSON:
```json
{
"hooks": {
"enabled": true,
"modules": {
"fiftyone_degrees": {
"device_detection": {
Expand Down Expand Up @@ -164,7 +167,7 @@ PBS-Go version of the same config:
"timeout": 10,
"hook_sequence": [
{
"module_code": "fiftyone-devicedetection",
"module_code": "fiftyone_degrees.device_detection",
"hook_impl_code": "fiftyone-devicedetection-entrypoint-hook"
}
]
Expand All @@ -177,7 +180,7 @@ PBS-Go version of the same config:
"timeout": 10,
"hook_sequence": [
{
"module_code": "fiftyone-devicedetection",
"module_code": "fiftyone_degrees.device_detection",
"hook_impl_code": "fiftyone-devicedetection-raw-auction-request-hook"
}
]
Expand All @@ -193,6 +196,43 @@ PBS-Go version of the same config:
}
```

and YAML format:

```yaml
hooks:
enabled: true
modules:
fiftyone_degrees:
device_detection:
enabled: true
make_temp_copy: true
data_file:
path: path/to/51Degrees-LiteV4.1.hash
update:
auto: true
url: "<optional custom URL>"
polling_interval: 1800
license_key: "<your_license_key>"
product: V4Enterprise
watch_file_system: 'true'
host_execution_plan:
endpoints:
"/openrtb2/auction":
stages:
entrypoint:
groups:
- timeout: 10
hook_sequence:
- module_code: fiftyone_degrees.device_detection
hook_impl_code: fiftyone-devicedetection-entrypoint-hook
raw_auction_request:
groups:
- timeout: 10
hook_sequence:
- module_code: fiftyone_degrees.device_detection
hook_impl_code: fiftyone-devicedetection-raw-auction-request-hook
```
## Module Configuration Parameters (for PBS-Java and PBS-Go)
The parameter names are specified with full path using dot-notation. F.e. `section-name` .`sub-section` .`param-name` would result in this nesting in the JSON configuration:
Expand Down

0 comments on commit 912b274

Please sign in to comment.