Smaato

Features

Bidder CodesmaatoPrebid.org Memberno
Media Typesdisplay, videoGDPR Supportyes
User IDsnoneCOPPA Supportyes

"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_smaatohb_bidder_smaatohb_adid_smaato
hb_size_smaatohb_source_smaatohb_format_smaato
hb_cache_host_smaatohb_cache_id_smaatohb_uuid_smaato

"Deal ID" Ad Server Key

hb_deal_smaato

Note

The Smaato adapter requires setup and approval from the Smaato team, even for existing Smaato publishers. Please reach out to your account team or prebid@smaato.com for more information.

Bid Params

Name Scope Description Example Type
publisherId required Your Smaato publisher id '1100012345' string
adspaceId required Your Smaato adspace id '11002234' string

Example Banner Ad Unit

var adUnit = {
    "code": "header-bid-tag-1",
    "mediaTypes": {
        "banner": {
            "sizes": [320, 50]
        }
    },
    "bids": [{
        "bidder": "smaato",
        "params": {
            "publisherId": "1100012345",
            "adspaceId": "11002234"
        }
    }]
}

Example Video Ad Unit

var adUnit = {
    "code": "video unit",
    "mediaTypes": {
        "video": {
            "context": "instream",
            "playerSize": [640, 480],
            "mimes": ["video/mp4"],
            "minduration": 5,
            "maxduration": 30,
            "startdelay": 0,
            "linearity": 1,
            "protocols": [7],
            "skip": 1,
            "skipmin": 5,
            "api": [7],
            "ext": {"rewarded": 0}
        }
    },
    "bids": [{
        "bidder": "smaato",
        "params": {
            "publisherId": "1100012345",
            "adspaceId": "11002234"
        }
    }]
};

The Smaato adapter supports passing through first party data configured in your prebid integration.

pbjs.setConfig({
    fpd: {
        context: {
            keywords: "power tools"
        },
        user: {
            keywords: "a,b",
            gender: "M",
            yob: 1984
        }
});