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
* Removed position parameter.
* Removed zip parameter.
* Removed placementId parameter and make sizes required instead.
* Updated price-related macros.
* Fixed error when params is not provided.
* Removed last occurrence of placementId.
* Read currency.adServerCurrency as publisherCurrency.
* Use DEV endpoint for testing.
* Use config.pageUrl when test is set to true.
* Added more details about page URL.
* `config.pageUrl`.
* Added a comment explaining why pageUrl is considered only when testing.
* Fixed double quotes in tests.
Copy file name to clipboardExpand all lines: modules/koblerBidAdapter.md
+12-17Lines changed: 12 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,15 @@ This adapter currently only supports Banner Ads.
12
12
13
13
# Parameters
14
14
15
-
| Parameter (in `params`) | Scope | Type | Description | Example |
16
-
| --- | --- | --- | --- | --- |
17
-
| placementId | Required | String | The identifier of the placement, it has to be issued by Kobler. |`'xjer0ch8'`|
18
-
| zip | Optional | String | Zip code of the user or the medium. When multiple ad units are submitted together, it is enough to set this parameter on the first one. |`'102 22'`|
19
-
| test | Optional | Boolean | Whether the request is for testing only. When multiple ad units are submitted together, it is enough to set this parameter on the first one. Defaults to false. |`true`|
20
-
| floorPrice | Optional | Float | Floor price in CPM and USD. Can be used as an alternative to the [Floors module](https://docs.prebid.org/dev-docs/modules/floors.html), which is also supported by this adapter. Defaults to 0. |`5.0`|
21
-
| position | Optional | Integer | The position of the ad unit. Can be used to differentiate between ad units if the same placement ID is used across multiple ad units. The first ad unit should have a `position` of 0, the second one should have a `position` of 1 and so on. Defaults to 0. |`1`|
22
-
| dealIds | Optional | Array of Strings | Array of deal IDs. |`['abc328745', 'mxw243253']`|
15
+
| Parameter (in `params`) | Scope | Type | Description | Example |
| test | Optional | Boolean | Whether the request is for testing only. When multiple ad units are submitted together, it is enough to set this parameter on the first one. Enables providing a custom URL through config.pageUrl. Defaults to false. |`true`|
18
+
| floorPrice | Optional | Float | Floor price in CPM and USD. Can be used as an alternative to the [Floors module](https://docs.prebid.org/dev-docs/modules/floors.html), which is also supported by this adapter. Defaults to 0. |`5.0`|
19
+
| dealIds | Optional | Array of Strings | Array of deal IDs. |`['abc328745', 'mxw243253']`|
20
+
21
+
## Implicit parameters
22
+
23
+
Kobler identifies the placement using the combination of the page URL and the allowed sizes. As a result, it's important that the correct sizes are provided in `banner.sizes` in order for Kobler to correctly identify the placement. The main, desired format should be the first element of this array.
23
24
24
25
# Test Parameters
25
26
```javascript
@@ -31,17 +32,14 @@ This adapter currently only supports Banner Ads.
31
32
}
32
33
},
33
34
bids: [{
34
-
bidder:'kobler',
35
-
params: {
36
-
placementId:'k5H7et3R0'
37
-
}
35
+
bidder:'kobler'
38
36
}]
39
37
}];
40
38
```
41
39
42
40
In order to see a sample bid from Kobler (without a proper setup), you have to also do the following:
43
-
-Change the [`refererInfo` function](https://github.com/prebid/Prebid.js/blob/master/src/refererDetection.js) to return `'https://www.tv2.no/a/11734615'` as a [`referer`](https://github.com/prebid/Prebid.js/blob/caead3ccccc448e4cd09d074fd9f8833f56fe9b3/src/refererDetection.js#L169). This is necessary because Kobler only bids on recognized articles.
44
-
-Change the adapter's [`BIDDER_ENDPOINT`](https://github.com/prebid/Prebid.js/blob/master/modules/koblerBidAdapter.js#L8) to `'https://bid-service.dev.essrtb.com/bid/prebid_rtb_call'`. This endpoint belongs to the development server that is set up to always return a bid for the correct `placementId` and page URL combination.
41
+
-Set the `test` parameter to `true`.
42
+
-Set `config.pageUrl` to `'https://www.tv2.no/mening-og-analyse/14555348/'`. This is necessary because Kobler only bids on recognized articles. Kobler runs its own test campaign to make sure there is always a bid for this specific page URL.
45
43
46
44
# Test Optional Parameters
47
45
```javascript
@@ -55,11 +53,8 @@ In order to see a sample bid from Kobler (without a proper setup), you have to a
0 commit comments