Skip to content

Setup the Adagio bidder adapter parameters

📌 Update your wrapper configuration based on the modules you built previously.

A. Add the necessary Adagio bidder parameters

Section titled “A. Add the necessary Adagio bidder parameters”
Parameter Requirements Description Example Type
organizationId required Id of the Organization. Handed out by Adagio. '1000' string
site required Name of the site. Handed out by Adagio.- max length: 50 'mysite-com' string
placement required Describes the placement of an adunit in a page. Must not contain any information about the type of device.- max length: 50- max distinctives values: 10 'ban_atf' string
var adUnits = [{
// ...code: 'ban-atf',
// ...mediaTypes: {...},
// ...sizes: {...},
// Dedicated Adagio bidder params
bids: [{
bidder: "adagio",
params: {
organizationId: "1000", // Required
site: "my-site", // Required
placement: "my-adg-placement", // Required
},
}],

Adagio requires four parameters: organizationId, site, placement and divId.

params are split between bids.params, ortb2Imp and ortb2 configs.

Parameter Requirements Description Example Type
divId required Refers to the adunit html attribute id in a page. Must exists in the html code of the website. 'div-gpt-ad-1542984663788-0' string
pagetype recommended Describes what kind of content will be present in the page.- max length: 30- max distinctives values: 50 'article' string
category recommended Category of the content displayed in the page.- max length: 30- max distinctives values: 50 'sport' string
var adUnits = [{
// ...code: 'ban-atf',
// ...mediaTypes: {...},
// ...sizes: {...},
// Params shared between all bidders
ortb2Imp: {
ext: {
data: {
divId: "div-gpt-ad-1460505748561-0", // Required
}
}
},
}];
pbjs.setConfig({
// Params shared for the current page
ortb2: {
site: {
ext: {
data: {
pagetype: "article", // Recommended
category: "economy", // Optional
}
}
}
},
});

C. Configure the Adagio RTD Provider parameters

Section titled “C. Configure the Adagio RTD Provider parameters”

Once built, the Adagio RTD Provider should be configured with the following parameters: organizationId and site .

pbjs.que.push(function () {
pbjs.setConfig({
realTimeData: {
dataProviders: [
{
name: "adagio",
params: {
organizationId: "1000", // Required
site: "my-site", // Required
},
},
],
},
});
});

Enable device access and iframe sync. These options are mostly related to privacy (GDPR, CCPA, COPPA or other privacy scenarios).

pbjs.setConfig({
deviceAccess: true,
userSync: {
filterSettings: {
iframe: {
bidders: ['adagio'], // Required
filter: 'include' // Required
}
}
}
});