This repository has been archived by the owner on Dec 22, 2022. It is now read-only.
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.
ImproveDigital adapter: (prebid#887)
- Add support for video - Add support for mobile/app - Add support for multibid responses - Extend optional parameters
- Loading branch information
1 parent
9340908
commit bf9fbb4
Showing
19 changed files
with
774 additions
and
12 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
152 changes: 152 additions & 0 deletions
152
adapters/improvedigital/improvedigitaltest/exemplary/app-multi.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", | ||
"app": { | ||
"id": "appID", | ||
"publisher": { | ||
"id": "uniq_pub_id" | ||
} | ||
}, | ||
"device":{ | ||
"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36" | ||
}, | ||
"imp": [{ | ||
"id": "test-imp-id-banner", | ||
"banner": { | ||
"format": [{ | ||
"w": 300, | ||
"h": 250 | ||
}] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"placementId": 13245 | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "test-imp-id-video", | ||
"video": { | ||
"mimes": ["video/mp4"], | ||
"protocols": [2, 5], | ||
"w": 1920, | ||
"h": 1080 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"placementId": 13244 | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
|
||
"httpCalls": [{ | ||
"expectedRequest": { | ||
"uri": "http://localhost/pbs", | ||
"body": { | ||
"id": "test-request-id", | ||
"app": { | ||
"id": "appID", | ||
"publisher": { | ||
"id": "uniq_pub_id" | ||
} | ||
}, | ||
"device":{ | ||
"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36" | ||
}, | ||
"imp": [{ | ||
"id": "test-imp-id-banner", | ||
"banner": { | ||
"format": [{ | ||
"w": 300, | ||
"h": 250 | ||
}] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"placementId": 13245 | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "test-imp-id-video", | ||
"video": { | ||
"mimes": ["video/mp4"], | ||
"protocols": [2, 5], | ||
"w": 1920, | ||
"h": 1080 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"placementId": 13244 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-id", | ||
"seatbid": [{ | ||
"seat": "improvedigital", | ||
"bid": [{ | ||
"id": "randomid1", | ||
"impid": "test-imp-id-banner", | ||
"price": 0.500000, | ||
"adid": "12345678", | ||
"adm": "some-test-ad-html", | ||
"cid": "987", | ||
"crid": "12345678", | ||
"h": 250, | ||
"w": 300 | ||
}, | ||
{ | ||
"id": "randomid2", | ||
"impid": "test-imp-id-video", | ||
"price": 0.500000, | ||
"adm": "some-test-ad-vast", | ||
"crid": "1234567", | ||
"w": 1920, | ||
"h": 1080 | ||
} | ||
] | ||
}], | ||
"cur": "USD" | ||
} | ||
} | ||
}], | ||
|
||
"expectedBidResponses": [{ | ||
"currency": "USD", | ||
"bids": [{ | ||
"bid": { | ||
"id": "randomid1", | ||
"impid": "test-imp-id-banner", | ||
"price": 0.5, | ||
"adm": "some-test-ad-html", | ||
"adid": "12345678", | ||
"cid": "987", | ||
"crid": "12345678", | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
"type": "banner" | ||
}, | ||
{ | ||
"bid": { | ||
"id": "randomid2", | ||
"impid": "test-imp-id-video", | ||
"price": 0.5, | ||
"adm": "some-test-ad-vast", | ||
"crid": "1234567", | ||
"w": 1920, | ||
"h": 1080 | ||
}, | ||
"type": "video" | ||
} | ||
] | ||
}] | ||
} |
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 |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
}, | ||
"imp": [{ | ||
"id": "test-imp-id", | ||
"pid": 123, | ||
"banner": { | ||
"format": [{ | ||
"w": 300, | ||
|
156 changes: 156 additions & 0 deletions
156
adapters/improvedigital/improvedigitaltest/exemplary/site-multi.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,156 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"site": { | ||
"page": "https://good.site/url", | ||
"domain": "good.site", | ||
"publisher": { | ||
"id": "uniq_pub_id" | ||
}, | ||
"keywords": "omgword", | ||
"ext": { | ||
"amp": 0 | ||
} | ||
}, | ||
"imp": [{ | ||
"id": "test-imp-id-banner", | ||
"banner": { | ||
"format": [{ | ||
"w": 300, | ||
"h": 250 | ||
}] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"placementId": 13245 | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "test-imp-id-video", | ||
"video": { | ||
"mimes": ["video/mp4"], | ||
"protocols": [2, 5], | ||
"w": 1920, | ||
"h": 1080 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"placementId": 13244 | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
|
||
"httpCalls": [{ | ||
"expectedRequest": { | ||
"uri": "http://localhost/pbs", | ||
"body": { | ||
"id": "test-request-id", | ||
"site": { | ||
"page": "https://good.site/url", | ||
"domain": "good.site", | ||
"publisher": { | ||
"id": "uniq_pub_id" | ||
}, | ||
"keywords": "omgword", | ||
"ext": { | ||
"amp": 0 | ||
} | ||
}, | ||
"imp": [{ | ||
"id": "test-imp-id-banner", | ||
"banner": { | ||
"format": [{ | ||
"w": 300, | ||
"h": 250 | ||
}] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"placementId": 13245 | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "test-imp-id-video", | ||
"video": { | ||
"mimes": ["video/mp4"], | ||
"protocols": [2, 5], | ||
"w": 1920, | ||
"h": 1080 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"placementId": 13244 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-id", | ||
"seatbid": [{ | ||
"seat": "improvedigital", | ||
"bid": [{ | ||
"id": "randomid1", | ||
"impid": "test-imp-id-banner", | ||
"price": 0.500000, | ||
"adid": "12345678", | ||
"adm": "some-test-ad-html", | ||
"cid": "987", | ||
"crid": "12345678", | ||
"h": 250, | ||
"w": 300 | ||
}, | ||
{ | ||
"id": "randomid2", | ||
"impid": "test-imp-id-video", | ||
"price": 0.500000, | ||
"adm": "some-test-ad-vast", | ||
"crid": "1234567", | ||
"w": 1920, | ||
"h": 1080 | ||
} | ||
] | ||
}], | ||
"cur": "USD" | ||
} | ||
} | ||
}], | ||
|
||
"expectedBidResponses": [{ | ||
"currency": "USD", | ||
"bids": [{ | ||
"bid": { | ||
"id": "randomid1", | ||
"impid": "test-imp-id-banner", | ||
"price": 0.5, | ||
"adm": "some-test-ad-html", | ||
"adid": "12345678", | ||
"cid": "987", | ||
"crid": "12345678", | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
"type": "banner" | ||
}, | ||
{ | ||
"bid": { | ||
"id": "randomid2", | ||
"impid": "test-imp-id-video", | ||
"price": 0.5, | ||
"adm": "some-test-ad-vast", | ||
"crid": "1234567", | ||
"w": 1920, | ||
"h": 1080 | ||
}, | ||
"type": "video" | ||
} | ||
] | ||
}] | ||
} |
Oops, something went wrong.