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.
Adform adapter lacked gross/net parameter support (prebid#2084)
- Loading branch information
Showing
10 changed files
with
682 additions
and
0 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
122 changes: 122 additions & 0 deletions
122
adapters/adf/adftest/exemplary/single-banner-pricetype-gross-extend-ext.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,122 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"ext":{ | ||
"prebid":{ | ||
"aliases":{ | ||
"adfalias": "adf" | ||
} | ||
} | ||
}, | ||
"imp": [{ | ||
"id": "test-imp-id", | ||
"ext": { | ||
"bidder": { | ||
"mid": "828782", | ||
"priceType": "gross" | ||
} | ||
}, | ||
"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", | ||
"ext": { | ||
"prebid":{ | ||
"aliases":{ | ||
"adfalias": "adf" | ||
} | ||
}, | ||
"pt": "gross" | ||
}, | ||
"imp": [{ | ||
"id": "test-imp-id", | ||
"ext": { | ||
"bidder": { | ||
"mid": "828782", | ||
"priceType": "gross" | ||
} | ||
}, | ||
"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", | ||
"ext": { | ||
"prebid": { | ||
"type": "banner" | ||
} | ||
} | ||
}] | ||
}], | ||
"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" ], | ||
"ext": { | ||
"prebid": { | ||
"type": "banner" | ||
} | ||
} | ||
}, | ||
"type": "banner" | ||
} | ||
] | ||
}] | ||
} |
112 changes: 112 additions & 0 deletions
112
adapters/adf/adftest/exemplary/single-banner-pricetype-gross.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,112 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [{ | ||
"id": "test-imp-id", | ||
"ext": { | ||
"bidder": { | ||
"mid": "828782", | ||
"priceType": "gross" | ||
} | ||
}, | ||
"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", | ||
"ext": { | ||
"prebid": { | ||
}, | ||
"pt": "gross" | ||
}, | ||
"imp": [{ | ||
"id": "test-imp-id", | ||
"ext": { | ||
"bidder": { | ||
"mid": "828782", | ||
"priceType": "gross" | ||
} | ||
}, | ||
"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", | ||
"ext": { | ||
"prebid": { | ||
"type": "banner" | ||
} | ||
} | ||
}] | ||
}], | ||
"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" ], | ||
"ext": { | ||
"prebid": { | ||
"type": "banner" | ||
} | ||
} | ||
}, | ||
"type": "banner" | ||
} | ||
] | ||
}] | ||
} |
112 changes: 112 additions & 0 deletions
112
adapters/adf/adftest/exemplary/single-banner-pricetype-net.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,112 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [{ | ||
"id": "test-imp-id", | ||
"ext": { | ||
"bidder": { | ||
"mid": "828782", | ||
"priceType": "net" | ||
} | ||
}, | ||
"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", | ||
"ext": { | ||
"prebid": { | ||
}, | ||
"pt": "net" | ||
}, | ||
"imp": [{ | ||
"id": "test-imp-id", | ||
"ext": { | ||
"bidder": { | ||
"mid": "828782", | ||
"priceType": "net" | ||
} | ||
}, | ||
"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", | ||
"ext": { | ||
"prebid": { | ||
"type": "banner" | ||
} | ||
} | ||
}] | ||
}], | ||
"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" ], | ||
"ext": { | ||
"prebid": { | ||
"type": "banner" | ||
} | ||
} | ||
}, | ||
"type": "banner" | ||
} | ||
] | ||
}] | ||
} |
Oops, something went wrong.