Summarize Smart Ad Server Integration
1) Context
Here is what you'll have to do in order to have smart-rtb+ data within Pubstack. The installation can be done with your technical team or smart technical team.
Three steps to perform:
A/ On Pubstack
Reach out to your Customer Success team at Pubstack in order to activatate in Pubstack's backend the authorization to retrieve Smart data
B/ On Equativ side
You have to add the following "custom script" for each formatId:
<script type="application/javascript">
try {
window.top.sas.events.fire(
'pbstck:ad',
{
cpm: [sas_cpm],
formatId: '[sas_formatId]',
size: '[sas_creativeWidth]x[sas_creativeHeight]',
},
'[sas_tagId]',
);
} catch (e) {
/* Do Nothing */
}
</script>
Nb :
- The <div> for the ad must be named sas_<formatId>; example: when calling formatId: 12345, the id of the <div> must be named sas_12345
- tagId = the tag of the container of the page that will contain the ad.
formatId: 12345,
tagId: 'sas_12345',
C/ Client-side
Client-side, for each adUnit, in the pubstack field (to be created if it does not already exist), it will be necessary to add an adServer attribute with the value smart-rtb + and an adUnitPath with /networkId/siteId/formatId
const adUnits = [{
code: 'sas_12345',
pubstack: {
adUnitPath: '/networkId/siteId/formatId',
adServer: 'smart-rtb+'
},
bids: ['...'],
}]
Once done, smart RTB + should start appearing on the Pubstack dashboard as a bidder.