Mgid
Features
Bidder Code | mgid | Prebid.org Member | no |
---|---|---|---|
Media Types | display, native | GDPR TCF Support | yes |
User IDs | none | USP/CCPA Support | yes |
Supply Chain Support | no | COPPA Support | no |
Demand Chain Support | no | GPP Support | no |
Supports Deals | check with bidder | Prebid.js Adapter | yes |
IAB GVL ID | 358 | Prebid Server Adapter | yes |
Floors Module Support | yes | First Party Data Support | check with bidder |
Multi Format Support | will-bid-on-any | ORTB Blocking Support | partial |
Safeframes OK | check with bidder |
"Send All Bids" Ad Server Keys
These are the bidder-specific keys that would be targeted within GAM in a Send-All-Bids scenario. GAM truncates keys to 20 characters.hb_pb_mgid |
hb_bidder_mgid |
hb_adid_mgid |
hb_size_mgid |
hb_source_mgid |
hb_format_mgid |
hb_cache_host_mgid |
hb_cache_id_mgid |
hb_uuid_mgid |
hb_cache_path_mgid |
hb_deal_mgid |
Table of Contents
Description
One of the easiest way to gain access to MGID demand sources - MGID header bidding adapter.
MGID header bidding adapter connects with MGID demand sources to fetch bids for display placements. Please reach out to your account manager or prebid@mgid.com for more information.
Bid params
Name | Scope | Description | Example | Type |
---|---|---|---|---|
accountId |
required | The account ID from Mgid | '123' |
string |
placementId |
optional | The placement ID from Mgid | '123456' |
string |
bidFloor |
optional | Lowest value of expected bid price | 1.1 |
float |
currency |
optional | Currency of request and response | 'GBP' |
string |
Test Parameters
300x600 banner test
var adUnits = [{
code: 'div-prebid',
mediaTypes: {
banner: {
sizes: [[300, 600]]
}
},
// Replace this object to test a new Adapter!
bids: [{
bidder: 'mgid',
params : {
accountId : "219" //test accountId, please replace after test
}
}]
}];
300x250 banner test
var adUnits = [{
code: 'div-prebid',
mediaTypes: {
banner: {
sizes: [[300, 250]]
}
},
// Replace this object to test a new Adapter!
bids: [{
bidder: 'mgid',
params : {
accountId : "219" //test accountId, please replace after test
}
}]
}];
native test
var adUnits = [{
code: 'div-prebid',
mediaTypes: {
native: {
image: {
sendId: true,
required: true,
sizes: [80, 80]
},
clickUrl: {
sendId: true,
required: false
},
title: {
required: true,
len: 80
},
sponsored: {
required: false
}
}
},
// Replace this object to test a new Adapter!
bids: [{
bidder: 'mgid',
params : {
accountId : "219" //test accountId, please replace after test
}
}]
}];
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:
pbjs.setConfig({
userSync: {
filterSettings: {
iframe: {
bidders: '*', // '*' represents all bidders
filter: 'include'
}
}
}
});
For Prebid.js v1.14.0 and before:
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.