forked from prebid/prebid-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rubicon: Fix Nil Reference Panic (prebid#1918)
- Loading branch information
1 parent
138ce46
commit ce7bd6a
Showing
3 changed files
with
593 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
293 changes: 293 additions & 0 deletions
293
adapters/rubicon/rubicontest/supplemental/no-site-content-data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,293 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"device": { | ||
"ip": "123.123.123.123", | ||
"ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" | ||
}, | ||
"app": { | ||
"id": "1", | ||
"bundle": "com.wls.testwlsapplication" | ||
}, | ||
"site": { | ||
"content": { | ||
} | ||
}, | ||
"user": { | ||
"data": [ | ||
{ | ||
"ext": { | ||
"segtax": 4 | ||
}, | ||
"segment": [ | ||
{ | ||
"id": "idToCopy" | ||
} | ||
] | ||
}, | ||
{ | ||
"ext": { | ||
"segtax": "someValue" | ||
}, | ||
"segment": [ | ||
{ | ||
"id": "shouldNotBeCopied" | ||
} | ||
] | ||
}, | ||
{ | ||
"ext": { | ||
"segtax": "4" | ||
}, | ||
"segment": [ | ||
{ | ||
"id": "shouldNotBeCopied2" | ||
} | ||
] | ||
}, | ||
{ | ||
"ext": { | ||
"segtax": 4 | ||
}, | ||
"segment": [ | ||
{ | ||
"id": "idToCopy2" | ||
} | ||
] | ||
}, | ||
{ | ||
"ext": { | ||
"segtax": [ | ||
4 | ||
] | ||
}, | ||
"segment": [ | ||
{ | ||
"id": "shouldNotBeCopied3" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"instl": 1, | ||
"video": { | ||
"placement": 3, | ||
"mimes": [ | ||
"video/mp4" | ||
], | ||
"protocols": [ | ||
2, | ||
5 | ||
], | ||
"w": 1024, | ||
"h": 576 | ||
}, | ||
"bidfloor": 1, | ||
"bidfloorcur": "EuR", | ||
"ext": { | ||
"bidder": { | ||
"video": { | ||
}, | ||
"accountId": 1001, | ||
"siteId": 113932, | ||
"zoneId": 535510 | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "uri?tk_xint=pbs-test-tracker", | ||
"body": { | ||
"id": "test-request-id", | ||
"device": { | ||
"ext": { | ||
"rp": { | ||
"pixelratio": 0 | ||
} | ||
}, | ||
"ip": "123.123.123.123", | ||
"ifa": "zxcjbzxmc-zxcbmz-zxbcz-zxczx" | ||
}, | ||
"site": { | ||
"content": { | ||
}, | ||
"ext": { | ||
"rp": { | ||
"site_id": 113932 | ||
} | ||
}, | ||
"publisher": { | ||
"ext": { | ||
"rp": { | ||
"account_id": 1001 | ||
} | ||
} | ||
} | ||
}, | ||
"user": { | ||
"data": [ | ||
{ | ||
"ext": { | ||
"segtax": 4 | ||
}, | ||
"segment": [ | ||
{ | ||
"id": "idToCopy" | ||
} | ||
] | ||
}, | ||
{ | ||
"ext": { | ||
"segtax": "someValue" | ||
}, | ||
"segment": [ | ||
{ | ||
"id": "shouldNotBeCopied" | ||
} | ||
] | ||
}, | ||
{ | ||
"ext": { | ||
"segtax": "4" | ||
}, | ||
"segment": [ | ||
{ | ||
"id": "shouldNotBeCopied2" | ||
} | ||
] | ||
}, | ||
{ | ||
"ext": { | ||
"segtax": 4 | ||
}, | ||
"segment": [ | ||
{ | ||
"id": "idToCopy2" | ||
} | ||
] | ||
}, | ||
{ | ||
"ext": { | ||
"segtax": [ | ||
4 | ||
] | ||
}, | ||
"segment": [ | ||
{ | ||
"id": "shouldNotBeCopied3" | ||
} | ||
] | ||
} | ||
], | ||
"ext": { | ||
"rp": { | ||
"target": { | ||
"iab": [ | ||
"idToCopy", | ||
"idToCopy2" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"app": { | ||
"id": "1", | ||
"bundle": "com.wls.testwlsapplication" | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"instl": 1, | ||
"video": { | ||
"placement": 3, | ||
"ext": { | ||
"rp": { | ||
"size_id": 203 | ||
} | ||
}, | ||
"mimes": [ | ||
"video/mp4" | ||
], | ||
"protocols": [ | ||
2, | ||
5 | ||
], | ||
"w": 1024, | ||
"h": 576 | ||
}, | ||
"bidfloor": 1.2, | ||
"bidfloorcur": "USD", | ||
"ext": { | ||
"rp": { | ||
"track": { | ||
"mint": "", | ||
"mint_version": "" | ||
}, | ||
"zone_id": 535510 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-id", | ||
"seatbid": [ | ||
{ | ||
"bid": [ | ||
{ | ||
"id": "test_bid_id", | ||
"impid": "test-imp-id", | ||
"price": 0.27543, | ||
"adm": "some-test-ad", | ||
"cid": "test_cid", | ||
"crid": "test_crid", | ||
"dealid": "test_dealid", | ||
"ext": { | ||
"prebid": { | ||
"type": "video" | ||
} | ||
} | ||
} | ||
], | ||
"seat": "adman" | ||
} | ||
], | ||
"cur": "USD" | ||
} | ||
} | ||
} | ||
], | ||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "test_bid_id", | ||
"impid": "test-imp-id", | ||
"price": 0.27543, | ||
"adm": "some-test-ad", | ||
"cid": "test_cid", | ||
"crid": "test_crid", | ||
"dealid": "test_dealid", | ||
"ext": { | ||
"prebid": { | ||
"type": "video" | ||
} | ||
} | ||
}, | ||
"type": "video" | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.