-
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.
Criteo: Add support for paapi (#3759)
Co-authored-by: v.raybaud <v.raybaud@criteo.com>
- Loading branch information
Showing
3 changed files
with
254 additions
and
2 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
176 changes: 176 additions & 0 deletions
176
adapters/criteo/criteotest/exemplary/simple-banner-paapi.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,176 @@ | ||
{ | ||
"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": { | ||
"ext": { | ||
"eids": [ | ||
{ | ||
"source": "criteo.com", | ||
"uids": [ | ||
{ | ||
"id": "criteo-eid" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"ae": 1, | ||
"bidder": { | ||
"zoneid": 123456, | ||
"networkid": 78910 | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "https://ssp-bidder.criteo.com/openrtb/pbs/auction/request?profile=230", | ||
"headers": {}, | ||
"body": { | ||
"id": "test-request-id", | ||
"site": { | ||
"id": "site-id", | ||
"page": "criteo.com" | ||
}, | ||
"device": { | ||
"os": "android", | ||
"ip": "91.199.242.236", | ||
"ua": "random user agent" | ||
}, | ||
"user": { | ||
"ext": { | ||
"eids": [ | ||
{ | ||
"source": "criteo.com", | ||
"uids": [ | ||
{ | ||
"id": "criteo-eid" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"ae": 1, | ||
"bidder": { | ||
"zoneid": 123456, | ||
"networkid": 78910 | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"impIDs":["test-imp-id"] | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"currency": "USD", | ||
"seatbid": [ | ||
{ | ||
"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, | ||
"ext": { | ||
"prebid": { | ||
"type": "banner" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"ext" : { | ||
"igi": [ | ||
{ | ||
"impid": "test-imp-id", | ||
"igs": [ | ||
{ | ||
"impid": "test-imp-id", | ||
"config": { | ||
"test": "test" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"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, | ||
"ext": { | ||
"prebid": { | ||
"type": "banner" | ||
} | ||
} | ||
}, | ||
"type": "banner" | ||
} | ||
], | ||
"fledgeAuctionConfigs": [{ | ||
"impid": "test-imp-id", | ||
"config": { | ||
"test": "test" | ||
}, | ||
"bidder": "criteo" | ||
}] | ||
} | ||
] | ||
} | ||
|