Skip to content

Commit 0ad25c5

Browse files
dares-gtsurnewdreamglobal
authored andcommitted
Add new appnexus alias newdream
1 parent ba94966 commit 0ad25c5

File tree

1 file changed

+179
-0
lines changed

1 file changed

+179
-0
lines changed

dev-docs/bidders/newdream.md

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
---
2+
layout: bidder
3+
title: Newdream
4+
description: Prebid Newdream Bidder Adapter
5+
biddercode: newdream
6+
aliasCode : appnexus
7+
media_types: video,banner,native
8+
tcfeu_supported: true
9+
dsa_supported: true
10+
prebid_member: true
11+
userIds: all (with commercial activation)
12+
schain_supported: true
13+
coppa_supported: true
14+
usp_supported: true
15+
gpp_supported: true
16+
floors_supported: true
17+
fpd_supported: false
18+
pbjs: true
19+
pbs: true
20+
gvl_id: 32
21+
sidebarType: 1
22+
---
23+
24+
### Bid Params
25+
26+
{: .table .table-bordered .table-striped }
27+
| Name | Scope | Description | Example | Type |
28+
|---------------|----------|-------------|---------|----------|
29+
| `placementId` | required | | | `string` |
30+
| `randomKey` | optional | | | `string` |
31+
| `invCode` | optional | | | `string` |
32+
| `member` | optional | | | `string` |
33+
34+
Newdream is an aliased bidder for AppNexus
35+
36+
### Prebid Server Note
37+
38+
{% include dev-docs/pbjs-adapter-required-for-pbs.md %}
39+
40+
#### Prebid Server Test Request
41+
42+
The following test parameters can be used to verify that Prebid Server is working properly with the server-side Newdream adapter. This example includes an Newdream test placement ID and sizes that would match with the test creative.
43+
44+
```javascript
45+
var adUnits = [
46+
// Banner adUnit
47+
{
48+
code: 'banner-div',
49+
mediaTypes: {
50+
banner: {
51+
sizes: [[300, 250], [300,600]]
52+
}
53+
},
54+
bids: [{
55+
bidder: 'newdream',
56+
params: {
57+
placementId: 13144370
58+
}
59+
}]
60+
},
61+
// Native adUnit
62+
{
63+
code: 'native-div',
64+
sizes: [[1, 1]],
65+
mediaTypes: {
66+
native: {
67+
title: {
68+
required: true
69+
},
70+
body: {
71+
required: true
72+
},
73+
image: {
74+
required: true
75+
},
76+
sponsoredBy: {
77+
required: true
78+
},
79+
icon: {
80+
required: false
81+
}
82+
}
83+
},
84+
bids: [{
85+
bidder: 'newdream',
86+
params: {
87+
placementId: 13232354,
88+
allowSmallerSizes: true
89+
}
90+
}]
91+
},
92+
// Video instream adUnit
93+
{
94+
code: 'video-instream',
95+
sizes: [[640, 480]],
96+
mediaTypes: {
97+
video: {
98+
playerSize: [[640, 480]],
99+
context: 'instream'
100+
},
101+
},
102+
bids: [{
103+
bidder: 'newdream',
104+
params: {
105+
placementId: 13232361,
106+
video: {
107+
skippable: true,
108+
playback_methods: ['auto_play_sound_off']
109+
}
110+
}
111+
}]
112+
},
113+
// Video outstream adUnit
114+
{
115+
code: 'video-outstream',
116+
sizes: [[300, 250]],
117+
mediaTypes: {
118+
video: {
119+
playerSize: [[300, 250]],
120+
context: 'outstream',
121+
// Certain ORTB 2.5 video values can be read from the mediatypes object; below are examples of supported params.
122+
// To note - mediafuse supports additional values for our system that are not part of the ORTB spec. If you want
123+
// to use these values, they will have to be declared in the bids[].params.video object instead using the mediafuse syntax.
124+
// Between the corresponding values of the mediaTypes.video and params.video objects, the properties in params.video will
125+
// take precedence if declared; eg in the example below, the `skippable: true` setting will be used instead of the `skip: 0`.
126+
minduration: 1,
127+
maxduration: 60,
128+
skip: 0, // 1 - true, 0 - false
129+
skipafter: 5,
130+
playbackmethod: [2], // note - we only support options 1-4 at this time
131+
api: [1,2,3] // note - option 6 is not supported at this time
132+
}
133+
},
134+
bids: [
135+
{
136+
bidder: 'newdream',
137+
params: {
138+
placementId: 13232385,
139+
video: {
140+
skippable: true,
141+
playback_method: 'auto_play_sound_off'
142+
}
143+
}
144+
}
145+
]
146+
},
147+
// Banner adUnit in a App Webview
148+
// Only use this for situations where prebid.js is in a webview of an App
149+
// See Prebid Mobile for displaying ads via an SDK
150+
{
151+
code: 'banner-div',
152+
mediaTypes: {
153+
banner: {
154+
sizes: [[300, 250], [300,600]]
155+
}
156+
}
157+
bids: [{
158+
bidder: 'newdream',
159+
params: {
160+
placementId: 13144370,
161+
app: {
162+
id: "B1O2W3M4AN.com.prebid.webview",
163+
geo: {
164+
lat: 40.0964439,
165+
lng: -75.3009142
166+
},
167+
device_id: {
168+
idfa: "4D12078D-3246-4DA4-AD5E-7610481E7AE", // Apple advertising identifier
169+
aaid: "38400000-8cf0-11bd-b23e-10b96e40000d", // Android advertising identifier
170+
md5udid: "5756ae9022b2ea1e47d84fead75220c8", // MD5 hash of the ANDROID_ID
171+
sha1udid: "4DFAA92388699AC6539885AEF1719293879985BF", // SHA1 hash of the ANDROID_ID
172+
windowsadid: "750c6be243f1c4b5c9912b95a5742fc5" // Windows advertising identifier
173+
}
174+
}
175+
}
176+
}]
177+
}
178+
];
179+
```

0 commit comments

Comments
 (0)