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