Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update pangle md #4823

Merged
merged 4 commits into from
Sep 8, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 51 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,54 @@ 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: {
placementid: '1234', // string - required
bytedancer-1 marked this conversation as resolved.
Show resolved Hide resolved
appid: '1234' // string - required
}
}
]
}
];
```

### User Sync

Add the following code to enable user sync. Smile Wanted strongly recommends enabling user syncing through iFrames. This functionality improves partners' user match rates and increases the Smile Wanted bid rate and bid price. Be sure to call `pbjs.setConfig()` only once.
bytedancer-1 marked this conversation as resolved.
Show resolved Hide resolved

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