Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dailyhunt Doc #1977

Merged
merged 5 commits into from
May 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 64 additions & 11 deletions dev-docs/bidders/dailyhunt.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,55 @@ title: Dailyhunt
description: Prebid Dailyhunt Bidder Adaptor
hide: true
biddercode: dailyhunt
media_types: display, native
media_types: display, native, video
gdpr_supported: true
---

### Bid Params

{: .table .table-bordered .table-striped }
| Name | Scope | Description | Example | Type |
|-------------------|----------|----------------------------------------------------------------------------------------------------------------------|-----------------------------------------------|------------|
| `partnerId` | required | Serving ads based on partnerId. Contact Dailyhunt for PartnerIds. | `'pb-partner'` | `string` |
| Name | Scope | Description | Example | Type |
|------|----------|-------------|---------|------|
| `placement_id` | required | Serving ads based on placement_id. Contact Dailyhunt for placement_id. | `1` | `int` |
| `publisher_id` | required | Serving ads based on publisher_id. Contact Dailyhunt for publisher_id. | `1` | `int` |
| `partner_name` | required | Serving ads based on partner_name. Contact Dailyhunt for partner_name. | `dailyhunt` | `string` |
| `test_mode` | optional | Serving test mode campaign only. | `true` | `bool` |
| `bidfloor` | optional | Minimum bid for this bid expressed in CPM. | `1.4` | `float` |
| `video` | optional | A Video object required if this bid is offered as a video ad opportunity. It is ortb video object. | `video: { w: 640, h: 480, mimes: ["video/mp4"] }` | `object` |
|`site` | optional | Details about the publisher’s website. It is ortb site object. | `site:{id:"102855",cat:["IAB3-1"],domain:"http://m.dailyhunt.in",page:"http://m.dailyhunt.in/1234.html "}` | `object` |
| `device` | optional | Details about the user’s device to which the impression will be delivered. It is ortb device object. | `device: { ip: "64.124.253.1", os: "OS X", ua: "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.16) }` | `object` |
| `user` | optional | Details about the human user of the device; the advertising audience. It is ortb user object. | `user: { id: "456789876567897654678987656789", gender: "M", gender: 1990, keywords: "marketing,traveling,reading" }` | `object` |
| `publisher` | optional | Details about the Publisher of the site. It is ortb publisher object. | `publisher: { id: "8953", name: "dailyhunt", "cat": [ "IAB3-1" ], "domain": "m.dailyhunt.in" }` | `object` |

### Test Parameters
**Notes: The `video`, `site`, `device`, `user`, `publisher` objects are all ORTB objects. Please refer to the [ORTB documentation](https://www.iab.com/wp-content/uploads/2016/03/OpenRTB-API-Specification-Version-2-5-FINAL.pdf) for additional details.**

# Test Parameters
```
var adUnits = [
{
code: 'test-banner-adunit-code',
code: '/83414793/prebid_test_display',
sizes: [[300, 250], [320, 50]],
mediaTypes: {
banner : {
sizes: [[300, 250], [320, 50]],
}
},
bids: [
{
bidder: 'dailyhunt',
params: {
partnerId: 'pb-partnerId'
placement_id: 1,
publisher_id: 1,
partner_name: 'dailyhunt',
device: {
ip: "182.23.143.212"
}
}
}
]
},
{
code: 'test-native-adunit-code',
code: '/83414793/prebid_test_native',
sizes: [[300, 250]],
mediaTypes: {
native: {
Expand All @@ -44,16 +65,48 @@ gdpr_supported: true
image: {
required: true
},
sponsoredBy: {
cta: {
required: true
},
}
}
},
bids: [
{
bidder: 'dailyhunt',
params: {
placement_id: 1,
publisher_id: 1,
partner_name: 'dailyhunt',
device: {
ip: "182.23.143.212"
}
}
}
]
},
{
code: '/83414793/prebid_test_video',
mediaTypes: {
video: {
playerSize: [1280, 720],
context: 'instream'
}
},
bids: [
{
bidder: 'dailyhunt',
params: {
partnerId: 'pb-partnerId'
placement_id: 1,
publisher_id: 1,
partner_name: 'dailyhunt',
device: {
ip: "182.23.143.212"
},
video: {
mimes: [
'video/mp4'
]
}
}
}
]
Expand Down