github.com/prebid/prebid-server/v2@v2.18.0/endpoints/openrtb2/sample-requests/hooks/amp.json (about) 1 { 2 "description": "Amp request", 3 "query": "tag_id=101&trace=verbose", 4 "config": { 5 "mockBidders": [ 6 {"bidderName": "appnexus", "currency": "USD", "price": 2} 7 ] 8 }, 9 "mockBidRequest": { 10 "id": "my-req-id", 11 "site": { 12 "page": "test.somepage.com" 13 }, 14 "imp": [ 15 { 16 "id": "my-imp-id", 17 "banner": { 18 "format": [ 19 { 20 "w": 300, 21 "h": 600 22 } 23 ] 24 }, 25 "ext": { 26 "prebid": { 27 "bidder": { 28 "appnexus": { 29 "placementId": 12883451 30 } 31 } 32 } 33 } 34 } 35 ], 36 "ext": { 37 "prebid": { 38 "debug": true, 39 "aliases": { 40 "unknown": "appnexus" 41 } 42 } 43 } 44 }, 45 "expectedAmpResponse": { 46 "targeting": { 47 "hb_bidder": "appnexus", 48 "hb_bidder_appnexus": "appnexus", 49 "hb_cache_host": "www.pbcserver.com", 50 "hb_cache_host_appnex": "www.pbcserver.com", 51 "hb_cache_id": "0", 52 "hb_cache_id_appnexus": "0", 53 "hb_cache_path": "/pbcache/endpoint", 54 "hb_cache_path_appnex": "/pbcache/endpoint", 55 "hb_pb": "2.00", 56 "hb_pb_appnexus": "2.00" 57 }, 58 "ortb2": { 59 "ext": { 60 "prebid": { 61 "modules": { 62 "errors": { 63 "foobar": { 64 "foo": [ 65 "error 1" 66 ], 67 "bar": [ 68 "error 1" 69 ] 70 } 71 }, 72 "warnings": { 73 "foobar": { 74 "bar": [ 75 "warning 1" 76 ], 77 "baz": [ 78 "Endpoint /openrtb2/amp is not supported by hook." 79 ] 80 } 81 }, 82 "trace": { 83 "stages": [ 84 { 85 "stage": "entrypoint", 86 "outcomes": [ 87 { 88 "entity": "http-request", 89 "groups": [ 90 { 91 "invocation_results": [ 92 { 93 "analytics_tags": {}, 94 "hook_id": { 95 "module_code": "foobar", 96 "hook_impl_code": "foo" 97 }, 98 "status": "success", 99 "action": "update", 100 "message": "", 101 "debug_messages": [ 102 "Hook mutation successfully applied, affected key: header.foo, mutation type: update" 103 ] 104 }, 105 { 106 "analytics_tags": {}, 107 "hook_id": { 108 "module_code": "foobar", 109 "hook_impl_code": "bar" 110 }, 111 "status": "success", 112 "action": "update", 113 "message": "", 114 "debug_messages": [ 115 "Hook mutation successfully applied, affected key: param.foo, mutation type: update" 116 ] 117 } 118 ] 119 }, 120 { 121 "invocation_results": [ 122 { 123 "analytics_tags": {}, 124 "hook_id": { 125 "module_code": "foobar", 126 "hook_impl_code": "baz" 127 }, 128 "status": "success", 129 "action": "no_action", 130 "message": "" 131 } 132 ] 133 } 134 ] 135 } 136 ] 137 } 138 ] 139 } 140 } 141 } 142 } 143 } 144 }, 145 "expectedReturnCode": 200 146 }