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.
Liftoff: Add site support and fill seat (prebid#3327)
co-authored by @Vungle-GordonTian
- Loading branch information
1 parent
a97609f
commit c15374c
Showing
9 changed files
with
372 additions
and
7 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
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 |
---|---|---|
|
@@ -144,7 +144,8 @@ | |
"w": 300, | ||
"h": 250 | ||
}, | ||
"type": "video" | ||
"type": "video", | ||
"seat": "seat-id" | ||
} | ||
] | ||
} | ||
|
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 |
---|---|---|
|
@@ -137,7 +137,8 @@ | |
"w": 300, | ||
"h": 250 | ||
}, | ||
"type": "video" | ||
"type": "video", | ||
"seat": "seat-id" | ||
} | ||
] | ||
} | ||
|
152 changes: 152 additions & 0 deletions
152
adapters/liftoff/liftofftest/exemplary/site_video_instl.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,152 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"site": { | ||
"name": "com.prebid" | ||
}, | ||
"device": { | ||
"ifa": "87857b31-8942-4646-ae80-ab9c95bf3fab" | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"video": { | ||
"mimes": [ | ||
"video/mp4" | ||
], | ||
"protocols": [ | ||
2, | ||
5 | ||
], | ||
"w": 1024, | ||
"h": 576, | ||
"ext": { | ||
"foo": "bar" | ||
} | ||
}, | ||
"instl": 1, | ||
"ext": { | ||
"bidder": { | ||
"app_store_id": "123", | ||
"placement_reference_id": "123" | ||
} | ||
} | ||
} | ||
], | ||
"user": { | ||
"buyeruid": "123" | ||
}, | ||
"ext": { | ||
"prebid": { | ||
"debug": true | ||
} | ||
} | ||
}, | ||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "https://liftoff.io/bit/t", | ||
"headers": { | ||
"Content-Type": ["application/json"], | ||
"Accept": ["application/json"], | ||
"X-OpenRTB-Version": ["2.5"] | ||
}, | ||
"body": { | ||
"id": "test-request-id", | ||
"app": { | ||
"id": "123" | ||
}, | ||
"device": { | ||
"ifa": "87857b31-8942-4646-ae80-ab9c95bf3fab" | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"tagid": "123", | ||
"video": { | ||
"mimes": [ | ||
"video/mp4" | ||
], | ||
"protocols": [ | ||
2, | ||
5 | ||
], | ||
"w": 1024, | ||
"h": 576, | ||
"ext": { | ||
"foo": "bar" | ||
} | ||
}, | ||
"instl": 1, | ||
"ext": { | ||
"prebid": null, | ||
"bidder": { | ||
"app_store_id": "123", | ||
"placement_reference_id": "123" | ||
}, | ||
"vungle": { | ||
"bid_token": "123", | ||
"app_store_id": "123", | ||
"placement_reference_id": "123" | ||
} | ||
} | ||
} | ||
], | ||
"user": { | ||
"buyeruid": "123" | ||
}, | ||
"ext": { | ||
"prebid": { | ||
"debug": true | ||
} | ||
} | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-id", | ||
"seatbid": [ | ||
{ | ||
"seat": "seat-id", | ||
"bid": [ | ||
{ | ||
"id": "1", | ||
"impid": "test-imp-id", | ||
"adid": "11110126", | ||
"price": 0.500000, | ||
"adm": "some-test-ad", | ||
"crid": "test-crid", | ||
"h": 250, | ||
"w": 300 | ||
} | ||
] | ||
} | ||
], | ||
"cur": "USD" | ||
} | ||
} | ||
} | ||
], | ||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "1", | ||
"impid": "test-imp-id", | ||
"adid": "11110126", | ||
"price": 0.5, | ||
"adm": "some-test-ad", | ||
"crid": "test-crid", | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
"type": "video", | ||
"seat": "seat-id" | ||
} | ||
] | ||
} | ||
] | ||
} |
145 changes: 145 additions & 0 deletions
145
adapters/liftoff/liftofftest/exemplary/site_video_rewarded.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,145 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"site": { | ||
"name": "com.prebid" | ||
}, | ||
"device": { | ||
"ifa": "87857b31-8942-4646-ae80-ab9c95bf3fab" | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"video": { | ||
"mimes": [ | ||
"video/mp4" | ||
], | ||
"protocols": [ | ||
2, | ||
5 | ||
], | ||
"w": 1024, | ||
"h": 576, | ||
"ext": { | ||
"foo": "bar" | ||
} | ||
}, | ||
"ext": { | ||
"prebid": { | ||
"is_rewarded_inventory": 1 | ||
}, | ||
"bidder": { | ||
"app_store_id": "123", | ||
"placement_reference_id": "123" | ||
} | ||
} | ||
} | ||
], | ||
"user": { | ||
"buyeruid": "123" | ||
} | ||
}, | ||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "https://liftoff.io/bit/t", | ||
"headers": { | ||
"Content-Type": ["application/json"], | ||
"Accept": ["application/json"], | ||
"X-OpenRTB-Version": ["2.5"] | ||
}, | ||
"body": { | ||
"id": "test-request-id", | ||
"app": { | ||
"id": "123" | ||
}, | ||
"device": { | ||
"ifa": "87857b31-8942-4646-ae80-ab9c95bf3fab" | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"tagid": "123", | ||
"video": { | ||
"mimes": [ | ||
"video/mp4" | ||
], | ||
"protocols": [ | ||
2, | ||
5 | ||
], | ||
"w": 1024, | ||
"h": 576, | ||
"ext": { | ||
"foo": "bar" | ||
} | ||
}, | ||
"ext": { | ||
"prebid": { | ||
"is_rewarded_inventory": 1 | ||
}, | ||
"bidder": { | ||
"app_store_id": "123", | ||
"placement_reference_id": "123" | ||
}, | ||
"vungle": { | ||
"bid_token": "123", | ||
"app_store_id": "123", | ||
"placement_reference_id": "123" | ||
} | ||
} | ||
} | ||
], | ||
"user": { | ||
"buyeruid": "123" | ||
} | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-id", | ||
"seatbid": [ | ||
{ | ||
"seat": "seat-id", | ||
"bid": [ | ||
{ | ||
"id": "1", | ||
"impid": "test-imp-id", | ||
"adid": "11110126", | ||
"price": 0.500000, | ||
"adm": "some-test-ad", | ||
"crid": "test-crid", | ||
"h": 250, | ||
"w": 300 | ||
} | ||
] | ||
} | ||
], | ||
"cur": "USD" | ||
} | ||
} | ||
} | ||
], | ||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "1", | ||
"impid": "test-imp-id", | ||
"adid": "11110126", | ||
"price": 0.5, | ||
"adm": "some-test-ad", | ||
"crid": "test-crid", | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
"type": "video", | ||
"seat": "seat-id" | ||
} | ||
] | ||
} | ||
] | ||
} |
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 |
---|---|---|
|
@@ -137,7 +137,8 @@ | |
"w": 300, | ||
"h": 250 | ||
}, | ||
"type": "video" | ||
"type": "video", | ||
"seat": "seat-id" | ||
} | ||
] | ||
} | ||
|
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 |
---|---|---|
|
@@ -132,7 +132,8 @@ | |
"h": 250, | ||
"w": 300 | ||
}, | ||
"type": "video" | ||
"type": "video", | ||
"seat": "seat-id" | ||
} | ||
] | ||
} | ||
|
Oops, something went wrong.