github.com/prebid/prebid-server/v2@v2.18.0/adapters/yieldlab/yieldlabtest/exemplary/dsa.json (about)

     1  {
     2    "mockBidRequest": {
     3      "id": "test-request-with-DSA",
     4      "imp": [
     5        {
     6          "id": "test-imp-id",
     7          "banner": {
     8            "format": [
     9              {
    10                "w": 728,
    11                "h": 90
    12              }
    13            ]
    14          },
    15          "ext": {
    16            "bidder": {
    17              "adslotId": "12345",
    18              "supplyId": "123456789",
    19              "targeting": {
    20                "key1": "value1",
    21                "key2": "value2"
    22              },
    23              "extId": "abc"
    24            }
    25          }
    26        }
    27      ],
    28      "device": {
    29        "ifa": "hello-ads",
    30        "devicetype": 4,
    31        "connectiontype": 6,
    32        "geo": {
    33          "lat": 51.499488,
    34          "lon": -0.128953
    35        },
    36        "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36",
    37        "ip": "169.254.13.37",
    38        "h": 1098,
    39        "w": 814
    40      },
    41      "regs": {
    42        "ext": {
    43          "gdpr": 1,
    44          "dsa": {
    45            "dsarequired": 3,
    46            "pubrender": 0,
    47            "datatopub": 2,
    48            "transparency": [
    49              {
    50                "domain": "platform1domain.com",
    51                "dsaparams": [
    52                  1
    53                ]
    54              },
    55              {
    56                "domain": "SSP2domain.com",
    57                "dsaparams": [
    58                  1,
    59                  2
    60                ]
    61              }
    62            ]
    63          }
    64        }
    65      },
    66      "site": {
    67        "id": "fake-site-id",
    68        "publisher": {
    69          "id": "1"
    70        },
    71        "page": "http://localhost:9090/gdpr.html"
    72      },
    73      "user": {
    74        "buyeruid": "34a53e82-0dc3-4815-8b7e-b725ede0361c",
    75        "ext": {
    76          "consent": "BOlOrv1OlOr2EAAABADECg-AAAApp7v______9______9uz_Ov_v_f__33e8__9v_l_7_-___u_-3zd4u_1vf99yfm1-7etr3tp_87ues2_Xur__79__3z3_9phP78k89r7337Ew-v02"
    77        }
    78      }
    79    },
    80    "httpCalls": [
    81      {
    82        "expectedRequest": {
    83          "headers": {
    84            "Accept": [
    85              "application/json"
    86            ],
    87            "Cookie": [
    88              "id=34a53e82-0dc3-4815-8b7e-b725ede0361c"
    89            ],
    90            "Referer": [
    91              "http://localhost:9090/gdpr.html"
    92            ],
    93            "User-Agent": [
    94              "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"
    95            ],
    96            "X-Forwarded-For": [
    97              "169.254.13.37"
    98            ]
    99          },
   100          "uri": "https://ad.yieldlab.net/testing/12345?consent=BOlOrv1OlOr2EAAABADECg-AAAApp7v______9______9uz_Ov_v_f__33e8__9v_l_7_-___u_-3zd4u_1vf99yfm1-7etr3tp_87ues2_Xur__79__3z3_9phP78k89r7337Ew-v02&content=json&dsadatatopub=2&dsapubrender=0&dsarequired=3&dsatransparency=platform1domain.com~1~~SSP2domain.com~1_2&gdpr=1&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&lat=51.499488&lon=-0.128953&pvid=true&sizes=12345%3A728x90&t=key1%3Dvalue1%26key2%3Dvalue2&ts=testing&yl_rtb_connectiontype=6&yl_rtb_devicetype=4&yl_rtb_ifa=hello-ads",
   101          "impIDs": ["test-imp-id"]
   102        },
   103        "mockResponse": {
   104          "status": 200,
   105          "body": [
   106            {
   107              "id": 12345,
   108              "price": 201,
   109              "advertiser": "yieldlab",
   110              "adsize": "728x90",
   111              "pid": 1234,
   112              "did": 5678,
   113              "pvid": "40cb3251-1e1e-4cfd-8edc-7d32dc1a21e5",
   114              "dsa": {
   115                "required": 3,
   116                "behalf": "on behalf of yieldlab",
   117                "paid": "by yieldlab",
   118                "transparency": [
   119                  {
   120                    "domain": "yieldlab.de",
   121                    "dsaparams": [
   122                      1,
   123                      2
   124                    ]
   125                  }
   126                ],
   127                "adrender": 0
   128              }
   129            }
   130          ]
   131        }
   132      }
   133    ],
   134    "expectedBidResponses": [
   135      {
   136        "currency": "EUR",
   137        "bids": [
   138          {
   139            "bid": {
   140              "adm": "<script src=\"https://ad.yieldlab.net/d/12345/123456789/728x90?consent=BOlOrv1OlOr2EAAABADECg-AAAApp7v______9______9uz_Ov_v_f__33e8__9v_l_7_-___u_-3zd4u_1vf99yfm1-7etr3tp_87ues2_Xur__79__3z3_9phP78k89r7337Ew-v02&gdpr=1&id=abc&ids=ylid%3A34a53e82-0dc3-4815-8b7e-b725ede0361c&pvid=40cb3251-1e1e-4cfd-8edc-7d32dc1a21e5&ts=testing\"></script>",
   141              "crid": "12345123433",
   142              "dealid": "1234",
   143              "ext": {
   144                "dsa": {
   145                  "adrender": 0,
   146                  "transparency": [
   147                    {
   148                      "domain": "yieldlab.de",
   149                      "dsaparams": [
   150                        1,
   151                        2
   152                      ]
   153                    }
   154                  ],
   155                  "behalf": "on behalf of yieldlab",
   156                  "paid": "by yieldlab"
   157                }
   158              },
   159              "id": "12345",
   160              "impid": "test-imp-id",
   161              "price": 2.01,
   162              "w": 728,
   163              "h": 90
   164            },
   165            "type": "banner"
   166          }
   167        ]
   168      }
   169    ]
   170  }