-
Notifications
You must be signed in to change notification settings - Fork 739
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adf adapter: banner and video mediatype support (#1841)
- Loading branch information
Showing
6 changed files
with
396 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,118 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [{ | ||
"id": "test-imp-id-1", | ||
"ext": { | ||
"bidder": { | ||
"mid": "828782" | ||
} | ||
}, | ||
"video": { | ||
"mimes": [ | ||
"video/mp4" | ||
], | ||
"placement": 1 | ||
} | ||
}, { | ||
"id": "test-imp-id-2", | ||
"ext": { | ||
"bidder": { | ||
"mid": "828783" | ||
} | ||
}, | ||
"banner": { | ||
"format": [{ | ||
"w": 300, | ||
"h": 250 | ||
}] | ||
} | ||
}] | ||
}, | ||
"httpCalls": [{ | ||
"expectedRequest": { | ||
"uri": "https://adx.adform.net/adx/openrtb", | ||
"body": { | ||
"id": "test-request-id", | ||
"imp": [{ | ||
"id": "test-imp-id-1", | ||
"ext": { | ||
"bidder": { | ||
"mid": "828782" | ||
} | ||
}, | ||
"video": { | ||
"mimes": [ | ||
"video/mp4" | ||
], | ||
"placement": 1 | ||
}, | ||
"tagid": "828782" | ||
}, { | ||
"id": "test-imp-id-2", | ||
"ext": { | ||
"bidder": { | ||
"mid": "828783" | ||
} | ||
}, | ||
"banner": { | ||
"format": [{ | ||
"w": 300, | ||
"h": 250 | ||
}] | ||
}, | ||
"tagid": "828783" | ||
}] | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-id", | ||
"seatbid": [{ | ||
"bid": [{ | ||
"id": "test-bid-id-1", | ||
"impid": "test-imp-id-1", | ||
"price": 10, | ||
"adm": "{video xml}", | ||
"adomain": [], | ||
"crid": "test-creative-id-1" | ||
}] | ||
}, { | ||
"bid": [{ | ||
"id": "test-bid-id-2", | ||
"impid": "test-imp-id-2", | ||
"price": 2, | ||
"adm": "{banner html}", | ||
"adomain": [ "ad-domain" ], | ||
"crid": "test-creative-id-2" | ||
}] | ||
}], | ||
"cur": "EUR" | ||
} | ||
} | ||
}], | ||
"expectedBidResponses": [{ | ||
"currency": "EUR", | ||
"bids": [{ | ||
"bid": { | ||
"id": "test-bid-id-1", | ||
"impid": "test-imp-id-1", | ||
"price": 10, | ||
"adm": "{video xml}", | ||
"crid": "test-creative-id-1" | ||
}, | ||
"type": "video" | ||
}, { | ||
"bid": { | ||
"id": "test-bid-id-2", | ||
"impid": "test-imp-id-2", | ||
"price": 2, | ||
"adm": "{banner html}", | ||
"adomain": [ "ad-domain" ], | ||
"crid": "test-creative-id-2" | ||
}, | ||
"type": "banner" | ||
}] | ||
}] | ||
} |
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,95 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [{ | ||
"id": "test-imp-id", | ||
"ext": { | ||
"bidder": { | ||
"mid": "828782" | ||
} | ||
}, | ||
"banner": { | ||
"format": [{ | ||
"w": 300, | ||
"h": 250 | ||
}] | ||
} | ||
}], | ||
"site": { | ||
"publisher": { | ||
"id": "1" | ||
}, | ||
"page": "some-page-url" | ||
}, | ||
"device": { | ||
"w": 1920, | ||
"h": 800 | ||
} | ||
}, | ||
"httpCalls": [{ | ||
"expectedRequest": { | ||
"uri": "https://adx.adform.net/adx/openrtb", | ||
"body": { | ||
"id": "test-request-id", | ||
"imp": [{ | ||
"id": "test-imp-id", | ||
"ext": { | ||
"bidder": { | ||
"mid": "828782" | ||
} | ||
}, | ||
"banner": { | ||
"format": [{ | ||
"w": 300, | ||
"h": 250 | ||
}] | ||
}, | ||
"tagid": "828782" | ||
}], | ||
"site": { | ||
"publisher": { | ||
"id": "1" | ||
}, | ||
"page": "some-page-url" | ||
}, | ||
"device": { | ||
"w": 1920, | ||
"h": 800 | ||
} | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-id", | ||
"seatbid": [{ | ||
"bid": [{ | ||
"id": "test-bid-id", | ||
"impid": "test-imp-id", | ||
"price": 10, | ||
"adm": "{banner html}", | ||
"adomain": [ "test.com" ], | ||
"crid": "test-creative-id" | ||
}] | ||
}], | ||
"cur": "USD" | ||
} | ||
} | ||
}], | ||
"expectedBidResponses": [{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "test-bid-id", | ||
"impid": "test-imp-id", | ||
"price": 10, | ||
"adm": "{banner html}", | ||
"crid": "test-creative-id", | ||
"adomain": [ "test.com" ] | ||
}, | ||
"type": "banner" | ||
} | ||
] | ||
}] | ||
} |
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,93 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [{ | ||
"id": "test-imp-id", | ||
"ext": { | ||
"bidder": { | ||
"mid": "828782" | ||
} | ||
}, | ||
"video": { | ||
"mimes": [ | ||
"video/mp4" | ||
], | ||
"placement": 1 | ||
} | ||
}], | ||
"site": { | ||
"publisher": { | ||
"id": "1" | ||
}, | ||
"page": "some-page-url" | ||
}, | ||
"device": { | ||
"w": 1920, | ||
"h": 800 | ||
} | ||
}, | ||
"httpCalls": [{ | ||
"expectedRequest": { | ||
"uri": "https://adx.adform.net/adx/openrtb", | ||
"body": { | ||
"id": "test-request-id", | ||
"imp": [{ | ||
"id": "test-imp-id", | ||
"ext": { | ||
"bidder": { | ||
"mid": "828782" | ||
} | ||
}, | ||
"video": { | ||
"mimes": [ | ||
"video/mp4" | ||
], | ||
"placement": 1 | ||
}, | ||
"tagid": "828782" | ||
}], | ||
"site": { | ||
"publisher": { | ||
"id": "1" | ||
}, | ||
"page": "some-page-url" | ||
}, | ||
"device": { | ||
"w": 1920, | ||
"h": 800 | ||
} | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-id", | ||
"seatbid": [{ | ||
"bid": [{ | ||
"id": "test-bid-id", | ||
"impid": "test-imp-id", | ||
"price": 10, | ||
"adm": "{vast xml}", | ||
"crid": "test-creative-id" | ||
}] | ||
}], | ||
"cur": "USD" | ||
} | ||
} | ||
}], | ||
"expectedBidResponses": [{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "test-bid-id", | ||
"impid": "test-imp-id", | ||
"price": 10, | ||
"adm": "{vast xml}", | ||
"crid": "test-creative-id" | ||
}, | ||
"type": "video" | ||
} | ||
] | ||
}] | ||
} |
Oops, something went wrong.