Skip to content

Commit

Permalink
Smaato: Add DSA support tests (prebid#3749)
Browse files Browse the repository at this point in the history
  • Loading branch information
tetianaatsmaato authored Jul 18, 2024
1 parent a1b4451 commit 5fefeaa
Show file tree
Hide file tree
Showing 3 changed files with 156 additions and 12 deletions.
56 changes: 52 additions & 4 deletions adapters/smaato/smaatotest/exemplary/native.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,18 @@
"gdpr": 1,
"us_privacy": "uspConsentString",
"gpp": "gppString",
"gpp_sid": [7]
"gpp_sid": [7],
"dsa": {
"dsarequired": 1,
"pubrender": 1,
"datatopub": 1,
"transparency": [
{
"domain": "testdomain.com",
"dsaparams": [1,3]
}
]
}
}
},
"ext": {
Expand Down Expand Up @@ -98,7 +109,18 @@
"gdpr": 1,
"us_privacy": "uspConsentString",
"gpp": "gppString",
"gpp_sid": [7]
"gpp_sid": [7],
"dsa": {
"dsarequired": 1,
"pubrender": 1,
"datatopub": 1,
"transparency": [
{
"domain": "testdomain.com",
"dsaparams": [1,3]
}
]
}
}
},
"ext": {
Expand Down Expand Up @@ -129,7 +151,20 @@
"nurl": "https://nurl",
"price": 0.01,
"w": 480,
"h": 320
"h": 320,
"ext": {
"dsa": {
"behalf": "Advertiser",
"paid": "Advertiser",
"adrender": 1,
"transparency": [
{
"domain": "dsp1domain.com",
"dsaparams": [1,3]
}
]
}
}
}
]
}
Expand Down Expand Up @@ -159,7 +194,20 @@
"price": 0.01,
"w": 480,
"h": 320,
"exp": 300
"exp": 300,
"ext": {
"dsa": {
"behalf": "Advertiser",
"paid": "Advertiser",
"adrender": 1,
"transparency": [
{
"domain": "dsp1domain.com",
"dsaparams": [1,3]
}
]
}
}
},
"type": "native"
}
Expand Down
56 changes: 52 additions & 4 deletions adapters/smaato/smaatotest/exemplary/simple-banner.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,18 @@
"gdpr": 1,
"us_privacy": "uspConsentString",
"gpp": "gppString",
"gpp_sid": [7]
"gpp_sid": [7],
"dsa": {
"dsarequired": 1,
"pubrender": 1,
"datatopub": 1,
"transparency": [
{
"domain": "testdomain.com",
"dsaparams": [1,3]
}
]
}
}
}
},
Expand Down Expand Up @@ -120,7 +131,18 @@
"gdpr": 1,
"us_privacy": "uspConsentString",
"gpp": "gppString",
"gpp_sid": [7]
"gpp_sid": [7],
"dsa": {
"dsarequired": 1,
"pubrender": 1,
"datatopub": 1,
"transparency": [
{
"domain": "testdomain.com",
"dsaparams": [1,3]
}
]
}
}
},
"site": {
Expand Down Expand Up @@ -158,7 +180,20 @@
"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",
"price": 0.01,
"w": 350,
"h": 50
"h": 50,
"ext": {
"dsa": {
"behalf": "Advertiser",
"paid": "Advertiser",
"adrender": 1,
"transparency": [
{
"domain": "dsp1domain.com",
"dsaparams": [1,3]
}
]
}
}
}
]
}
Expand Down Expand Up @@ -188,7 +223,20 @@
"price": 0.01,
"w": 350,
"h": 50,
"exp": 300
"exp": 300,
"ext": {
"dsa": {
"behalf": "Advertiser",
"paid": "Advertiser",
"adrender": 1,
"transparency": [
{
"domain": "dsp1domain.com",
"dsaparams": [1,3]
}
]
}
}
},
"type": "banner"
}
Expand Down
56 changes: 52 additions & 4 deletions adapters/smaato/smaatotest/exemplary/video.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,18 @@
"gdpr": 1,
"us_privacy": "uspConsentString",
"gpp": "gppString",
"gpp_sid": [7]
"gpp_sid": [7],
"dsa": {
"dsarequired": 1,
"pubrender": 1,
"datatopub": 1,
"transparency": [
{
"domain": "testdomain.com",
"dsaparams": [1,3]
}
]
}
}
},
"ext": {
Expand Down Expand Up @@ -146,7 +157,18 @@
"gdpr": 1,
"us_privacy": "uspConsentString",
"gpp": "gppString",
"gpp_sid": [7]
"gpp_sid": [7],
"dsa": {
"dsarequired": 1,
"pubrender": 1,
"datatopub": 1,
"transparency": [
{
"domain": "testdomain.com",
"dsaparams": [1,3]
}
]
}
}
},
"device": {
Expand Down Expand Up @@ -185,7 +207,20 @@
"nurl": "https://nurl",
"price": 0.01,
"w": 1024,
"h": 768
"h": 768,
"ext": {
"dsa": {
"behalf": "Advertiser",
"paid": "Advertiser",
"adrender": 1,
"transparency": [
{
"domain": "dsp1domain.com",
"dsaparams": [1,3]
}
]
}
}
}
]
}
Expand Down Expand Up @@ -215,7 +250,20 @@
"price": 0.01,
"w": 1024,
"h": 768,
"exp": 300
"exp": 300,
"ext": {
"dsa": {
"behalf": "Advertiser",
"paid": "Advertiser",
"adrender": 1,
"transparency": [
{
"domain": "dsp1domain.com",
"dsaparams": [1,3]
}
]
}
}
},
"type": "video"
}
Expand Down

0 comments on commit 5fefeaa

Please sign in to comment.