From 737a431d48fdb3cb2cac988ba1cf7108a602c661 Mon Sep 17 00:00:00 2001 From: "wangfeng.1999" Date: Mon, 28 Aug 2023 14:51:35 +0800 Subject: [PATCH 1/4] feat: update pangle md --- dev-docs/bidders/pangle.md | 53 +++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/dev-docs/bidders/pangle.md b/dev-docs/bidders/pangle.md index 4401ac9284..b89d7c731a 100644 --- a/dev-docs/bidders/pangle.md +++ b/dev-docs/bidders/pangle.md @@ -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 --- @@ -28,3 +29,53 @@ The Pangle Bidding adapter requires setup before beginning. Please contact us at | token | required | access 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 adapter requires only `token` parameters parameters. But Pangle client-side Prebid.js adapter requires only `appid` and `placementid`. + +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 + +``` +var adUnits = [ + { + code: 'test-div', + mediaTypes: { + banner: { + sizes: [[300, 250]], // a display size + } + }, + bids: [ + { + bidder: "pangle", + params: { + placementid: '1234', // string - required + 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. + +``` +pbjs.setConfig({ + userSync: { + iframeEnabled: true, + userIds: [ + { + name: 'sharedId', + storage: { + name: 'sharedId', // name of the 1st party cookie + type: 'cookie', + expires: 365, + }, + }, + ], + } +}); +``` From e06733fea4e411348b548236b0fda472f661b826 Mon Sep 17 00:00:00 2001 From: bretg Date: Wed, 30 Aug 2023 14:21:42 -0400 Subject: [PATCH 2/4] fixed linter errors --- dev-docs/bidders/pangle.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-docs/bidders/pangle.md b/dev-docs/bidders/pangle.md index b89d7c731a..190efb4c45 100644 --- a/dev-docs/bidders/pangle.md +++ b/dev-docs/bidders/pangle.md @@ -36,7 +36,7 @@ Pangle server-side Prebid Server adapter supports `banner`, `video`, `native` me ### Test Parameters -``` +```javascript var adUnits = [ { code: 'test-div', @@ -62,7 +62,7 @@ var adUnits = [ 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. -``` +```javascript pbjs.setConfig({ userSync: { iframeEnabled: true, From 7643e32c994451fe5bcd4db841c4555c2c28c0ed Mon Sep 17 00:00:00 2001 From: "xuqi.ziogie" Date: Fri, 1 Sep 2023 18:06:58 +0800 Subject: [PATCH 3/4] feat: parameter consistency --- dev-docs/bidders/pangle.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dev-docs/bidders/pangle.md b/dev-docs/bidders/pangle.md index 190efb4c45..d77729a00d 100644 --- a/dev-docs/bidders/pangle.md +++ b/dev-docs/bidders/pangle.md @@ -26,12 +26,10 @@ 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 adapter requires only `token` parameters parameters. But Pangle client-side Prebid.js adapter requires only `appid` and `placementid`. - 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 From 906dccdfd56568de3d0ed860843ef8d34462d220 Mon Sep 17 00:00:00 2001 From: "xuqi.ziogie" Date: Thu, 7 Sep 2023 11:22:42 +0800 Subject: [PATCH 4/4] fix: pangle md --- dev-docs/bidders/pangle.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dev-docs/bidders/pangle.md b/dev-docs/bidders/pangle.md index d77729a00d..ece1891a55 100644 --- a/dev-docs/bidders/pangle.md +++ b/dev-docs/bidders/pangle.md @@ -47,8 +47,9 @@ var adUnits = [ { bidder: "pangle", params: { - placementid: '1234', // string - required - appid: '1234' // string - required + token: "aaaaa", + placementid: '1234', // string + appid: '1234' // string } } ] @@ -58,7 +59,7 @@ var adUnits = [ ### 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. +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({