Skip to content

Commit

Permalink
feat: update pangle md (#4823)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people authored Sep 8, 2023
1 parent 172ae66 commit f362964
Showing 1 changed file with 52 additions and 2 deletions.
54 changes: 52 additions & 2 deletions dev-docs/bidders/pangle.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ schain_supported: false
media_types: banner, video, native
safeframes_ok: false
deals_supported: false
pbjs: false
pbjs: true
pbs: true
pbs_app_supported: true
prebid_member: false
userIds: sharedId
sidebarType: 1
---

Expand All @@ -25,6 +26,55 @@ The Pangle Bidding adapter requires setup before beginning. Please contact us at
{: .table .table-bordered .table-striped }
| Name | Scope | Description | Example | Type |
|---------------|----------|-------------------------------------------------------|-------------|----------|
| token | required | access token | 'aaaa123' | string |
| token | required | access token,contact Pangle team to get your token | 'aaaa123' | string |
| appid | optional | app id (must be used in conjunction with placementid) | '5123400' | string |
| placementid | optional | placement id (must be used in conjunction with appid) | '912340000' | string |

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`.

### Test Parameters

```javascript
var adUnits = [
{
code: 'test-div',
mediaTypes: {
banner: {
sizes: [[300, 250]], // a display size
}
},
bids: [
{
bidder: "pangle",
params: {
token: "aaaaa",
placementid: '1234', // string
appid: '1234' // string
}
}
]
}
];
```

### User Sync

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.

```javascript
pbjs.setConfig({
userSync: {
iframeEnabled: true,
userIds: [
{
name: 'sharedId',
storage: {
name: 'sharedId', // name of the 1st party cookie
type: 'cookie',
expires: 365,
},
},
],
}
});
```

0 comments on commit f362964

Please sign in to comment.