Skip to content

Commit aebf3b8

Browse files
init new adapter (prebid#13269)
1 parent 570ecce commit aebf3b8

File tree

3 files changed

+576
-0
lines changed

3 files changed

+576
-0
lines changed

modules/pinkLionBidAdapter.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { registerBidder } from '../src/adapters/bidderFactory.js';
2+
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
3+
import { isBidRequestValid, buildRequests, interpretResponse } from '../libraries/teqblazeUtils/bidderUtils.js';
4+
5+
const BIDDER_CODE = 'pinkLion';
6+
const AD_URL = 'https://us-east-ep.pinklion.io/pbjs';
7+
8+
export const spec = {
9+
code: BIDDER_CODE,
10+
supportedMediaTypes: [BANNER, VIDEO, NATIVE],
11+
12+
isBidRequestValid: isBidRequestValid(),
13+
buildRequests: buildRequests(AD_URL),
14+
interpretResponse
15+
};
16+
17+
registerBidder(spec);

modules/pinkLionBidAdapter.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Overview
2+
3+
```
4+
Module Name: PinkLion Bidder Adapter
5+
Module Type: PinkLion Bidder Adapter
6+
Maintainer: [email protected]
7+
```
8+
9+
# Description
10+
11+
Connects to PinkLion Bidder exchange for bids.
12+
PinkLion Bidder bid adapter supports Banner, Video (instream and outstream) and Native.
13+
14+
# Test Parameters
15+
```
16+
var adUnits = [
17+
// Will return static test banner
18+
{
19+
code: 'adunit1',
20+
mediaTypes: {
21+
banner: {
22+
sizes: [ [300, 250], [320, 50] ],
23+
}
24+
},
25+
bids: [
26+
{
27+
bidder: 'pinkLion',
28+
params: {
29+
placementId: 'testBanner',
30+
}
31+
}
32+
]
33+
},
34+
{
35+
code: 'addunit2',
36+
mediaTypes: {
37+
video: {
38+
playerSize: [ [640, 480] ],
39+
context: 'instream',
40+
minduration: 5,
41+
maxduration: 60,
42+
}
43+
},
44+
bids: [
45+
{
46+
bidder: 'pinkLion',
47+
params: {
48+
placementId: 'testVideo',
49+
}
50+
}
51+
]
52+
},
53+
{
54+
code: 'addunit3',
55+
mediaTypes: {
56+
native: {
57+
title: {
58+
required: true
59+
},
60+
body: {
61+
required: true
62+
},
63+
icon: {
64+
required: true,
65+
size: [64, 64]
66+
}
67+
}
68+
},
69+
bids: [
70+
{
71+
bidder: 'pinkLion',
72+
params: {
73+
placementId: 'testNative',
74+
}
75+
}
76+
]
77+
}
78+
];
79+
```

0 commit comments

Comments
 (0)