---
layout: bidder
title: Media.net
description: Prebid Media.net Bidder Adaptor
biddercode: medianet
tcfeu_supported: true
media_types: banner,native,video
usp_supported: true
coppa_supported: true
userIds: all
prebid_member: true
pbjs: true
gvl_id: 142
schain_supported: true
floors_supported: true
pbs: true
sidebarType: 1
gpp_sids: tcfeu, tcfca, usnat, usstate_all, usp
safeframes_ok: true
pbs_app_supported: true
multiformat_supported: will-bid-on-any
dsa_supported: true
dchain_supported: false
deals_supported: true
fpd_supported: true
privacy_sandbox: paapi, topics
endpoint_compression: false
---

{% include dev-docs/reports-timeout-events.md endpoint="navvy.media.net/log" data="its customer ID, the number of timed-out bid requests, the timeout and details of those bid requests" %}

## Bid Params

{: .table .table-bordered .table-striped }

| Name | Scope | Description | Example | Type |
| --- | --- | --- | --- | --- |
| `cid` | required | The customer id provided by Media.net. | `'8CUX0H51C'` | `string` |
| `crid` | required | The placement id provided by Media.net | `'1234567'` | `string` |
| `bidfloor` | optional | Bidfloor for the impression | `1.0` | `float` |
| `video` | optional for video Ad units | Object containing video targeting parameters.  See [Video Object](#media.net-video-object) for details. | `video: { maxduration: 60 }` | `object` |

<a name="media.net-video-object"></a>

### Video Object

{: .table .table-bordered .table-striped }

| Name | Type | Description | Example |
| --- | --- | --- | --- |
| mimes | array of strings | (Recommended) Specifies the video content MIME types supported; for example, video/x-ms-wmv and video/x-flv. | ["video/x-ms-wmv","video/x-flv"] |
| minduration | integer | (Recommended) Specifies the minimum video ad duration, in seconds. | 10 |
| maxduration | integer | (Recommended) Specifies the maximum video ad duration, in seconds. | 60 |
| w | integer | (Recommended) Specifies the width of the video player, in pixels. Required if playerSize not present in `mediaTypes.video` | 640 |
| h | integer | (Recommended) Specifies the height of the video player, in pixels. Required if playerSize not present in `mediaTypes.video` | 480 |
| startdelay | integer | (Recommended) Specifies the start delay of the video ad | 0 |
| battr | array of integers | Specifies the video creative attributes to block. Refer to section 5.3 of the IAB specification for a list of attributes. | [ 13, 14 ] |
| playbackmethod | array of integers | Specifies the allowed playback methods. If not specified, all are assumed to be allowed. Currently supported values are: `1: Autoplay, sound on`; `2: Autoplay, sound off`; `3: Click to play`; `4: Mouse over to play` | [1, 3] |
| api | array of integers | Specifies the supported API frameworks for this impression. If an API is not explicitly listed, it is assumed not to be supported. Currently supported values are: `1: VPAID 1.0`; `2: VPAID 2.0`; `3: MRAID-1`; `4: ORMMA`; `5: MRAID-2` | [1, 2] |
| protocols | array of integers | Array of supported video protocols. Currently supported values are: `1: VAST 1.0`; `2: VAST 2.0`; `3: VAST 3.0`; `4: VAST 1.0 Wrapper`; `5: VAST 2.0 Wrapper`; `6: VAST 3.0 Wrapper`; `7: VAST 4.0` | [1, 2] |
| placement | integer | Placement type for the impression. Possible options: `1: In-Stream`; `2: In-banner`; `3: Outstream/In-article`; `4: In-feed`; `5: Interstitial/Slider/Floating`; `6: Long-Form`; | 1 |

Besides the above-mentioned parameters, we support all other OpenRTB 2.x video objects as optional parameters.

In addition to `bids[].params.video`, Media.net adapter consumes parameters specified in the `mediaTypes.video`.

### Example of Instream Video Ad-unit

```javascript
var videoAdUnit = {
  code: 'video1',
  mediaTypes: {
    video: {
      context: "instream",
      playerSize: [640, 480],
      mimes: ['video/mp4'],
      placement: 1
    }
  },
  bids: [{
    bidder: 'medianet',
    params: {
      cid: '8CUX0H51C',
      crid: '776755783',  
      // Site member is to be used only for testing
      site: {
        page: 'http://smoketesting.net/prebidtest/',
        domain: 'smoketesting.net',
        ref: 'http://smoketesting.net/prebidtest/'
      }
    }
  }]
};
```

### Example of Native Ad-unit

```javascript
var adUnits = [{
  code: 'div-gpt-ad-1544091247692-0',
  mediaTypes: {
    native: {
      image: {
        required: true,
        sizes: [300, 250],
        wmin: 50,
      },
      title: {
        required: true,
        len: 80
      }
    }
  },
  bids: [{
    bidder: 'medianet',
    params: {
      cid: '8CUX0H51C',
      crid: '776755783',
      // Site member is to be used only for testing
      site: {
        page: 'http://smoketesting.net/prebidtest/',
        domain: 'smoketesting.net',
        ref: 'http://smoketesting.net/prebidtest/'
      }
    }
  }]
}];
```

### Example of Banner Ad-unit

```javascript
var adUnits = [{
  code: 'div-gpt-ad-1460505748561-0',
  mediaTypes: {
    banner: {
      sizes: [
        [728, 90],
        [300, 600],
        [300, 250]
      ],
    }
  },
  bids: [{
    bidder: 'medianet',
    params: {
      cid: '8CUX0H51C',
      crid: '451466393',
      // Site member is to be used only for testing
      site: {
        page: 'http://smoketesting.net/prebidtest/',
        domain: 'smoketesting.net',
        ref: 'http://smoketesting.net/prebidtest/'
      }
    }
  }]
}];
```

## Protected Audience API (FLEDGE)

To enable PAAPI auctions follow the instructions below:

1. Add the `paapiForGpt` and `paapi` modules to your prebid bundle.
2. Add the following configuration for the module

```javascript
pbjs.que.push(function() {
  pbjs.setConfig({
    paapi: {
      enabled: true,
      bidders: ['medianet'],
      defaultForSlots: 1
    }
  });
});
```

For a detailed guide to enabling PAAPI auctions follow Prebid's documentation 
on [`paapiForGpt`](https://docs.prebid.org/dev-docs/modules/paapiForGpt.html)
