Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 10 additions & 16 deletions adapters/sspBC/sspbc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package sspBC

import (
"bytes"
"encoding/base64"
"encoding/json"
"errors"
"fmt"
Expand All @@ -19,7 +18,7 @@ import (
)

const (
adapterVersion = "5.7"
adapterVersion = "5.8"
impFallbackSize = "1x1"
requestTypeStandard = 1
requestTypeOneCode = 2
Expand Down Expand Up @@ -54,7 +53,7 @@ type templatePayload struct {
PubId string `json:"pubid"`
Page string `json:"page"`
Referer string `json:"referer"`
McAd string `json:"mcad"`
McAd mcAd `json:"mcad"`
Inver string `json:"inver"`
}

Expand Down Expand Up @@ -84,7 +83,7 @@ func Builder(_ openrtb_ext.BidderName, config config.Adapter, server config.Serv
`width=device-width, initial-scale=1.0"><style> body { background-color: transparent; margin: 0;` +
` padding: 0; }</style><script> window.rekid = {{.SiteId}}; window.slot = {{.SlotId}}; window.ad` +
`label = '{{.AdLabel}}'; window.pubid = '{{.PubId}}'; window.wp_sn = 'sspbc_go'; window.page = '` +
`{{.Page}}'; window.ref = '{{.Referer}}'; window.mcad = JSON.parse(atob('{{.McAd}}')); window.in` +
`{{.Page}}'; window.ref = '{{.Referer}}'; window.mcad = {{.McAd}}; window.in` +
`ver = '{{.Inver}}'; </script></head><body><div id="c"></div><script async c` +
`rossorigin nomodule src="//std.wpcdn.pl/wpjslib/wpjslib-inline.js" id="wpjslib"></script><scrip` +
`t async crossorigin type="module" src="//std.wpcdn.pl/wpjslib6/wpjslib-inline.js" id="wpjslib6"` +
Expand Down Expand Up @@ -229,23 +228,18 @@ func getOriginalImpID(impID string, imps []openrtb2.Imp) (string, error) {
}

func (a *adapter) createBannerAd(bid openrtb2.Bid, ext responseExt, request *openrtb2.BidRequest, seat string) (string, error) {
var mcad mcAd

if strings.Contains(bid.AdM, "<!--preformatted-->") {
// Banner ad is already formatted
return bid.AdM, nil
}

// create McAd payload
mcad.Id = request.ID
mcad.Seat = seat
mcad.SeatBid = []openrtb2.SeatBid{
{Bid: []openrtb2.Bid{bid}},
}

mcMarshalled, err := json.Marshal(mcad)
if err != nil {
return "", err
var mcad = mcAd{
Id: request.ID,
Seat: seat,
SeatBid: []openrtb2.SeatBid{
{Bid: []openrtb2.Bid{bid}},
},
}

bannerData := &templatePayload{
Expand All @@ -255,7 +249,7 @@ func (a *adapter) createBannerAd(bid openrtb2.Bid, ext responseExt, request *ope
PubId: ext.PublisherId,
Page: request.Site.Page,
Referer: request.Site.Ref,
McAd: base64.URLEncoding.EncodeToString(mcMarshalled),
McAd: mcad,
Inver: prebidServerIntegrationType,
}

Expand Down
4 changes: 2 additions & 2 deletions adapters/sspBC/sspbctest/exemplary/banner-fromtemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://ssp.wp.test/bidder/?bdver=5.7&inver=4",
"uri": "http://ssp.wp.test/bidder/?bdver=5.8&inver=4",
"body": {
"id": "test-request",
"imp": [
Expand Down Expand Up @@ -129,7 +129,7 @@
"id": "response-005",
"impid": "slot",
"price": 20,
"adm": "<html><head><title><\/title><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><style> body { background-color: transparent; margin: 0; padding: 0; }<\/style><script> window.rekid = \"237503\"; window.slot = \"005\"; window.adlabel = 'Reklama'; window.pubid = '431'; window.wp_sn = 'sspbc_go'; window.page = 'https:\\\/\\\/test.page\\\/'; window.ref = 'https:\\\/\\\/test.referer\\\/'; window.mcad = JSON.parse(atob('eyJpZCI6InRlc3QtcmVxdWVzdCIsInNlYXQiOiJzc3BiYy10ZXN0Iiwic2VhdGJpZCI6W3siYmlkIjpbeyJpZCI6InJlc3BvbnNlLTAwNSIsImltcGlkIjoic2xvdCIsInByaWNlIjoyMCwiYWRtIjoic29tZS10ZXN0LWFkIiwiYWRvbWFpbiI6WyJzc3BiYy10ZXN0Il0sImNyaWQiOiIxMjM0IiwidyI6MzAwLCJoIjoyNTAsImV4dCI6eyJhZGxhYmVsIjoiUmVrbGFtYSIsInB1YmlkIjoiNDMxIiwic2l0ZWlkIjoiMjM3NTAzIiwic2xvdGlkIjoiMDA1IiwidGFnaWQiOiJzbG90In19XX1dfQ==')); window.inver = '4'; <\/script><\/head><body><div id=\"c\"><\/div><script async crossorigin nomodule src=\"\/\/std.wpcdn.pl\/wpjslib\/wpjslib-inline.js\" id=\"wpjslib\"><\/script><script async crossorigin type=\"module\" src=\"\/\/std.wpcdn.pl\/wpjslib6\/wpjslib-inline.js\" id=\"wpjslib6\"><\/script><\/body><\/html>",
"adm": "<html><head><title><\/title><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><style> body { background-color: transparent; margin: 0; padding: 0; }<\/style><script> window.rekid = \"237503\"; window.slot = \"005\"; window.adlabel = 'Reklama'; window.pubid = '431'; window.wp_sn = 'sspbc_go'; window.page = 'https:\\\/\\\/test.page\\\/'; window.ref = 'https:\\\/\\\/test.referer\\\/'; window.mcad = {\"id\":\"test-request\",\"seat\":\"sspbc-test\",\"seatbid\":[{\"bid\":[{\"id\":\"response-005\",\"impid\":\"slot\",\"price\":20,\"adm\":\"some-test-ad\",\"adomain\":[\"sspbc-test\"],\"crid\":\"1234\",\"w\":300,\"h\":250,\"ext\":{\"adlabel\":\"Reklama\",\"pubid\":\"431\",\"siteid\":\"237503\",\"slotid\":\"005\",\"tagid\":\"slot\"}}]}]}; window.inver = '4'; <\/script><\/head><body><div id=\"c\"><\/div><script async crossorigin nomodule src=\"\/\/std.wpcdn.pl\/wpjslib\/wpjslib-inline.js\" id=\"wpjslib\"><\/script><script async crossorigin type=\"module\" src=\"\/\/std.wpcdn.pl\/wpjslib6\/wpjslib-inline.js\" id=\"wpjslib6\"><\/script><\/body><\/html>",
"adomain": [
"sspbc-test"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://ssp.wp.test/bidder/?bdver=5.7&inver=4",
"uri": "http://ssp.wp.test/bidder/?bdver=5.8&inver=4",
"body": {
"id": "test-request",
"imp": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://ssp.wp.test/bidder/?bdver=5.7&inver=4",
"uri": "http://ssp.wp.test/bidder/?bdver=5.8&inver=4",
"body": {
"id": "test-request",
"imp": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://ssp.wp.test/bidder/?bdver=5.7&inver=4",
"uri": "http://ssp.wp.test/bidder/?bdver=5.8&inver=4",
"body": {
"id": "test-request",
"imp": [
Expand Down
2 changes: 1 addition & 1 deletion adapters/sspBC/sspbctest/supplemental/bad_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://ssp.wp.test/bidder/?bdver=5.7&inver=4",
"uri": "http://ssp.wp.test/bidder/?bdver=5.8&inver=4",
"body": {
"id": "test-request",
"imp": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://ssp.wp.test/bidder/?bdver=5.7&inver=4",
"uri": "http://ssp.wp.test/bidder/?bdver=5.8&inver=4",
"body": {
"id": "test-request",
"imp": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://ssp.wp.test/bidder/?bdver=5.7&inver=4",
"uri": "http://ssp.wp.test/bidder/?bdver=5.8&inver=4",
"body": {
"id": "test-request",
"imp": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://ssp.wp.test/bidder/?bdver=5.7&inver=4",
"uri": "http://ssp.wp.test/bidder/?bdver=5.8&inver=4",
"body": {
"id": "test-request",
"imp": [
Expand Down Expand Up @@ -130,7 +130,7 @@
"id": "response-005",
"impid": "slot",
"price": 20,
"adm": "<html><head><title><\/title><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><style> body { background-color: transparent; margin: 0; padding: 0; }<\/style><script> window.rekid = \"237503\"; window.slot = \"005\"; window.adlabel = 'Reklama'; window.pubid = '431'; window.wp_sn = 'sspbc_go'; window.page = 'https:\\\/\\\/test.page\\\/'; window.ref = 'https:\\\/\\\/test.referer\\\/'; window.mcad = JSON.parse(atob('eyJpZCI6InRlc3QtcmVxdWVzdCIsInNlYXQiOiJzc3BiYy10ZXN0Iiwic2VhdGJpZCI6W3siYmlkIjpbeyJpZCI6InJlc3BvbnNlLTAwNSIsImltcGlkIjoic2xvdCIsInByaWNlIjoyMCwiYWRtIjoie1wiYnVuY2hcIjpcIjIzNzUwM1wiLFwiY2FwcGluZ1wiOlwiXCIsXCJzZXJ2ZXJcIjpcInNcIixcImNhbXBhaWduXCI6XCJjXCIsXCJzY29yZVwiOlwiMVwiLFwiY3JlYXRpb25zXCI6W3tcInR5cGVcIjpcImltYWdlXCIsXCJzcmNcIjpcImh0dHBzOi8vYmRyLndwY2RuLnBsL3Rlc3RzL3Rlc3QtMzAweDI1MC5wbmdcIixcInRyYWNrZXJzXCI6e30sXCJ3aWR0aFwiOjMwMCxcImhlaWdodFwiOjI1MH1dLFwiY29kZVwiOlwiMVwiLFwiYWFiVmVuZG9yc1wiOmZhbHNlLFwic2xvdFwiOlwiMDA1XCIsXCJyZWRpclwiOlwiaHR0cHM6Ly93d3cud3AucGxcIixcIndwY2xpZFwiOlwiMVwifSIsImFkb21haW4iOlsic3NwYmMtdGVzdCJdLCJjcmlkIjoiMTIzNCIsInciOjMwMCwiaCI6MjUwLCJleHQiOnsiYWRsYWJlbCI6IlJla2xhbWEiLCJwdWJpZCI6IjQzMSIsInNpdGVpZCI6IjIzNzUwMyIsInNsb3RpZCI6IjAwNSIsInRhZ2lkIjoic2xvdCJ9fV19XX0=')); window.inver = '4'; <\/script><\/head><body><div id=\"c\"><\/div><script async crossorigin nomodule src=\"\/\/std.wpcdn.pl\/wpjslib\/wpjslib-inline.js\" id=\"wpjslib\"><\/script><script async crossorigin type=\"module\" src=\"\/\/std.wpcdn.pl\/wpjslib6\/wpjslib-inline.js\" id=\"wpjslib6\"><\/script><\/body><\/html>",
"adm": "<html><head><title><\/title><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><style> body { background-color: transparent; margin: 0; padding: 0; }<\/style><script> window.rekid = \"237503\"; window.slot = \"005\"; window.adlabel = 'Reklama'; window.pubid = '431'; window.wp_sn = 'sspbc_go'; window.page = 'https:\\\/\\\/test.page\\\/'; window.ref = 'https:\\\/\\\/test.referer\\\/'; window.mcad = {\"id\":\"test-request\",\"seat\":\"sspbc-test\",\"seatbid\":[{\"bid\":[{\"id\":\"response-005\",\"impid\":\"slot\",\"price\":20,\"adm\":\"{\\\"bunch\\\":\\\"237503\\\",\\\"capping\\\":\\\"\\\",\\\"server\\\":\\\"s\\\",\\\"campaign\\\":\\\"c\\\",\\\"score\\\":\\\"1\\\",\\\"creations\\\":[{\\\"type\\\":\\\"image\\\",\\\"src\\\":\\\"https://bdr.wpcdn.pl/tests/test-300x250.png\\\",\\\"trackers\\\":{},\\\"width\\\":300,\\\"height\\\":250}],\\\"code\\\":\\\"1\\\",\\\"aabVendors\\\":false,\\\"slot\\\":\\\"005\\\",\\\"redir\\\":\\\"https://www.wp.pl\\\",\\\"wpclid\\\":\\\"1\\\"}\",\"adomain\":[\"sspbc-test\"],\"crid\":\"1234\",\"w\":300,\"h\":250,\"ext\":{\"adlabel\":\"Reklama\",\"pubid\":\"431\",\"siteid\":\"237503\",\"slotid\":\"005\",\"tagid\":\"slot\"}}]}]}; window.inver = '4'; <\/script><\/head><body><div id=\"c\"><\/div><script async crossorigin nomodule src=\"\/\/std.wpcdn.pl\/wpjslib\/wpjslib-inline.js\" id=\"wpjslib\"><\/script><script async crossorigin type=\"module\" src=\"\/\/std.wpcdn.pl\/wpjslib6\/wpjslib-inline.js\" id=\"wpjslib6\"><\/script><\/body><\/html>",
"adomain": [
"sspbc-test"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://ssp.wp.test/bidder/?bdver=5.7&inver=4",
"uri": "http://ssp.wp.test/bidder/?bdver=5.8&inver=4",
"body": {
"id": "test-request",
"imp": [
Expand Down Expand Up @@ -125,7 +125,7 @@
"id": "response-005",
"impid": "slot",
"price": 20,
"adm": "<html><head><title><\/title><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><style> body { background-color: transparent; margin: 0; padding: 0; }<\/style><script> window.rekid = \"237503\"; window.slot = \"005\"; window.adlabel = 'Reklama'; window.pubid = '431'; window.wp_sn = 'sspbc_go'; window.page = 'https:\\\/\\\/test.page\\\/'; window.ref = 'https:\\\/\\\/test.referer\\\/'; window.mcad = JSON.parse(atob('eyJpZCI6InRlc3QtcmVxdWVzdCIsInNlYXQiOiJzc3BiYy10ZXN0Iiwic2VhdGJpZCI6W3siYmlkIjpbeyJpZCI6InJlc3BvbnNlLTAwNSIsImltcGlkIjoic2xvdCIsInByaWNlIjoyMCwiYWRtIjoie1wiYnVuY2hcIjpcIjIzNzUwM1wiLFwiY2FwcGluZ1wiOlwiXCIsXCJzZXJ2ZXJcIjpcInNcIixcImNhbXBhaWduXCI6XCJjXCIsXCJzY29yZVwiOlwiMVwiLFwiY3JlYXRpb25zXCI6W3tcInR5cGVcIjpcImltYWdlXCIsXCJzcmNcIjpcImh0dHBzOi8vYmRyLndwY2RuLnBsL3Rlc3RzL3Rlc3QtMzAweDI1MC5wbmdcIixcInRyYWNrZXJzXCI6e30sXCJ3aWR0aFwiOjMwMCxcImhlaWdodFwiOjI1MH1dLFwiY29kZVwiOlwiMVwiLFwiYWFiVmVuZG9yc1wiOmZhbHNlLFwic2xvdFwiOlwiMDA1XCIsXCJyZWRpclwiOlwiaHR0cHM6Ly93d3cud3AucGxcIixcIndwY2xpZFwiOlwiMVwifSIsImFkb21haW4iOlsic3NwYmMtdGVzdCJdLCJjcmlkIjoiMTIzNCIsInciOjMwMCwiaCI6MjUwLCJleHQiOnsiYWRsYWJlbCI6IlJla2xhbWEiLCJwdWJpZCI6IjQzMSIsInNpdGVpZCI6IjIzNzUwMyIsInNsb3RpZCI6IjAwNSIsInRhZ2lkIjoic2xvdCJ9fV19XX0=')); window.inver = '4'; <\/script><\/head><body><div id=\"c\"><\/div><script async crossorigin nomodule src=\"\/\/std.wpcdn.pl\/wpjslib\/wpjslib-inline.js\" id=\"wpjslib\"><\/script><script async crossorigin type=\"module\" src=\"\/\/std.wpcdn.pl\/wpjslib6\/wpjslib-inline.js\" id=\"wpjslib6\"><\/script><\/body><\/html>",
"adm": "<html><head><title><\/title><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><style> body { background-color: transparent; margin: 0; padding: 0; }<\/style><script> window.rekid = \"237503\"; window.slot = \"005\"; window.adlabel = 'Reklama'; window.pubid = '431'; window.wp_sn = 'sspbc_go'; window.page = 'https:\\\/\\\/test.page\\\/'; window.ref = 'https:\\\/\\\/test.referer\\\/'; window.mcad = {\"id\":\"test-request\",\"seat\":\"sspbc-test\",\"seatbid\":[{\"bid\":[{\"id\":\"response-005\",\"impid\":\"slot\",\"price\":20,\"adm\":\"{\\\"bunch\\\":\\\"237503\\\",\\\"capping\\\":\\\"\\\",\\\"server\\\":\\\"s\\\",\\\"campaign\\\":\\\"c\\\",\\\"score\\\":\\\"1\\\",\\\"creations\\\":[{\\\"type\\\":\\\"image\\\",\\\"src\\\":\\\"https://bdr.wpcdn.pl/tests/test-300x250.png\\\",\\\"trackers\\\":{},\\\"width\\\":300,\\\"height\\\":250}],\\\"code\\\":\\\"1\\\",\\\"aabVendors\\\":false,\\\"slot\\\":\\\"005\\\",\\\"redir\\\":\\\"https://www.wp.pl\\\",\\\"wpclid\\\":\\\"1\\\"}\",\"adomain\":[\"sspbc-test\"],\"crid\":\"1234\",\"w\":300,\"h\":250,\"ext\":{\"adlabel\":\"Reklama\",\"pubid\":\"431\",\"siteid\":\"237503\",\"slotid\":\"005\",\"tagid\":\"slot\"}}]}]}; window.inver = '4'; <\/script><\/head><body><div id=\"c\"><\/div><script async crossorigin nomodule src=\"\/\/std.wpcdn.pl\/wpjslib\/wpjslib-inline.js\" id=\"wpjslib\"><\/script><script async crossorigin type=\"module\" src=\"\/\/std.wpcdn.pl\/wpjslib6\/wpjslib-inline.js\" id=\"wpjslib6\"><\/script><\/body><\/html>",
"adomain": [
"sspbc-test"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://ssp.wp.test/bidder/?bdver=5.7&inver=4",
"uri": "http://ssp.wp.test/bidder/?bdver=5.8&inver=4",
"body": {
"id": "test-request",
"imp": [
Expand Down Expand Up @@ -123,7 +123,7 @@
"id": "response-005",
"impid": "slot",
"price": 20,
"adm": "<html><head><title><\/title><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><style> body { background-color: transparent; margin: 0; padding: 0; }<\/style><script> window.rekid = \"237503\"; window.slot = \"005\"; window.adlabel = 'Reklama'; window.pubid = '431'; window.wp_sn = 'sspbc_go'; window.page = 'https:\\\/\\\/test.page\\\/'; window.ref = 'https:\\\/\\\/test.referer\\\/'; window.mcad = JSON.parse(atob('eyJpZCI6InRlc3QtcmVxdWVzdCIsInNlYXQiOiJzc3BiYy10ZXN0Iiwic2VhdGJpZCI6W3siYmlkIjpbeyJpZCI6InJlc3BvbnNlLTAwNSIsImltcGlkIjoic2xvdCIsInByaWNlIjoyMCwiYWRtIjoie1wiYnVuY2hcIjpcIjIzNzUwM1wiLFwiY2FwcGluZ1wiOlwiXCIsXCJzZXJ2ZXJcIjpcInNcIixcImNhbXBhaWduXCI6XCJjXCIsXCJzY29yZVwiOlwiMVwiLFwiY3JlYXRpb25zXCI6W3tcInR5cGVcIjpcImltYWdlXCIsXCJzcmNcIjpcImh0dHBzOi8vYmRyLndwY2RuLnBsL3Rlc3RzL3Rlc3QtMzAweDI1MC5wbmdcIixcInRyYWNrZXJzXCI6e30sXCJ3aWR0aFwiOjMwMCxcImhlaWdodFwiOjI1MH1dLFwiY29kZVwiOlwiMVwiLFwiYWFiVmVuZG9yc1wiOmZhbHNlLFwic2xvdFwiOlwiMDA1XCIsXCJyZWRpclwiOlwiaHR0cHM6Ly93d3cud3AucGxcIixcIndwY2xpZFwiOlwiMVwifSIsImFkb21haW4iOlsic3NwYmMtdGVzdCJdLCJjcmlkIjoiMTIzNCIsInciOjMwMCwiaCI6MjUwLCJleHQiOnsiYWRsYWJlbCI6IlJla2xhbWEiLCJwdWJpZCI6IjQzMSIsInNpdGVpZCI6IjIzNzUwMyIsInNsb3RpZCI6IjAwNSIsInRhZ2lkIjoic2xvdCJ9fV19XX0=')); window.inver = '4'; <\/script><\/head><body><div id=\"c\"><\/div><script async crossorigin nomodule src=\"\/\/std.wpcdn.pl\/wpjslib\/wpjslib-inline.js\" id=\"wpjslib\"><\/script><script async crossorigin type=\"module\" src=\"\/\/std.wpcdn.pl\/wpjslib6\/wpjslib-inline.js\" id=\"wpjslib6\"><\/script><\/body><\/html>",
"adm": "<html><head><title><\/title><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><style> body { background-color: transparent; margin: 0; padding: 0; }<\/style><script> window.rekid = \"237503\"; window.slot = \"005\"; window.adlabel = 'Reklama'; window.pubid = '431'; window.wp_sn = 'sspbc_go'; window.page = 'https:\\\/\\\/test.page\\\/'; window.ref = 'https:\\\/\\\/test.referer\\\/'; window.mcad = {\"id\":\"test-request\",\"seat\":\"sspbc-test\",\"seatbid\":[{\"bid\":[{\"id\":\"response-005\",\"impid\":\"slot\",\"price\":20,\"adm\":\"{\\\"bunch\\\":\\\"237503\\\",\\\"capping\\\":\\\"\\\",\\\"server\\\":\\\"s\\\",\\\"campaign\\\":\\\"c\\\",\\\"score\\\":\\\"1\\\",\\\"creations\\\":[{\\\"type\\\":\\\"image\\\",\\\"src\\\":\\\"https://bdr.wpcdn.pl/tests/test-300x250.png\\\",\\\"trackers\\\":{},\\\"width\\\":300,\\\"height\\\":250}],\\\"code\\\":\\\"1\\\",\\\"aabVendors\\\":false,\\\"slot\\\":\\\"005\\\",\\\"redir\\\":\\\"https://www.wp.pl\\\",\\\"wpclid\\\":\\\"1\\\"}\",\"adomain\":[\"sspbc-test\"],\"crid\":\"1234\",\"w\":300,\"h\":250,\"ext\":{\"adlabel\":\"Reklama\",\"pubid\":\"431\",\"siteid\":\"237503\",\"slotid\":\"005\",\"tagid\":\"slot\"}}]}]}; window.inver = '4'; <\/script><\/head><body><div id=\"c\"><\/div><script async crossorigin nomodule src=\"\/\/std.wpcdn.pl\/wpjslib\/wpjslib-inline.js\" id=\"wpjslib\"><\/script><script async crossorigin type=\"module\" src=\"\/\/std.wpcdn.pl\/wpjslib6\/wpjslib-inline.js\" id=\"wpjslib6\"><\/script><\/body><\/html>",
"adomain": [
"sspbc-test"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://ssp.wp.test/bidder/?bdver=5.7&inver=4",
"uri": "http://ssp.wp.test/bidder/?bdver=5.8&inver=4",
"body": {
"id": "test-request",
"imp": [
Expand Down
Loading