Skip to content

Commit

Permalink
update mgid adapter adding support of user sync & ortb2 (prebid#4463)
Browse files Browse the repository at this point in the history
Co-authored-by: gaudeamus <dmitry.markelov@mgid.com>
  • Loading branch information
2 people authored and ecdrsvc committed Sep 6, 2023
1 parent 55a4654 commit b525a0f
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions dev-docs/bidders/mgid.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ pbs: true
biddercode: mgid
media_types: banner,native
gdpr_supported: true
usp_supported: true
gvl_id: 358
floors_supported: true
ortb_blocking_supported: partial
multiformat_supported: will-bid-on-any
sidebarType: 1
---

Expand All @@ -17,6 +21,7 @@ sidebarType: 1
- [Description](#description)
- [Bid params](#bid-params)
- [Test Parameters](#test-parameters)
- [User Sync](#user-sync)

<a name="mgid-bid-desc" />

Expand Down Expand Up @@ -114,3 +119,36 @@ var adUnits = [{
}]
}];
```

<a name="mgid-user-sync" />

### User Sync

Mgid recommends UserSync configuration to be enabled. Without it, Mgid adapter will not be able to perform user syncs, which lowers match rate and reduces monetization.

For Prebid.js v1.15.0 and later:

```javascript
pbjs.setConfig({
userSync: {
filterSettings: {
iframe: {
bidders: '*', // '*' represents all bidders
filter: 'include'
}
}
}
});
```

For Prebid.js v1.14.0 and before:

```javascript
pbjs.setConfig({
userSync: {
iframeEnabled: true,
enabledBidders: ['mgid']
}});
```

Note: Combine the above configuration with any other UserSync configuration. Multiple setConfig() calls overwrite each other and only the last call for a given attribute will take effect.

0 comments on commit b525a0f

Please sign in to comment.