Skip to content

Commit f362964

Browse files
bytedancer-1bretgpangle-fe
authored
feat: update pangle md (prebid#4823)
* feat: update pangle md * fixed linter errors * feat: parameter consistency * fix: pangle md --------- Co-authored-by: bretg <bgorsline@gmail.com> Co-authored-by: xuqi.ziogie <xuqi.ziogie@bytedance.com>
1 parent 172ae66 commit f362964

1 file changed

Lines changed: 52 additions & 2 deletions

File tree

dev-docs/bidders/pangle.md

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ schain_supported: false
99
media_types: banner, video, native
1010
safeframes_ok: false
1111
deals_supported: false
12-
pbjs: false
12+
pbjs: true
1313
pbs: true
1414
pbs_app_supported: true
1515
prebid_member: false
16+
userIds: sharedId
1617
sidebarType: 1
1718
---
1819

@@ -25,6 +26,55 @@ The Pangle Bidding adapter requires setup before beginning. Please contact us at
2526
{: .table .table-bordered .table-striped }
2627
| Name | Scope | Description | Example | Type |
2728
|---------------|----------|-------------------------------------------------------|-------------|----------|
28-
| token | required | access token | 'aaaa123' | string |
29+
| token | required | access token,contact Pangle team to get your token | 'aaaa123' | string |
2930
| appid | optional | app id (must be used in conjunction with placementid) | '5123400' | string |
3031
| placementid | optional | placement id (must be used in conjunction with appid) | '912340000' | string |
32+
33+
Pangle server-side Prebid Server adapter supports `banner`, `video`, `native` media types. But Pangle client-side Prebid.js adapter supports only `banner` media types, doesn't support `video` and `native`.
34+
35+
### Test Parameters
36+
37+
```javascript
38+
var adUnits = [
39+
{
40+
code: 'test-div',
41+
mediaTypes: {
42+
banner: {
43+
sizes: [[300, 250]], // a display size
44+
}
45+
},
46+
bids: [
47+
{
48+
bidder: "pangle",
49+
params: {
50+
token: "aaaaa",
51+
placementid: '1234', // string
52+
appid: '1234' // string
53+
}
54+
}
55+
]
56+
}
57+
];
58+
```
59+
60+
### User Sync
61+
62+
Add the following code to enable user sync. Pangle strongly recommends enabling user syncing through iFrames. This functionality improves partners' user match rates and increases the Pangle bid rate and bid price. Be sure to call `pbjs.setConfig()` only once.
63+
64+
```javascript
65+
pbjs.setConfig({
66+
userSync: {
67+
iframeEnabled: true,
68+
userIds: [
69+
{
70+
name: 'sharedId',
71+
storage: {
72+
name: 'sharedId', // name of the 1st party cookie
73+
type: 'cookie',
74+
expires: 365,
75+
},
76+
},
77+
],
78+
}
79+
});
80+
```

0 commit comments

Comments
 (0)