You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/developers/add-new-bidder.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,6 @@ For more information about application configuration see [here](../config.md)
29
29
30
30
Bidder implementations are scattered throughout several files:
31
31
-`src/main/java/org/prebid/server/bidder/{bidder}/{bidder}Bidder.java`: contains an implementation of [the Bidder interface](../../src/main/java/org/prebid/server/bidder/Bidder.java).
32
-
-`src/main/java/org/prebid/server/bidder/{bidder}/{bidder}Adapter.java`: contains an implementation of [the Adapter interface](../../src/main/java/org/prebid/server/bidder/Adapter.java).
33
32
-`src/main/java/org/prebid/server/bidder/{bidder}/{bidder}Usersyncer.java`: contains an implementation of [the Usersyncer interface](../../src/main/java/org/prebid/server/bidder/Usersyncer.java).
34
33
-`src/main/java/org/prebid/server/proto/openrtb/ext/{bidder}`: contract classes for your Bidder's params.
35
34
-`src/main/resources/static/bidder-params/{bidder}.json`: A [draft-4 json-schema](https://spacetelescope.github.io/understanding-json-schema/) which [validates your Bidder's params](https://www.jsonschemavalidator.net/).
@@ -101,7 +100,7 @@ It should be public class with Spring `@Configuration` annotation so that framew
101
100
This file consists of three main parts:
102
101
- the constant `BIDDER_NAME` with the name of your Bidder.
103
102
- injected configuration properties (like `endpoint`, `usersyncUrl`, etc) needed for the Bidder's implementation.
104
-
- declaration of `BidderDeps` bean combining _bidder name_, _Usersyncer_, _Adapter_ and _BidderRequester_ in one place as a single point-of-truth for using it in application.
103
+
- declaration of `BidderDeps` bean combining _bidder name_, _Usersyncer_ and _BidderRequester_ in one place as a single point-of-truth for using it in application.
105
104
106
105
Also, you can add `@ConditionalOnProperty` annotation on configuration if bidder has no default properties.
107
106
See `src/main/java/org/prebid/server/spring/config/bidder/FacebookConfiguration.java` as an example.
@@ -114,11 +113,10 @@ Assume common rules to write unit tests from [here](unit-tests.md).
114
113
115
114
Bidder tests live in the next files:
116
115
-`src/test/java/org/prebid/server/bidder/{bidder}/{bidder}BidderTest.java`: unit tests for your Bidder implementation.
117
-
-`src/test/java/org/prebid/server/bidder/{bidder}/{bidder}AdapterTest.java`: unit tests for your Adapter implementation.
118
116
-`src/test/java/org/prebid/server/bidder/{bidder}/{bidder}UsersyncerTest.java`: unit tests for your Usersyncer implementation.
119
117
120
118
Commonly you should write tests for covering:
121
-
- creation of your Adapter/Bidder/Usersyncer implementations.
119
+
- creation of your Bidder/Usersyncer implementations.
122
120
- correct Bidder's params filling.
123
121
- JSON parser errors handling.
124
122
- specific cases for composing requests to exchange.
0 commit comments