# Overview

```
Module Name: Smart Ad Server Bidder Adapter
Module Type: Bidder Adapter
Maintainer: support@smartadserver.com
```

# Description

Connect to Smart for bids.

The Smart adapter requires setup and approval from the Smart team.
Please reach out to your Technical account manager for more information.

# Test Parameters

## Web
```
    var adUnits = [
        {
            code: 'test-div',
            sizes: [[300, 250]],  // a display size
            bids: [
                {
                    bidder: "smart",
                    params: {
                        domain: 'http://ww251.smartadserver.com',
                        siteId: 207435,
                        pageId: 896536,
                        formatId: 62913,
                        ckId: 1122334455 // optional
                    }
                }
            ]
        }
    ];
```

## In-app
```
    var adUnits = [
        {
            code: 'test-div',
            sizes: [[300, 250]],  // a display size
            bids: [
                {
                    bidder: "smart",
                    params: {
                        domain: 'http://ww251.smartadserver.com',
                        siteId: 207435,
                        pageId: 896536,
                        formatId: 65906,
                        buId: "com.smartadserver.android.dashboard", // in-app only
                        appName: "Smart AdServer Preview", // in-app only
                        ckId: 1122334455 // optional
                    }
                }
            ]
        }
    ];
```

## Instream Video
```
    var videoAdUnit = {
        code: 'test-div',
        mediaTypes: {
            video: {
                context: 'instream',
                playerSize: [640, 480]
            }
        },
        bids: [{
            bidder: "smart",
            params: {
                domain: 'http://ww251.smartadserver.com',
                siteId: 326147,
                pageId: 1153895,
                formatId: 55710
                bidfloor: 5,
                video: {
                    protocol: 6,
                    startDelay: 0
                }
            }
        }]
    };
```