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

Mgid Adapter: update mgid adapter adding support of user sync & ortb2 #4463

Merged
merged 1 commit into from
Apr 14, 2023
Merged
Changes from all 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
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.