File tree 2 files changed +48
-37
lines changed 2 files changed +48
-37
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import {registerBidder} from '../src/adapters/bidderFactory.js';
4
4
5
5
const BIDDER_CODE = 'smartytech' ;
6
6
export const ENDPOINT_PROTOCOL = 'https' ;
7
- export const ENDPOINT_DOMAIN = 'server.bluecuttlefish.com ' ;
7
+ export const ENDPOINT_DOMAIN = 'server.smartytech.io ' ;
8
8
export const ENDPOINT_PATH = '/hb/v2/bidder' ;
9
9
10
10
export const spec = {
@@ -106,10 +106,10 @@ export const spec = {
106
106
} ) . map ( item => spec . _adResponse ( item . bid , item . response ) ) ;
107
107
} ,
108
108
109
- _adResponse : function ( requestId , response ) {
109
+ _adResponse : function ( request , response ) {
110
110
const bidObject = {
111
- requestId : requestId . bidId ,
112
- adUnitCode : requestId . adUnitCode ,
111
+ requestId : request . bidId ,
112
+ adUnitCode : request . adUnitCode ,
113
113
bidderCode : BIDDER_CODE ,
114
114
ad : response . ad ,
115
115
cpm : response . cpm ,
Original file line number Diff line number Diff line change 1
1
# Overview
2
2
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
7
6
7
+ ```
8
8
9
9
# Description
10
10
11
- You can use this adapter to get a bid from smartytech.io .
11
+ Connects to SmartyTech's exchange for bids .
12
12
13
- About us : https://smartytech.io
13
+ SmartyTech bid adapter supports Banner and Video
14
14
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
+ ```
16
36
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
+ }
30
47
},
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
+ };
44
55
```
You can’t perform that action at this time.
0 commit comments