github.com/prebid/prebid-server@v0.275.0/adapters/smaato/smaatotest/exemplary/multiple-media-types.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          "video": {
    35            "mimes": [
    36              "video/mp4",
    37              "video/quicktime",
    38              "video/3gpp",
    39              "video/x-m4v"
    40            ],
    41            "minduration": 5,
    42            "maxduration": 30,
    43            "protocols": [
    44              7
    45            ],
    46            "w": 1024,
    47            "h": 768,
    48            "startdelay": 0,
    49            "linearity": 1,
    50            "skip": 1,
    51            "skipmin": 5,
    52            "api": [
    53              7
    54            ],
    55            "ext": {
    56              "rewarded": 0
    57            }
    58          },
    59          "bidfloor": 0.00123,
    60          "ext": {
    61            "bidder": {
    62              "publisherId": "1100042525",
    63              "adspaceId": "130563103"
    64            }
    65          }
    66        }
    67      ],
    68      "device": {
    69        "ua": "test-user-agent",
    70        "ip": "123.123.123.123",
    71        "language": "en",
    72        "dnt": 0
    73      },
    74      "user": {
    75        "ext": {
    76          "consent": "gdprConsentString",
    77          "data": {
    78            "keywords": "a,b",
    79            "gender": "M",
    80            "yob": 1984,
    81            "geo": {
    82              "country": "ca"
    83            }
    84          }
    85        }
    86      },
    87      "regs": {
    88        "coppa": 1,
    89        "ext": {
    90          "gdpr": 1,
    91          "us_privacy": "uspConsentString"
    92        }
    93      }
    94    },
    95    "httpCalls": [
    96      {
    97        "expectedRequest": {
    98          "headers": {
    99            "Content-Type": ["application/json;charset=utf-8"],
   100            "Accept": ["application/json"]
   101          },
   102          "uri": "https://prebid/bidder",
   103          "body": {
   104            "id": "1C86242D-9535-47D6-9576-7B1FE87F282C",
   105            "imp": [
   106              {
   107                "id": "1C86242D-9535-47D6-9576-7B1FE87F282C",
   108                "tagid": "130563103",
   109                "bidfloor": 0.00123,
   110                "banner": {
   111                  "h": 50,
   112                  "w": 320,
   113                  "format": [
   114                    {
   115                      "w": 320,
   116                      "h": 50
   117                    },
   118                    {
   119                      "w": 320,
   120                      "h": 250
   121                    }
   122                  ]
   123                }
   124              }
   125            ],
   126            "user": {
   127              "ext": {
   128                "consent": "gdprConsentString"
   129              },
   130              "gender": "M",
   131              "keywords": "a,b",
   132              "yob": 1984
   133            },
   134            "device": {
   135              "ua": "test-user-agent",
   136              "ip": "123.123.123.123",
   137              "language": "en",
   138              "dnt": 0
   139            },
   140            "regs": {
   141              "coppa": 1,
   142              "ext": {
   143                "gdpr": 1,
   144                "us_privacy": "uspConsentString"
   145              }
   146            },
   147            "site": {
   148              "publisher": {
   149                "id": "1100042525"
   150              },
   151              "page": "http://localhost:3000/server.html?pbjs_debug=true&endpoint=http://localhost:3000/bidder",
   152              "keywords": "power tools"
   153            },
   154            "ext": {
   155              "client": "prebid_server_0.6"
   156            }
   157          }
   158        },
   159        "mockResponse": {
   160          "status": 200,
   161          "body": {
   162            "id": "5ebea288-f13a-4754-be6d-4ade66c68877",
   163            "seatbid": [
   164              {
   165                "seat": "CM6523",
   166                "bid": [
   167                  {
   168                    "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\"]}}",
   169                    "adomain": [
   170                      "smaato.com"
   171                    ],
   172                    "bidderName": "smaato",
   173                    "cid": "CM6523",
   174                    "crid": "CR69381",
   175                    "id": "6906aae8-7f74-4edd-9a4f-f49379a3cadd",
   176                    "impid": "1C86242D-9535-47D6-9576-7B1FE87F282C",
   177                    "iurl": "https://bidstalkcreatives.s3.amazonaws.com/1x1.png",
   178                    "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",
   179                    "price": 0.01,
   180                    "w": 350,
   181                    "h": 50
   182                  }
   183                ]
   184              }
   185            ],
   186            "bidid": "04db8629-179d-4bcd-acce-e54722969006",
   187            "cur": "USD"
   188          }
   189        }
   190      },
   191      {
   192        "expectedRequest": {
   193          "headers": {
   194            "Content-Type": ["application/json;charset=utf-8"],
   195            "Accept": ["application/json"]
   196          },
   197          "uri": "https://prebid/bidder",
   198          "body": {
   199            "id": "1C86242D-9535-47D6-9576-7B1FE87F282C",
   200            "imp": [
   201              {
   202                "id": "1C86242D-9535-47D6-9576-7B1FE87F282C",
   203                "tagid": "130563103",
   204                "bidfloor": 0.00123,
   205                "video": {
   206                  "w": 1024,
   207                  "h": 768,
   208                  "ext": {
   209                    "rewarded": 0
   210                  },
   211                  "mimes": [
   212                    "video/mp4",
   213                    "video/quicktime",
   214                    "video/3gpp",
   215                    "video/x-m4v"
   216                  ],
   217                  "minduration": 5,
   218                  "startdelay": 0,
   219                  "linearity": 1,
   220                  "maxduration": 30,
   221                  "skip": 1,
   222                  "protocols": [
   223                    7
   224                  ],
   225                  "skipmin": 5,
   226                  "api": [
   227                    7
   228                  ]
   229                }
   230              }
   231            ],
   232            "user": {
   233              "ext": {
   234                "consent": "gdprConsentString"
   235              },
   236              "gender": "M",
   237              "keywords": "a,b",
   238              "yob": 1984
   239            },
   240            "device": {
   241              "ua": "test-user-agent",
   242              "ip": "123.123.123.123",
   243              "language": "en",
   244              "dnt": 0
   245            },
   246            "regs": {
   247              "coppa": 1,
   248              "ext": {
   249                "gdpr": 1,
   250                "us_privacy": "uspConsentString"
   251              }
   252            },
   253            "site": {
   254              "publisher": {
   255                "id": "1100042525"
   256              },
   257              "page": "http://localhost:3000/server.html?pbjs_debug=true&endpoint=http://localhost:3000/bidder",
   258              "keywords": "power tools"
   259            },
   260            "ext": {
   261              "client": "prebid_server_0.6"
   262            }
   263          }
   264        },
   265        "mockResponse": {
   266          "status": 200,
   267          "body": {
   268            "id": "5ebea288-f13a-4754-be6d-4ade66c68877",
   269            "seatbid": [
   270              {
   271                "seat": "CM6523",
   272                "bid": [
   273                  {
   274                    "adm": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><VAST version=\"2.0\"></VAST>",
   275                    "adomain": [
   276                      "smaato.com"
   277                    ],
   278                    "bidderName": "smaato",
   279                    "cid": "CM6523",
   280                    "crid": "CR69381",
   281                    "id": "6906aae8-7f74-4edd-9a4f-f49379a3cadd",
   282                    "impid": "1C86242D-9535-47D6-9576-7B1FE87F282C",
   283                    "iurl": "https://iurl",
   284                    "nurl": "https://nurl",
   285                    "price": 0.01,
   286                    "w": 1024,
   287                    "h": 768
   288                  }
   289                ]
   290              }
   291            ],
   292            "bidid": "04db8629-179d-4bcd-acce-e54722969006",
   293            "cur": "USD"
   294          }
   295        }
   296      }
   297    ],
   298    "expectedBidResponses": [
   299      {
   300        "currency": "USD",
   301        "bids": [
   302          {
   303            "bid": {
   304              "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>",
   305              "adomain": [
   306                "smaato.com"
   307              ],
   308              "cid": "CM6523",
   309              "crid": "CR69381",
   310              "id": "6906aae8-7f74-4edd-9a4f-f49379a3cadd",
   311              "impid": "1C86242D-9535-47D6-9576-7B1FE87F282C",
   312              "iurl": "https://bidstalkcreatives.s3.amazonaws.com/1x1.png",
   313              "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",
   314              "price": 0.01,
   315              "w": 350,
   316              "h": 50,
   317              "exp": 300
   318            },
   319            "type": "banner"
   320          }
   321        ]
   322      },
   323      {
   324        "currency": "USD",
   325        "bids": [
   326          {
   327            "bid": {
   328              "adm": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><VAST version=\"2.0\"></VAST>",
   329              "adomain": [
   330                "smaato.com"
   331              ],
   332              "cid": "CM6523",
   333              "crid": "CR69381",
   334              "id": "6906aae8-7f74-4edd-9a4f-f49379a3cadd",
   335              "impid": "1C86242D-9535-47D6-9576-7B1FE87F282C",
   336              "iurl": "https://iurl",
   337              "nurl": "https://nurl",
   338              "price": 0.01,
   339              "w": 1024,
   340              "h": 768,
   341              "exp": 300
   342            },
   343            "type": "video"
   344          }
   345        ]
   346      }
   347    ]
   348  }