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.
consumable adapter: add gpp support (prebid#2883)
- Loading branch information
1 parent
c3db838
commit bfb4005
Showing
3 changed files
with
143 additions
and
1 deletion.
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
130 changes: 130 additions & 0 deletions
130
adapters/consumable/consumable/supplemental/simple-banner-gpp.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,130 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [{"w": 728, "h": 250}] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"networkId": 11, | ||
"siteId": 32, | ||
"unitId": 42 | ||
} | ||
} | ||
} | ||
], | ||
"device": { | ||
"ua": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36", | ||
"ip": "123.123.123.123" | ||
}, | ||
"site": { | ||
"domain": "www.some.com", | ||
"page": "http://www.some.com/page-where-ad-will-be-shown" | ||
}, | ||
"regs": { | ||
"gpp": "gppString", | ||
"gpp_sid": [7] | ||
} | ||
}, | ||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "https://e.serverbid.com/api/v2", | ||
"headers": { | ||
"Accept": [ | ||
"application/json" | ||
], | ||
"Content-Type": [ | ||
"application/json" | ||
], | ||
"User-Agent": [ | ||
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36" | ||
], | ||
"X-Forwarded-For": [ | ||
"123.123.123.123" | ||
], | ||
"Forwarded": [ | ||
"for=123.123.123.123" | ||
], | ||
"Origin": [ | ||
"http://www.some.com" | ||
], | ||
"Referer": [ | ||
"http://www.some.com/page-where-ad-will-be-shown" | ||
] | ||
}, | ||
"body": { | ||
"placements": [ | ||
{ | ||
"adTypes": [2730], | ||
"divName": "test-imp-id", | ||
"networkId": 11, | ||
"siteId": 32, | ||
"unitId": 42 | ||
} | ||
], | ||
"schain": { | ||
"complete": 0, | ||
"nodes": null, | ||
"ver": "" | ||
}, | ||
"networkId": 11, | ||
"siteId": 32, | ||
"unitId": 42, | ||
"time": 1451651415, | ||
"url": "http://www.some.com/page-where-ad-will-be-shown", | ||
"includePricingData": true, | ||
"user":{}, | ||
"enableBotFiltering": true, | ||
"parallel": true, | ||
"gpp": "gppString", | ||
"gpp_sid": [7] | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"decisions": { | ||
"test-imp-id": { | ||
"adId": 1234567890, | ||
"pricing": { | ||
"clearPrice": 0.5 | ||
}, | ||
"width": 728, | ||
"height": 250, | ||
"impressionUrl": "http://localhost:8080/shown", | ||
"contents" : [ | ||
{ | ||
"body": "<blink>Remember this: https://www.google.com/search?q=blink+tag ?</blink>" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "test-request-id", | ||
"impid": "test-imp-id", | ||
"price": 0.5, | ||
"adm": "<blink>Remember this: https://www.google.com/search?q=blink+tag ?</blink>", | ||
"crid": "1234567890", | ||
"exp": 30, | ||
"w": 728, | ||
"h": 250 | ||
}, | ||
"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