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.
Criteo - Fix fields mapping error when building bid from bidder respo…
…nse (prebid#1917)
- Loading branch information
1 parent
d6abe69
commit 43b42bc
Showing
16 changed files
with
1,853 additions
and
1,859 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
230 changes: 115 additions & 115 deletions
230
adapters/criteo/criteotest/exemplary/simple-banner-cookie-uid.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 |
---|---|---|
@@ -1,115 +1,115 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"site": { | ||
"id": "site-id", | ||
"page": "criteo.com" | ||
}, | ||
"device": { | ||
"os": "android", | ||
"ip": "91.199.242.236", | ||
"ua": "random user agent" | ||
}, | ||
"user": { | ||
"buyeruid": "criteo-user-id" | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"zoneid": 123456, | ||
"networkid": 78910 | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "https://bidder.criteo.com/cdb?profileId=230", | ||
"headers": { | ||
"X-Forwarded-For": ["91.199.242.236"], | ||
"User-Agent": ["random user agent"], | ||
"Cookie": ["uid=criteo-user-id"] | ||
}, | ||
"body": { | ||
"id": "test-request-id", | ||
"publisher": { | ||
"siteid": "site-id", | ||
"url": "criteo.com", | ||
"networkid": 78910 | ||
}, | ||
"user": { | ||
"cookieuid": "criteo-user-id", | ||
"ip": "91.199.242.236", | ||
"ua": "random user agent", | ||
"deviceos": "android", | ||
"deviceidtype": "gaid" | ||
}, | ||
"gdprconsent": {}, | ||
"slots": [ | ||
{ | ||
"slotid": "00000000-0000-0000-00000000", | ||
"impid": "test-imp-id", | ||
"zoneid": 123456, | ||
"networkid": 78910, | ||
"sizes": [ | ||
"300x250" | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-id", | ||
"slots": [ | ||
{ | ||
"id": "test-slot-id", | ||
"impid": "test-imp-id", | ||
"zoneid": 123456, | ||
"networkid": 78910, | ||
"cpm": 0.1, | ||
"currency": "USD", | ||
"width": 300, | ||
"height": 250, | ||
"creativeid": "creative-123", | ||
"creative": "<iframe id='789abc' name='789abc' src='http://creative-url.criteo.com'></iframe>" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "test-slot-id", | ||
"impid": "test-imp-id", | ||
"price": 0.1, | ||
"crid": "creative-123", | ||
"adm": "<iframe id='789abc' name='789abc' src='http://creative-url.criteo.com'></iframe>", | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
"type": "banner" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
|
||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"site": { | ||
"id": "site-id", | ||
"page": "criteo.com" | ||
}, | ||
"device": { | ||
"os": "android", | ||
"ip": "91.199.242.236", | ||
"ua": "random user agent" | ||
}, | ||
"user": { | ||
"buyeruid": "criteo-user-id" | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"zoneid": 123456, | ||
"networkid": 78910 | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "https://bidder.criteo.com/cdb?profileId=230", | ||
"headers": { | ||
"X-Forwarded-For": ["91.199.242.236"], | ||
"User-Agent": ["random user agent"], | ||
"Cookie": ["uid=criteo-user-id"] | ||
}, | ||
"body": { | ||
"id": "test-request-id", | ||
"publisher": { | ||
"siteid": "site-id", | ||
"url": "criteo.com", | ||
"networkid": 78910 | ||
}, | ||
"user": { | ||
"cookieuid": "criteo-user-id", | ||
"ip": "91.199.242.236", | ||
"ua": "random user agent", | ||
"deviceos": "android", | ||
"deviceidtype": "gaid" | ||
}, | ||
"gdprconsent": {}, | ||
"slots": [ | ||
{ | ||
"slotid": "00000000-0000-0000-00000000", | ||
"impid": "test-imp-id", | ||
"zoneid": 123456, | ||
"networkid": 78910, | ||
"sizes": [ | ||
"300x250" | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-id", | ||
"slots": [ | ||
{ | ||
"arbitrageid": "test-slot-id", | ||
"impid": "test-imp-id", | ||
"zoneid": 123456, | ||
"networkid": 78910, | ||
"cpm": 0.1, | ||
"currency": "USD", | ||
"width": 300, | ||
"height": 250, | ||
"creativecode": "creative-123", | ||
"creative": "<iframe id='789abc' name='789abc' src='http://creative-url.criteo.com'></iframe>" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "test-slot-id", | ||
"impid": "test-imp-id", | ||
"price": 0.1, | ||
"crid": "creative-123", | ||
"adm": "<iframe id='789abc' name='789abc' src='http://creative-url.criteo.com'></iframe>", | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
"type": "banner" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
|
Oops, something went wrong.