# Prebid adapter

You can add Collective Audience™ in your Prebid flow through the `beop` bid adapter.

> ***Note****: BeOp is the old name of Collective Audience™.*

> **Information :** 
>
> You'll need to contact your account manager to activate the Prebid integration on your Collective Audience™ account.

First, pick **BeOp** on the [Prebid.js download page](https://docs.prebid.org/download.html).

Then, add Collective Audience™ in the relevant slot's `bids` array.

We recommend that you assign the Collective Audience™ bidder the sizes that your ad unit support. Collective Audience™ is managing for its own contents the sizes 1x1, 250x250, 300x250, 300x600, 320x480, 336x280 and 480x320. But for external buyers, other sizes can be applied, so feel free to customize the `sizes` array as you expect it.

```javascript
var adUnits = [
  {
    code: "in-article",
    mediaTypes: {
      banner: {
        sizes: [
          [1, 1],
          [250, 250],
          [300, 250],
          [300, 600],
          [320, 480],
          [336, 280],
          [480, 320],
          // YOUR OTHER SIZES
        ],
      },
    },
    bids: [
      {
        bidder: "beop",
        params: {
          accountId: "YOUR_ACCOUNT_ID",
          currency: "EUR", // or "USD"
        },
      },
    ],
  },
];
```

### Bid Params

| Name | Value |
|------|-------|
| `accountId` | Your Collective Audience™ account ID |
| `currency` | `EUR` or `USD` |

### Bidder Params

If you want to pass your first party data to Collective Audience™, you can set Collective Audience™ bidder `config.ortb2` object with

```json
{
  "site": {
    "ext": {
      "bpsegs": ["Your", 1, "ST", "party", "data"],
      "data": {
        "bpsegs": ["Your", 1, "ST", "party", "data"]
      }
    }
  },
  "user": {
    "ext": {
      "bpsegs": ["Your", 1, "ST", "party", "data"],
      "data": {
        "bpsegs": ["Your", 1, "ST", "party", "data"]
      }
    }
  }
}
```

You can choose the location between:

* `site.ext`
* `site.ext.data`
* `user.ext`
* `user.ext.data`

and our BidAdapter will be able to find them. See the [related documentation](/publisher-data-description) on how you can leverage the usage of your first party data in Collective Audience™ platform.