Skip to content

Commit bf866ce

Browse files
committed
update documentation
1 parent 8f48f56 commit bf866ce

File tree

2 files changed

+48
-37
lines changed

2 files changed

+48
-37
lines changed

modules/smartytechBidAdapter.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {registerBidder} from '../src/adapters/bidderFactory.js';
44

55
const BIDDER_CODE = 'smartytech';
66
export const ENDPOINT_PROTOCOL = 'https';
7-
export const ENDPOINT_DOMAIN = 'server.bluecuttlefish.com';
7+
export const ENDPOINT_DOMAIN = 'server.smartytech.io';
88
export const ENDPOINT_PATH = '/hb/v2/bidder';
99

1010
export const spec = {
@@ -106,10 +106,10 @@ export const spec = {
106106
}).map(item => spec._adResponse(item.bid, item.response));
107107
},
108108

109-
_adResponse: function (requestId, response) {
109+
_adResponse: function (request, response) {
110110
const bidObject = {
111-
requestId: requestId.bidId,
112-
adUnitCode: requestId.adUnitCode,
111+
requestId: request.bidId,
112+
adUnitCode: request.adUnitCode,
113113
bidderCode: BIDDER_CODE,
114114
ad: response.ad,
115115
cpm: response.cpm,

modules/smartytechBidAdapter.md

Lines changed: 44 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,55 @@
11
# Overview
22

3-
Module Name: SmartyTech Bidder Adapter
4-
5-
Module Type: Bidder Adapter
6-
3+
```
4+
Module Name: SmartyTech Bid Adapter
5+
Module Type: Bidder Adapter
76
Maintainer: [email protected]
7+
```
88

99
# Description
1010

11-
You can use this adapter to get a bid from smartytech.io.
11+
Connects to SmartyTech's exchange for bids.
1212

13-
About us : https://smartytech.io
13+
SmartyTech bid adapter supports Banner and Video
1414

15-
# Test Parameters
15+
# Sample Ad Unit: For Publishers
16+
## Sample Banner Ad Unit
17+
```
18+
var adUnits = [{
19+
code: '/123123123/prebidjs-banner',
20+
mediaTypes: {
21+
banner: {
22+
sizes: [
23+
[300, 301],
24+
[300, 250]
25+
]
26+
}
27+
},
28+
bids: [{
29+
bidder: 'smartytech',
30+
params: {
31+
endpointId: 12
32+
}
33+
}]
34+
}];
35+
```
1636

17-
```javascript
18-
var adUnits = [
19-
{
20-
code: 'div-smartytech-example',
21-
sizes: [[300, 250]],
22-
bids: [
23-
{
24-
bidder: "smartytech",
25-
params: {
26-
endpointId: 14
27-
}
28-
}
29-
]
37+
## Sample Video Ad Unit
38+
```
39+
var videoAdUnit = {
40+
code: '/123123123/video-vast-banner',
41+
mediaTypes: {
42+
video: {
43+
context: 'instream',
44+
playerSize: [640, 480],
45+
mimes: ['video/mp4'],
46+
}
3047
},
31-
{
32-
code: 'div-smartytech-example-2',
33-
sizes: [[300, 250]],
34-
bids: [
35-
{
36-
bidder: "smartytech",
37-
params: {
38-
endpointId: 14
39-
}
40-
}
41-
]
42-
}
43-
];
48+
bids: [{
49+
bidder: 'smartytech',
50+
params: {
51+
endpointId: 12
52+
}
53+
}]
54+
};
4455
```

0 commit comments

Comments
 (0)