From aca43c3ad70ce7db344a617195c9bf951432c5c5 Mon Sep 17 00:00:00 2001 From: zhihuiye Date: Tue, 15 Jul 2025 01:03:55 +0100 Subject: [PATCH] updated doc for user sync inpementation --- dev-docs/bidders/mobkoi.md | 58 +++++++++++++++++++++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/dev-docs/bidders/mobkoi.md b/dev-docs/bidders/mobkoi.md index 9406f061d5..40be910862 100644 --- a/dev-docs/bidders/mobkoi.md +++ b/dev-docs/bidders/mobkoi.md @@ -46,7 +46,7 @@ const adUnits = [ { code: 'banner-ad', mediaTypes: { - banner: { sizes: [300, 200] }, + banner: { sizes: [[300, 600]] }, }, bids: [ { @@ -63,3 +63,59 @@ pbjs.que.push(function () { pbjs.addAdUnits(adUnits); }); ``` + +#### User ID Module Integration + +For optimal targeting and yield, configure the Mobkoi User ID module alongside the bidder adapter. + +**Required modules:** `mobkoiBidAdapter`, `mobkoiIdSystem`, `userId`, `consentManagementTcf`, `tcfControl` + +```js +pbjs.que.push(function () { + // Configuration for enabling the User ID module + pbjs.setConfig({ + userSync: { + userIds: [ + { + name: 'mobkoiId', + storage: { + type: 'cookie', + name: '_mobkoi_id', + expires: 30, // days + }, + }, + ], + }, + }); + + pbjs.addAdUnits(adUnits); +}); +``` + +#### User Sync Configuration (Alternative) + +Alternatively, enable user sync without the User ID module. + +**Required modules:** `mobkoiBidAdapter`, `consentManagementTcf`, `tcfControl` + +```js +pbjs.que.push(function () { + // Configuration for enabling getUserSyncs functionality + pbjs.setConfig({ + userSync: { + filterSettings: { + image: { + bidders: ['mobkoi'], + filter: 'include' + } + } + } + }); + + pbjs.addAdUnits(adUnits); +}); +``` + +#### Additional Resources + +For comprehensive setup guidelines and detailed integration instructions, visit our [complete integration documentation](https://mobkoi.gitbook.io/docs).