From 97211f91eff181086239461c3219714969384042 Mon Sep 17 00:00:00 2001 From: Neale Upstone Date: Tue, 8 Jan 2019 15:44:38 +0000 Subject: [PATCH] #11 Add a JSON test for absent impressionUrl --- .../simple-banner-no-impressionUrl.json | 124 ++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 adapters/consumable/consumable/supplemental/simple-banner-no-impressionUrl.json diff --git a/adapters/consumable/consumable/supplemental/simple-banner-no-impressionUrl.json b/adapters/consumable/consumable/supplemental/simple-banner-no-impressionUrl.json new file mode 100644 index 00000000000..ed89afc0f44 --- /dev/null +++ b/adapters/consumable/consumable/supplemental/simple-banner-no-impressionUrl.json @@ -0,0 +1,124 @@ +{ + "mockBidRequest": { + "id": "test-request-id", + "imp": [ + { + "id": "test-no-impUrl-id", + "banner": { + "format": [{"w": 300, "h": 250}] + }, + "ext": { + "bidder": { + "networkId": 11, + "siteId": 32, + "unitId": 42, + "unitName": "the-answer" + } + } + } + ], + "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", + "ref": "http://www.some.com/page-before-the-ad-if-any" + }, + "user": { + "buyeruid": "test_reader_id" + } + }, + + "httpCalls": [ + { + "expectedRequest": { + "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" + ] + }, + "uri": "https://e.serverbid.com/api/v2", + "body": { + "placements": [ + { + "adTypes": [5], + "divName": "test-no-impUrl-id", + "networkId": 11, + "siteId": 32, + "unitId": 42, + "unitName": "the-answer" + } + ], + "time": 1451651415, + "includePricingData": true, + "user":{}, + "enableBotFiltering": true, + "parallel": true, + "url": "http://www.some.com/page-where-ad-will-be-shown", + "referrer": "http://www.some.com/page-before-the-ad-if-any" + } + }, + "mockResponse": { + "status": 200, + "body": { + "decisions": { + "test-no-impUrl-id": { + "adId": "adid-consumable", + "bidderName": "aol", + "pricing": { + "clearPrice": 0.5 + }, + "width": 300, + "height": 250, + "contents" : [ + { + "body": "Remember this: https://www.google.com/search?q=blink+tag ?" + } + ] + } + } + } + } + } + ], + + "expectedBidResponses": [ + { + "currency": "USD", + "bids": [ + { + "bid": { + "id": "adid-consumable", + "impid": "test-no-impUrl-id", + "price": 0.5, + "adm": "Remember this: https://www.google.com/search?q=blink+tag ?", + "exp": 30, + "w": 300, + "h": 250 + }, + "type": "banner" + } + ] + } + ] +}