github.com/prebid/prebid-server@v0.275.0/adapters/smaato/smaatotest/exemplary/multiple-impressions.json (about)

     1  {
     2    "mockBidRequest": {
     3      "id": "1C86242D-9535-47D6-9576-7B1FE87F282C",
     4      "site": {
     5        "publisher": {
     6          "id": "1100042525"
     7        },
     8        "page": "http://localhost:3000/server.html?pbjs_debug=true&endpoint=http://localhost:3000/bidder",
     9        "ext": {
    10          "data": {
    11            "keywords": "power tools",
    12            "search": "drill",
    13            "content": {
    14              "userrating": 4
    15            }
    16          }
    17        }
    18      },
    19      "imp": [
    20        {
    21          "id": "1C86242D-9535-47D6-9576-7B1FE87F282C",
    22          "banner": {
    23            "format": [
    24              {
    25                "w": 320,
    26                "h": 50
    27              },
    28              {
    29                "w": 320,
    30                "h": 250
    31              }
    32            ]
    33          },
    34          "bidfloor": 0.00123,
    35          "ext": {
    36            "bidder": {
    37              "publisherId": "1100042525",
    38              "adspaceId": "130563103"
    39            }
    40          }
    41        },
    42        {
    43          "id": "postbid_iframe",
    44          "video": {
    45            "mimes": [
    46              "video/mp4",
    47              "video/quicktime",
    48              "video/3gpp",
    49              "video/x-m4v"
    50            ],
    51            "minduration": 5,
    52            "maxduration": 30,
    53            "protocols": [
    54              7
    55            ],
    56            "w": 1024,
    57            "h": 768,
    58            "startdelay": 0,
    59            "linearity": 1,
    60            "skip": 1,
    61            "skipmin": 5,
    62            "api": [
    63              7
    64            ],
    65            "ext": {
    66              "rewarded": 0
    67            }
    68          },
    69          "bidfloor": 0.00456,
    70          "ext": {
    71            "bidder": {
    72              "publisherId": "1100042526",
    73              "adspaceId": "130563104"
    74            }
    75          }
    76        }
    77      ],
    78      "device": {
    79        "ua": "test-user-agent",
    80        "ip": "123.123.123.123",
    81        "language": "en",
    82        "dnt": 0
    83      },
    84      "user": {
    85        "ext": {
    86          "consent": "gdprConsentString",
    87          "data": {
    88            "keywords": "a,b",
    89            "gender": "M",
    90            "yob": 1984,
    91            "geo": {
    92              "country": "ca"
    93            }
    94          }
    95        }
    96      },
    97      "regs": {
    98        "coppa": 1,
    99        "ext": {
   100          "gdpr": 1,
   101          "us_privacy": "uspConsentString"
   102        }
   103      }
   104    },
   105    "httpCalls": [
   106      {
   107        "expectedRequest": {
   108          "headers": {
   109            "Content-Type": ["application/json;charset=utf-8"],
   110            "Accept": ["application/json"]
   111          },
   112          "uri": "https://prebid/bidder",
   113          "body": {
   114            "id": "1C86242D-9535-47D6-9576-7B1FE87F282C",
   115            "imp": [
   116              {
   117                "id": "1C86242D-9535-47D6-9576-7B1FE87F282C",
   118                "tagid": "130563103",
   119                "bidfloor": 0.00123,
   120                "banner": {
   121                  "h": 50,
   122                  "w": 320,
   123                  "format": [
   124                    {
   125                      "w": 320,
   126                      "h": 50
   127                    },
   128                    {
   129                      "w": 320,
   130                      "h": 250
   131                    }
   132                  ]
   133                }
   134              }
   135            ],
   136            "user": {
   137              "ext": {
   138                "consent": "gdprConsentString"
   139              },
   140              "gender": "M",
   141              "keywords": "a,b",
   142              "yob": 1984
   143            },
   144            "device": {
   145              "ua": "test-user-agent",
   146              "ip": "123.123.123.123",
   147              "language": "en",
   148              "dnt": 0
   149            },
   150            "regs": {
   151              "coppa": 1,
   152              "ext": {
   153                "gdpr": 1,
   154                "us_privacy": "uspConsentString"
   155              }
   156            },
   157            "site": {
   158              "publisher": {
   159                "id": "1100042525"
   160              },
   161              "page": "http://localhost:3000/server.html?pbjs_debug=true&endpoint=http://localhost:3000/bidder",
   162              "keywords": "power tools"
   163            },
   164            "ext": {
   165              "client": "prebid_server_0.6"
   166            }
   167          }
   168        },
   169        "mockResponse": {
   170          "status": 200,
   171          "body": {
   172            "id": "5ebea288-f13a-4754-be6d-4ade66c68877",
   173            "seatbid": [
   174              {
   175                "seat": "CM6523",
   176                "bid": [
   177                  {
   178                    "adm": "{\"image\":{\"img\":{\"url\":\"//prebid-test.smaatolabs.net/img/320x50.jpg\",\"w\":350,\"h\":50,\"ctaurl\":\"//prebid-test.smaatolabs.net/track/ctaurl/1\"},\"impressiontrackers\":[\"//prebid-test.smaatolabs.net/track/imp/1\",\"//prebid-test.smaatolabs.net/track/imp/2\"],\"clicktrackers\":[\"//prebid-test.smaatolabs.net/track/click/1\",\"//prebid-test.smaatolabs.net/track/click/2\"]}}",
   179                    "adomain": [
   180                      "smaato.com"
   181                    ],
   182                    "bidderName": "smaato",
   183                    "cid": "CM6523",
   184                    "crid": "CR69381",
   185                    "id": "6906aae8-7f74-4edd-9a4f-f49379a3cadd",
   186                    "impid": "1C86242D-9535-47D6-9576-7B1FE87F282C",
   187                    "iurl": "https://bidstalkcreatives.s3.amazonaws.com/1x1.png",
   188                    "nurl": "https://ets-eu-west-1.track.smaato.net/v1/view?sessionId=e4e17adb-9599-42b1-bb5f-a1f1b3bee572&adSourceId=6906aae8-7f74-4edd-9a4f-f49379a3cadd&originalRequestTime=1552310449698&expires=1552311350698&winurl=ama8JbpJVpFWxvEja5viE3cLXFu58qRI8dGUh23xtsOn3N2-5UU0IwkgNEmR82pI37fcMXejL5IWTNAoW6Cnsjf-Dxl_vx2dUqMrVEevX-Vdx2VVnf-D5f73gZhvi4t36iPL8Dsw4aACekoLvVOV7-eXDjz7GHy60QFqcwKf5g2AlKPOInyZ6vJg_fn4qA9argvCRgwVybXE9Ndm2W0v8La4uFYWpJBOUveDDUrSQfzal7RsYvLb_OyaMlPHdrd_bwA9qqZWuyJXd-L9lxr7RQ%3D%3D%7CMw3kt91KJR0Uy5L-oNztAg%3D%3D&dpid=4XVofb_lH-__hr2JNGhKfg%3D%3D%7Cr9ciCU1cx3zmHXihItKO0g%3D%3D",
   189                    "price": 0.01,
   190                    "w": 350,
   191                    "h": 50
   192                  }
   193                ]
   194              }
   195            ],
   196            "bidid": "04db8629-179d-4bcd-acce-e54722969006",
   197            "cur": "USD"
   198          }
   199        }
   200      },
   201      {
   202        "expectedRequest": {
   203          "headers": {
   204            "Content-Type": ["application/json;charset=utf-8"],
   205            "Accept": ["application/json"]
   206          },
   207          "uri": "https://prebid/bidder",
   208          "body": {
   209            "id": "1C86242D-9535-47D6-9576-7B1FE87F282C",
   210            "imp": [
   211              {
   212                "id": "postbid_iframe",
   213                "tagid": "130563104",
   214                "bidfloor": 0.00456,
   215                "video": {
   216                  "w": 1024,
   217                  "h": 768,
   218                  "ext": {
   219                    "rewarded": 0
   220                  },
   221                  "mimes": [
   222                    "video/mp4",
   223                    "video/quicktime",
   224                    "video/3gpp",
   225                    "video/x-m4v"
   226                  ],
   227                  "minduration": 5,
   228                  "startdelay": 0,
   229                  "linearity": 1,
   230                  "maxduration": 30,
   231                  "skip": 1,
   232                  "protocols": [
   233                    7
   234                  ],
   235                  "skipmin": 5,
   236                  "api": [
   237                    7
   238                  ]
   239                }
   240              }
   241            ],
   242            "user": {
   243              "ext": {
   244                "consent": "gdprConsentString"
   245              },
   246              "gender": "M",
   247              "keywords": "a,b",
   248              "yob": 1984
   249            },
   250            "device": {
   251              "ua": "test-user-agent",
   252              "ip": "123.123.123.123",
   253              "language": "en",
   254              "dnt": 0
   255            },
   256            "regs": {
   257              "coppa": 1,
   258              "ext": {
   259                "gdpr": 1,
   260                "us_privacy": "uspConsentString"
   261              }
   262            },
   263            "site": {
   264              "publisher": {
   265                "id": "1100042526"
   266              },
   267              "page": "http://localhost:3000/server.html?pbjs_debug=true&endpoint=http://localhost:3000/bidder",
   268              "keywords": "power tools"
   269            },
   270            "ext": {
   271              "client": "prebid_server_0.6"
   272            }
   273          }
   274        },
   275        "mockResponse": {
   276          "status": 200,
   277          "body": {
   278            "id": "5ebea288-f13a-4754-be6d-4ade66c68877",
   279            "seatbid": [
   280              {
   281                "seat": "CM6523",
   282                "bid": [
   283                  {
   284                    "adm": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><VAST version=\"2.0\"></VAST>",
   285                    "adomain": [
   286                      "smaato.com"
   287                    ],
   288                    "bidderName": "smaato",
   289                    "cid": "CM6524",
   290                    "crid": "CR69382",
   291                    "id": "6906aae8-7f74-4edd-9a4f-f49379a3cadd",
   292                    "impid": "postbid_iframe",
   293                    "iurl": "https://iurl",
   294                    "nurl": "https://nurl",
   295                    "price": 0.01,
   296                    "w": 1024,
   297                    "h": 768
   298                  }
   299                ]
   300              }
   301            ],
   302            "bidid": "04db8629-179d-4bcd-acce-e54722969006",
   303            "cur": "USD"
   304          }
   305        }
   306      }
   307    ],
   308    "expectedBidResponses": [
   309      {
   310        "currency": "USD",
   311        "bids": [
   312          {
   313            "bid": {
   314              "adm": "<div style=\"cursor:pointer\" onclick=\"fetch(decodeURIComponent('%2F%2Fprebid-test.smaatolabs.net%2Ftrack%2Fclick%2F1'.replace(/\\+/g, ' ')), {cache: 'no-cache'});fetch(decodeURIComponent('%2F%2Fprebid-test.smaatolabs.net%2Ftrack%2Fclick%2F2'.replace(/\\+/g, ' ')), {cache: 'no-cache'});;window.open(decodeURIComponent('%2F%2Fprebid-test.smaatolabs.net%2Ftrack%2Fctaurl%2F1'.replace(/\\+/g, ' ')));\"><img src=\"//prebid-test.smaatolabs.net/img/320x50.jpg\" width=\"350\" height=\"50\"/><img src=\"//prebid-test.smaatolabs.net/track/imp/1\" alt=\"\" width=\"0\" height=\"0\"/><img src=\"//prebid-test.smaatolabs.net/track/imp/2\" alt=\"\" width=\"0\" height=\"0\"/></div>",
   315              "adomain": [
   316                "smaato.com"
   317              ],
   318              "cid": "CM6523",
   319              "crid": "CR69381",
   320              "id": "6906aae8-7f74-4edd-9a4f-f49379a3cadd",
   321              "impid": "1C86242D-9535-47D6-9576-7B1FE87F282C",
   322              "iurl": "https://bidstalkcreatives.s3.amazonaws.com/1x1.png",
   323              "nurl": "https://ets-eu-west-1.track.smaato.net/v1/view?sessionId=e4e17adb-9599-42b1-bb5f-a1f1b3bee572&adSourceId=6906aae8-7f74-4edd-9a4f-f49379a3cadd&originalRequestTime=1552310449698&expires=1552311350698&winurl=ama8JbpJVpFWxvEja5viE3cLXFu58qRI8dGUh23xtsOn3N2-5UU0IwkgNEmR82pI37fcMXejL5IWTNAoW6Cnsjf-Dxl_vx2dUqMrVEevX-Vdx2VVnf-D5f73gZhvi4t36iPL8Dsw4aACekoLvVOV7-eXDjz7GHy60QFqcwKf5g2AlKPOInyZ6vJg_fn4qA9argvCRgwVybXE9Ndm2W0v8La4uFYWpJBOUveDDUrSQfzal7RsYvLb_OyaMlPHdrd_bwA9qqZWuyJXd-L9lxr7RQ%3D%3D%7CMw3kt91KJR0Uy5L-oNztAg%3D%3D&dpid=4XVofb_lH-__hr2JNGhKfg%3D%3D%7Cr9ciCU1cx3zmHXihItKO0g%3D%3D",
   324              "price": 0.01,
   325              "w": 350,
   326              "h": 50,
   327              "exp": 300
   328            },
   329            "type": "banner"
   330          }
   331        ]
   332      },
   333      {
   334        "currency": "USD",
   335        "bids": [
   336          {
   337            "bid": {
   338              "adm": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><VAST version=\"2.0\"></VAST>",
   339              "adomain": [
   340                "smaato.com"
   341              ],
   342              "cid": "CM6524",
   343              "crid": "CR69382",
   344              "id": "6906aae8-7f74-4edd-9a4f-f49379a3cadd",
   345              "impid": "postbid_iframe",
   346              "iurl": "https://iurl",
   347              "nurl": "https://nurl",
   348              "price": 0.01,
   349              "w": 1024,
   350              "h": 768,
   351              "exp": 300
   352            },
   353            "type": "video"
   354          }
   355        ]
   356      }
   357    ]
   358  }