Skip to content

Commit

Permalink
make outbrain a non-aliased adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Rok Susnik committed Apr 9, 2021
1 parent f290cf9 commit 0792c3c
Showing 1 changed file with 4 additions and 30 deletions.
34 changes: 4 additions & 30 deletions dev-docs/bidders/outbrain.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ layout: bidder
title: Outbrain
description: Outbrain Prebid Bidder Adapter
biddercode: outbrain
aliasCode : zemanta
gdpr_supported: true
gvl_id: 164
usp_supported: true
Expand All @@ -24,55 +23,30 @@ The Outbrain Adapter requires setup before beginning. Please contact us at prebi

### Prebid.js

#### Bidder and usersync URLs

The Outbrain adapter does not work without setting the correct bidder and usersync URLs.
You will receive the URLs when contacting us.

Also note that the Outbrain adapter is an aliased adapter and for usersync to work you also need to enable it as shown below
on the `usersync` config object.
```
pbjs.setConfig({
outbrain: {
bidderUrl: 'http://bidder-url.com',
usersyncUrl: 'http://usersync-url.com'
},
userSync: {
aliasSyncEnabled: true
}
});
```

### Prebid server

Because Outbrain is an alias for Zemanta, the prebid server bidder configuration in `pbs.yaml` for Outbrain needs to reference the Zemanta bidder.

Similar to the Prebid.js part above, our prebid server adapter requires you to configure the bidder and usersync URLs.
Similar to the Prebid.js configuration described above, our prebid server adapter requires you to configure the bidder and usersync URLs.
You will receive the URLs when contacting us.

Please note that you need to replace the `<PREBID_SERVER_EXTERNAL_URL>` part with the actual external URL of the prebid server host.
Please note that you need to replace the `<PREBID_SERVER_EXTERNAL_URL>` part in the usersync URL with the actual external URL of the prebid server host.
```
adapters:
zemanta:
outbrain:
endpoint: http://bidder-url.com
syncurl: http://usersync-url.com?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&cb=<PREBID_SERVER_EXTERNAL_URL>%2Fsetuid%3Fbidder%3Dzemanta%26uid%3D__ZUID__
syncurl: http://usersync-url.com?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&cb=<PREBID_SERVER_EXTERNAL_URL>%2Fsetuid%3Fbidder%3Doutbrain%26uid%3D__ZUID__
```
In addition to the configuration above, support for aliased bidders in prebid server is enabled via some info in stored requests.
So please add the following JSON snippet to the stored request you will use to call our bidder.
```
{
...
"ext": {
"prebid": {
"aliases": {
"outbrain": "zemanta"
}
}
}
...
}
```

## Bid Params

Expand Down

0 comments on commit 0792c3c

Please sign in to comment.