-
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.
Adnuntius: Return DSA in bid response (#3777)
- Loading branch information
1 parent
640b97c
commit 3c4527e
Showing
5 changed files
with
484 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
133 changes: 133 additions & 0 deletions
133
adapters/adnuntius/adnuntiustest/supplemental/check-dsa-advertiser-legalName-omitted.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,133 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"user": { | ||
"id": "1kjh3429kjh295jkl" | ||
}, | ||
"site": { | ||
"ext":{ | ||
"data" : { | ||
"key": ["value"] | ||
} | ||
} | ||
}, | ||
"regs": { | ||
"ext": { | ||
"dsa": { | ||
"dsarequired": 3, | ||
"datatopub": 1 | ||
} | ||
} | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"auId": "123" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "http://whatever.url?format=prebid&tzo=0", | ||
"body": { | ||
"adUnits": [ | ||
{ | ||
"auId": "123", | ||
"targetId": "123-test-imp-id", | ||
"dimensions": [[300,250],[300,600]] | ||
} | ||
], | ||
"kv": { | ||
"key": ["value"] | ||
}, | ||
"metaData": { | ||
"usi": "1kjh3429kjh295jkl" | ||
}, | ||
"context": "unknown" | ||
}, | ||
"impIDs":["test-imp-id"] | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"adUnits": [ | ||
{ | ||
"auId": "0000000000000123", | ||
"targetId": "123-test-imp-id", | ||
"html": "<ADCODE>", | ||
"responseId": "adn-rsp-900646517", | ||
"ads": [ | ||
{ | ||
"destinationUrls": { | ||
"url": "http://www.google.com" | ||
}, | ||
"bid": { | ||
"amount": 20.0, | ||
"currency": "NOK" | ||
}, | ||
"adId": "adn-id-1559784094", | ||
"creativeWidth": "980", | ||
"creativeHeight": "240", | ||
"creativeId": "jn9hpzvlsf8cpdmm", | ||
"lineItemId": "q7y9qm5b0xt9htrv", | ||
"advertiser": { | ||
"name": "Name" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"expectedBidResponses": [ | ||
{ | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "adn-id-1559784094", | ||
"impid": "test-imp-id", | ||
"price": 20000, | ||
"adm": "<ADCODE>", | ||
"adid": "adn-id-1559784094", | ||
"adomain": [ | ||
"google.com" | ||
], | ||
"cid": "q7y9qm5b0xt9htrv", | ||
"crid": "jn9hpzvlsf8cpdmm", | ||
"w": 980, | ||
"h": 240, | ||
"ext": { | ||
"dsa": { | ||
"paid": "Name", | ||
"behalf": "Name", | ||
"adrender": 0 | ||
} | ||
} | ||
}, | ||
"type": "banner" | ||
|
||
} | ||
], | ||
"currency": "NOK" | ||
} | ||
] | ||
} |
134 changes: 134 additions & 0 deletions
134
adapters/adnuntius/adnuntiustest/supplemental/check-dsa-advertiser-legalName.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,134 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"user": { | ||
"id": "1kjh3429kjh295jkl" | ||
}, | ||
"site": { | ||
"ext":{ | ||
"data" : { | ||
"key": ["value"] | ||
} | ||
} | ||
}, | ||
"regs": { | ||
"ext": { | ||
"dsa": { | ||
"dsarequired": 3, | ||
"datatopub": 1 | ||
} | ||
} | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"auId": "123" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "http://whatever.url?format=prebid&tzo=0", | ||
"body": { | ||
"adUnits": [ | ||
{ | ||
"auId": "123", | ||
"targetId": "123-test-imp-id", | ||
"dimensions": [[300,250],[300,600]] | ||
} | ||
], | ||
"kv": { | ||
"key": ["value"] | ||
}, | ||
"metaData": { | ||
"usi": "1kjh3429kjh295jkl" | ||
}, | ||
"context": "unknown" | ||
}, | ||
"impIDs":["test-imp-id"] | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"adUnits": [ | ||
{ | ||
"auId": "0000000000000123", | ||
"targetId": "123-test-imp-id", | ||
"html": "<ADCODE>", | ||
"responseId": "adn-rsp-900646517", | ||
"ads": [ | ||
{ | ||
"destinationUrls": { | ||
"url": "http://www.google.com" | ||
}, | ||
"bid": { | ||
"amount": 20.0, | ||
"currency": "NOK" | ||
}, | ||
"adId": "adn-id-1559784094", | ||
"creativeWidth": "980", | ||
"creativeHeight": "240", | ||
"creativeId": "jn9hpzvlsf8cpdmm", | ||
"lineItemId": "q7y9qm5b0xt9htrv", | ||
"advertiser": { | ||
"name": "Name", | ||
"legalName": "LegalName" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"expectedBidResponses": [ | ||
{ | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "adn-id-1559784094", | ||
"impid": "test-imp-id", | ||
"price": 20000, | ||
"adm": "<ADCODE>", | ||
"adid": "adn-id-1559784094", | ||
"adomain": [ | ||
"google.com" | ||
], | ||
"cid": "q7y9qm5b0xt9htrv", | ||
"crid": "jn9hpzvlsf8cpdmm", | ||
"w": 980, | ||
"h": 240, | ||
"ext": { | ||
"dsa": { | ||
"paid": "LegalName", | ||
"behalf": "LegalName", | ||
"adrender": 0 | ||
} | ||
} | ||
}, | ||
"type": "banner" | ||
|
||
} | ||
], | ||
"currency": "NOK" | ||
} | ||
] | ||
} |
Oops, something went wrong.